From adcb11f3d3424d8d8a8efc14b7928a8305757225 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Fri, 9 Apr 2010 11:11:40 +0200 Subject: [PATCH] Skinny: fix calls without media If party_id is 0, the phone will not properly release media --- src/mod/endpoints/mod_skinny/mod_skinny.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index a6adf86c4a..d086c9deb0 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -539,6 +539,7 @@ void tech_init(private_t *tech_pvt, skinny_profile_t *profile, switch_core_sessi switch_mutex_init(&tech_pvt->mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session)); switch_mutex_init(&tech_pvt->flag_mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session)); tech_pvt->call_id = ++profile->next_call_id; + tech_pvt->party_id = tech_pvt->call_id; tech_pvt->profile = profile; switch_core_session_set_private(session, tech_pvt); tech_pvt->session = session;