Revision
17261
Author
math.parent
Date
2010-04-09 04:13:22 -0500 (Fri, 09 Apr 2010)

Log Message

Skinny: fix calls without media

If party_id is 0, the phone will not properly release media

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c (17260 => 17261)


--- freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c	2010-04-09 03:43:24 UTC (rev 17260)
+++ freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c	2010-04-09 09:13:22 UTC (rev 17261)
@@ -539,6 +539,7 @@
 	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;