mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
change hangup method
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4574 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1477,7 +1477,8 @@ static switch_status_t hangup_call(char **argv, int argc, switch_stream_handle_t
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tech_pvt) {
|
if (tech_pvt) {
|
||||||
switch_set_flag_locked(tech_pvt, TFLAG_HUP);
|
switch_channel_hangup(switch_core_session_get_channel(tech_pvt->session), SWITCH_CAUSE_NORMAL_CLEARING);
|
||||||
|
//switch_set_flag_locked(tech_pvt, TFLAG_HUP);
|
||||||
stream->write_function(stream, "OK\n");
|
stream->write_function(stream, "OK\n");
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "NO SUCH CALL\n");
|
stream->write_function(stream, "NO SUCH CALL\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user