mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
add case for kill sigs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3778 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6f3f463f0b
commit
90440eaf1d
5 files changed
+73
-37
No files matched your search
@@ -755,11 +755,16 @@ static switch_status_t wanpipe_kill_channel(switch_core_session_t *session, int
|
||||
tech_pvt = switch_core_session_get_private(session);
|
||||
assert(tech_pvt != NULL);
|
||||
|
||||
switch_mutex_lock(tech_pvt->flag_mutex);
|
||||
switch_set_flag(tech_pvt, TFLAG_BYE);
|
||||
switch_clear_flag(tech_pvt, TFLAG_MEDIA);
|
||||
switch_mutex_unlock(tech_pvt->flag_mutex);
|
||||
|
||||
switch(sig) {
|
||||
case SWITCH_SIG_KILL:
|
||||
switch_mutex_lock(tech_pvt->flag_mutex);
|
||||
switch_set_flag(tech_pvt, TFLAG_BYE);
|
||||
switch_clear_flag(tech_pvt, TFLAG_MEDIA);
|
||||
switch_mutex_unlock(tech_pvt->flag_mutex);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
//sangoma_socket_close(&tech_pvt->wpsock->fd);
|
||||
//wp_close(tech_pvt);
|
||||
|
||||
|
||||
Reference in new issue
Block a user