]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: fix calls without media
authorMathieu Parent <math.parent@gmail.com>
Fri, 9 Apr 2010 09:11:40 +0000 (11:11 +0200)
committerMathieu Parent <math.parent@gmail.com>
Fri, 9 Apr 2010 09:13:22 +0000 (11:13 +0200)
If party_id is 0, the phone will not properly release media

src/mod/endpoints/mod_skinny/mod_skinny.c

index a6adf86c4ada6a4f9dfeb8471709205033c8a4d2..d086c9deb0e8bb3ab4baa76bb15a9db64eadf833 100644 (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;