mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-08 05:11:51 +00:00
add unsetInputCallback method
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9296 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -158,6 +158,16 @@ void Session::setHangupHook(char *func, char *arg)
|
||||
}
|
||||
}
|
||||
|
||||
void Session::unsetInputCallback(void)
|
||||
{
|
||||
sanity_check_noreturn;
|
||||
switch_safe_free(cb_function);
|
||||
switch_safe_free(cb_arg);
|
||||
args.input_callback = NULL;
|
||||
switch_channel_set_private(channel, "CoreSession", NULL);
|
||||
ap = NULL;
|
||||
}
|
||||
|
||||
void Session::setInputCallback(char *cbfunc, char *funcargs)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user