Ignore:
Timestamp:
Sep 28, 2010 4:57:01 AM (12 years ago)
Author:
nanang
Message:

Close #1138:

  • Added new pjsua registration status callback on_reg_state2(), it includes the whole info from the lower layer registration callback pjsip_regc_cb().
File:
1 edited

Legend:

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

    r3313 r3322  
    15141514    } 
    15151515 
    1516     if (pjsua_var.ua_cfg.cb.on_reg_state) 
     1516    /* Call the registration status callback */ 
     1517 
     1518    if (pjsua_var.ua_cfg.cb.on_reg_state) { 
    15171519        (*pjsua_var.ua_cfg.cb.on_reg_state)(acc->index); 
    1518  
     1520    } 
     1521 
     1522    if (pjsua_var.ua_cfg.cb.on_reg_state2) { 
     1523        pjsua_reg_info reg_info; 
     1524 
     1525        reg_info.cbparam = param; 
     1526        (*pjsua_var.ua_cfg.cb.on_reg_state2)(acc->index, &reg_info); 
     1527    } 
     1528     
    15191529    PJSUA_UNLOCK(); 
    15201530} 
Note: See TracChangeset for help on using the changeset viewer.