Changeset 2371 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Nov 27, 2008 12:42:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r2370 r2371 69 69 * Redirection handler. 70 70 */ 71 static void pjsua_call_on_redirected(pjsip_inv_session *inv, 72 const pjsip_uri *target, 73 pjsip_redirect_op *cmd, 74 const pjsip_event *e); 71 static pjsip_redirect_op pjsua_call_on_redirected(pjsip_inv_session *inv, 72 const pjsip_uri *target, 73 const pjsip_event *e); 75 74 76 75 … … 3815 3814 3816 3815 /* Redirection handler */ 3817 static void pjsua_call_on_redirected(pjsip_inv_session *inv, 3818 const pjsip_uri *target, 3819 pjsip_redirect_op *cmd, 3820 const pjsip_event *e) 3816 static pjsip_redirect_op pjsua_call_on_redirected(pjsip_inv_session *inv, 3817 const pjsip_uri *target, 3818 const pjsip_event *e) 3821 3819 { 3822 3820 pjsua_call *call = (pjsua_call*) inv->dlg->mod_data[pjsua_var.mod.id]; 3821 pjsip_redirect_op op; 3823 3822 3824 3823 PJSUA_LOCK(); 3825 3824 3826 3825 if (pjsua_var.ua_cfg.cb.on_call_redirected) { 3827 (*pjsua_var.ua_cfg.cb.on_call_redirected)(call->index, target, cmd, e); 3826 op = (*pjsua_var.ua_cfg.cb.on_call_redirected)(call->index, 3827 target, e); 3828 3828 } else { 3829 3829 PJ_LOG(4,(THIS_FILE, "Unhandled redirection for call %d " … … 3831 3831 "call.", 3832 3832 call->index)); 3833 *cmd= PJSIP_REDIRECT_STOP;3833 op = PJSIP_REDIRECT_STOP; 3834 3834 } 3835 3835 3836 3836 PJSUA_UNLOCK(); 3837 } 3838 3837 3838 return op; 3839 } 3840
Note: See TracChangeset
for help on using the changeset viewer.