Ignore:
Timestamp:
Jun 26, 2012 9:37:41 AM (9 years ago)
Author:
ming
Message:

Re #1540: Modify MWI subscription setting on run-time

  • Add subscription state callback
  • Terminate subscription when deleting acc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r4173 r4180  
    19591959              pjsip_evsub_get_state_name(sub))); 
    19601960 
     1961    /* Call callback */ 
     1962    if (pjsua_var.ua_cfg.cb.on_mwi_state) { 
     1963        (*pjsua_var.ua_cfg.cb.on_mwi_state)(acc->index, sub); 
     1964    } 
     1965 
    19611966    if (pjsip_evsub_get_state(sub) == PJSIP_EVSUB_STATE_TERMINATED) { 
    19621967        /* Clear subscription */ 
Note: See TracChangeset for help on using the changeset viewer.