Skinny: fix calls without media

If party_id is 0, the phone will not properly release media
This commit is contained in:
Mathieu Parent 2010-04-09 11:11:40 +02:00
parent 8ad17db191
commit adcb11f3d3
1 changed files with 1 additions and 0 deletions

View File

@ -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;