Ignore:
Timestamp:
Sep 24, 2008 10:10:15 AM (16 years ago)
Author:
bennylp
Message:

Ticket #635: Disconnect the other call leg when multiple 2xx/OK responses to INVITE are received due to forking

File:
1 edited

Legend:

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

    r2301 r2315  
    9797    cfg->srtp_secure_signaling = PJSUA_DEFAULT_SRTP_SECURE_SIGNALING; 
    9898#endif 
     99    cfg->hangup_forked_call = PJ_TRUE; 
    99100} 
    100101 
     
    623624    pjsua_media_config   default_media_cfg; 
    624625    const pj_str_t       STR_OPTIONS = { "OPTIONS", 7 }; 
     626    pjsip_ua_init_param  ua_init_param; 
    625627    pj_status_t status; 
    626628 
     
    695697 
    696698    /* Initialize UA layer module: */ 
    697     status = pjsip_ua_init_module( pjsua_var.endpt, NULL ); 
     699    pj_bzero(&ua_init_param, sizeof(ua_init_param)); 
     700    if (ua_cfg->hangup_forked_call) { 
     701        ua_init_param.on_dlg_forked = &on_dlg_forked; 
     702    } 
     703    status = pjsip_ua_init_module( pjsua_var.endpt, &ua_init_param); 
    698704    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    699705 
Note: See TracChangeset for help on using the changeset viewer.