- Timestamp:
- Mar 19, 2015 4:59:23 AM (10 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r4996 r4999 478 478 struct pjsip_regc_cbparam *cbparam; /**< Parameters returned by 479 479 registration callback. */ 480 pjsip_regc *regc; /**< Client registration 481 structure. */ 482 pj_bool_t renew; /**< Non-zero for registration and 483 zero for unregistration. */ 480 484 } pjsua_reg_info; 481 485 … … 908 912 */ 909 913 void (*on_reg_started)(pjsua_acc_id acc_id, pj_bool_t renew); 914 915 /** 916 * This is the alternative version of the \a on_reg_started() callback with 917 * \a pjsua_reg_info argument. 918 * 919 * @param acc_id The account ID. 920 * @param info The registration info. 921 */ 922 void (*on_reg_started2)(pjsua_acc_id acc_id, 923 pjsua_reg_info *info); 910 924 911 925 /** -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4974 r4999 2280 2280 if (pjsua_var.ua_cfg.cb.on_reg_state2) { 2281 2281 pjsua_reg_info reg_info; 2282 2282 pjsip_regc_info rinfo; 2283 2284 pjsip_regc_get_info(param->regc, &rinfo); 2283 2285 reg_info.cbparam = param; 2286 reg_info.regc = param->regc; 2287 reg_info.renew = (rinfo.interval != 0); 2284 2288 (*pjsua_var.ua_cfg.cb.on_reg_state2)(acc->index, ®_info); 2285 2289 } … … 2589 2593 if (pjsua_var.ua_cfg.cb.on_reg_started) { 2590 2594 (*pjsua_var.ua_cfg.cb.on_reg_started)(acc_id, renew); 2595 } 2596 if (pjsua_var.ua_cfg.cb.on_reg_started2) { 2597 pjsua_reg_info rinfo; 2598 2599 rinfo.cbparam = NULL; 2600 rinfo.regc = pjsua_var.acc[acc_id].regc; 2601 rinfo.renew = renew; 2602 (*pjsua_var.ua_cfg.cb.on_reg_started2)(acc_id, &rinfo); 2591 2603 } 2592 2604 }
Note: See TracChangeset
for help on using the changeset viewer.