From c2476cfffd0fa7f90ac72295de24ba6dea4ea161 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 24 Sep 2008 10:10:15 +0000 Subject: Ticket #635: Disconnect the other call leg when multiple 2xx/OK responses to INVITE are received due to forking git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2315 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 14 ++++++++++++++ pjsip/include/pjsua-lib/pjsua_internal.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'pjsip/include/pjsua-lib') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index e377e059..43d28a88 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -1230,6 +1230,20 @@ typedef struct pjsua_config int srtp_secure_signaling; #endif + /** + * Disconnect other call legs when more than one 2xx responses for + * outgoing INVITE are received due to forking. Currently the library + * is not able to handle simultaneous forked media, so disconnecting + * the other call legs is necessary. + * + * With this setting enabled, the library will handle only one of the + * connected call leg, and the other connected call legs will be + * disconnected. + * + * Default: PJ_TRUE (only disable this setting for testing purposes). + */ + pj_bool_t hangup_forked_call; + } pjsua_config; diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index ef1487a4..1332a5ae 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -498,7 +498,7 @@ void pjsua_parse_media_type( pj_pool_t *pool, void pjsua_init_tpselector(pjsua_transport_id tp_id, pjsip_tpselector *sel); - +pjsip_dialog* on_dlg_forked(pjsip_dialog *first_set, pjsip_rx_data *res); pj_status_t acquire_call(const char *title, pjsua_call_id call_id, pjsua_call **p_call, -- cgit v1.2.3