git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1438 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-05-12 01:10:31 +00:00
parent 49c502dbbd
commit e41718baa8
2 changed files with 3 additions and 4 deletions

View File

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

View File

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