forked from Mirrors/freeswitch
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1438 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
49c502dbbd
commit
e41718baa8
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user