From: Anthony Minessale Date: Fri, 12 May 2006 01:10:31 +0000 (+0000) Subject: update X-Git-Tag: v1.0-beta1~2659 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e41718baa8a565aaa87965a2c7cee94a50d2432d;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1438 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c index 47e8239244..7fafbb9268 100644 --- a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c +++ b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c @@ -981,7 +981,8 @@ static int on_hangup(struct sangoma_pri *spri, sangoma_pri_event_t event_type, p tech_pvt->cause = event->hangup.cause; - switch_channel_set_state(channel, CS_HANGUP); + switch_channel_HANGUP(channel, SWITCH_CAUSE_NORMAL_CLEARING); + chanmap->map[event->hangup.channel] = NULL; } diff --git a/src/mod/endpoints/mod_woomera/mod_woomera.c b/src/mod/endpoints/mod_woomera/mod_woomera.c index 37febb7057..220e2079cc 100644 --- a/src/mod/endpoints/mod_woomera/mod_woomera.c +++ b/src/mod/endpoints/mod_woomera/mod_woomera.c @@ -953,9 +953,7 @@ static void *woomera_channel_thread_run(switch_thread_t *thread, void *obj) } if (switch_test_flag(tech_pvt, TFLAG_ABORT)) { - if (switch_channel_get_state(channel) < CS_HANGUP) { - switch_channel_set_state(channel, CS_HANGUP); - } + switch_channel_HANGUP(channel, SWITCH_CAUSE_NORMAL_CLEARING); udp_socket_close(tech_pvt); break; }