mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 00:04:13 +00:00
Add hangup handler for Originate, expose state handlers in general. Various fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14861 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
88b15b9e09
commit
26df0f6881
9 files changed
+54911
-55509
No files matched your search
@@ -69,7 +69,6 @@ ManagedSession::~ManagedSession()
|
||||
// Do auto-hangup ourselves because CoreSession can't call check_hangup_hook
|
||||
// after ManagedSession destruction (cause at point it's pure virtual)
|
||||
if (session) {
|
||||
channel = switch_core_session_get_channel(session);
|
||||
if (switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) {
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
|
||||
setAutoHangup(0);
|
||||
@@ -104,3 +103,6 @@ switch_status_t ManagedSession::run_dtmf_callback(void *input, switch_input_type
|
||||
return status;
|
||||
}
|
||||
|
||||
static switch_status_t stateHangupHandler(switch_core_session_t *session) {
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
Reference in new issue
Block a user