mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
add new message to indications
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16434 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7793426059
commit
474e3253cf
@ -678,6 +678,7 @@ typedef enum {
|
||||
SWITCH_MESSAGE_INDICATE_UUID_CHANGE,
|
||||
SWITCH_MESSAGE_INDICATE_SIMPLIFY,
|
||||
SWITCH_MESSAGE_INDICATE_DEBUG_AUDIO,
|
||||
SWITCH_MESSAGE_INDICATE_PROXY_MEDIA,
|
||||
SWITCH_MESSAGE_INVALID
|
||||
} switch_core_session_message_types_t;
|
||||
|
||||
|
@ -1119,6 +1119,17 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
|
||||
|
||||
/* ones that do not need to lock sofia mutex */
|
||||
switch (msg->message_id) {
|
||||
case SWITCH_MESSAGE_INDICATE_PROXY_MEDIA:
|
||||
{
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||
if (msg->numeric_arg) {
|
||||
switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA);
|
||||
} else {
|
||||
switch_rtp_clear_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SWITCH_MESSAGE_INDICATE_DEBUG_AUDIO:
|
||||
{
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session) && !zstr(msg->string_array_arg[0]) && !zstr(msg->string_array_arg[1])) {
|
||||
|
@ -547,6 +547,7 @@ static const char *message_names[] = {
|
||||
"UUID_CHANGE",
|
||||
"WARNING",
|
||||
"DEBUG_AUDIO",
|
||||
"PROXY_MEDIA",
|
||||
"INVALID"
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user