mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 15:24:13 +00:00
FS-9638
This commit is contained in:
1 parent
550d85210c
commit
9b8a5edd3d
32 files changed
+765
-150
No files matched your search
@@ -47,6 +47,8 @@ void Session::destroy(const char *err)
|
||||
switch_safe_free(cb_function);
|
||||
switch_safe_free(cb_arg);
|
||||
|
||||
unsetInputCallback();
|
||||
|
||||
CoreSession::destroy();
|
||||
|
||||
|
||||
@@ -240,6 +242,7 @@ void Session::unsetInputCallback(void)
|
||||
switch_safe_free(cb_arg);
|
||||
args.input_callback = NULL;
|
||||
ap = NULL;
|
||||
switch_channel_clear_flag_recursive(channel, CF_QUEUE_TEXT_EVENTS);
|
||||
}
|
||||
|
||||
void Session::setInputCallback(char *cbfunc, char *funcargs)
|
||||
@@ -262,6 +265,9 @@ void Session::setInputCallback(char *cbfunc, char *funcargs)
|
||||
|
||||
args.input_callback = dtmf_callback;
|
||||
ap = &args;
|
||||
|
||||
switch_channel_set_flag_recursive(channel, CF_QUEUE_TEXT_EVENTS);
|
||||
|
||||
}
|
||||
|
||||
switch_status_t Session::run_dtmf_callback(void *input, switch_input_type_t itype)
|
||||
|
||||
Reference in new issue
Block a user