mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 03:57:14 +00:00
fix no_media mode
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4192 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
3b6d163b73
commit
59d4d0b071
4 files changed
+122
-86
No files matched your search
@@ -162,6 +162,15 @@ static void answer_function(switch_core_session_t *session, char *data)
|
||||
switch_channel_answer(channel);
|
||||
}
|
||||
|
||||
static void pre_answer_function(switch_core_session_t *session, char *data)
|
||||
{
|
||||
switch_channel_t *channel;
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
||||
assert(channel != NULL);
|
||||
switch_channel_pre_answer(channel);
|
||||
}
|
||||
|
||||
static void redirect_function(switch_core_session_t *session, char *data)
|
||||
{
|
||||
switch_core_session_message_t msg = {0};
|
||||
@@ -595,13 +604,23 @@ static const switch_application_interface_t answer_application_interface = {
|
||||
|
||||
};
|
||||
|
||||
static const switch_application_interface_t pre_answer_application_interface = {
|
||||
/*.interface_name */ "pre_answer",
|
||||
/*.application_function */ pre_answer_function,
|
||||
/* long_desc */ "Pre-Answer the call for a channel.",
|
||||
/* short_desc */ "Pre-Answer the call",
|
||||
/* syntax */ "",
|
||||
/*.next */ &hangup_application_interface
|
||||
|
||||
};
|
||||
|
||||
static const switch_application_interface_t eval_application_interface = {
|
||||
/*.interface_name */ "eval",
|
||||
/*.application_function */ eval_function,
|
||||
/* long_desc */ "Do Nothing",
|
||||
/* short_desc */ "Do Nothing",
|
||||
/* syntax */ "",
|
||||
/*.next */ &answer_application_interface
|
||||
/*.next */ &pre_answer_application_interface
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user