mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add mod_perl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@740 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -565,6 +565,21 @@ SWITCH_DECLARE(switch_status) switch_channel_hangup(switch_channel *channel)
|
||||
return channel->state;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status) switch_channel_pre_answer(switch_channel *channel)
|
||||
{
|
||||
switch_core_session_message msg;
|
||||
char *uuid = switch_core_session_get_uuid(channel->session);
|
||||
switch_status status;
|
||||
|
||||
assert(channel != NULL);
|
||||
msg.message_id = SWITCH_MESSAGE_INDICATE_PROGRESS;
|
||||
msg.from = channel->name;
|
||||
status = switch_core_session_message_send(uuid, &msg);
|
||||
switch_channel_set_flag(channel, CF_EARLY_MEDIA);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status) switch_channel_answer(switch_channel *channel)
|
||||
{
|
||||
assert(channel != NULL);
|
||||
|
Reference in New Issue
Block a user