mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 10:14:14 +00:00
cancel proxy or no-media mode if you purposely answer or pre_answer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9919 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
75dc5caf6d
commit
be6e49cb3c
2 files changed
+9
-3
No files matched your search
@@ -603,7 +603,10 @@ SWITCH_STANDARD_APP(set_name_function)
|
||||
|
||||
SWITCH_STANDARD_APP(answer_function)
|
||||
{
|
||||
switch_channel_answer(switch_core_session_get_channel(session));
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_clear_flag(channel, CF_PROXY_MEDIA);
|
||||
switch_channel_clear_flag(channel, CF_PROXY_MODE);
|
||||
switch_channel_answer(channel);
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(presence_function)
|
||||
@@ -628,7 +631,10 @@ SWITCH_STANDARD_APP(presence_function)
|
||||
|
||||
SWITCH_STANDARD_APP(pre_answer_function)
|
||||
{
|
||||
switch_channel_pre_answer(switch_core_session_get_channel(session));
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_channel_clear_flag(channel, CF_PROXY_MEDIA);
|
||||
switch_channel_clear_flag(channel, CF_PROXY_MODE);
|
||||
switch_channel_pre_answer(channel);
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(redirect_function)
|
||||
|
||||
Reference in new issue
Block a user