mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
add bridge indication to conferences so sip disables the async rtp since we already have dual threaded i/o
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2293 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
210ebbaf77
commit
e54c549840
@ -2171,6 +2171,7 @@ static void conference_function(switch_core_session_t *session, char *data)
|
|||||||
switch_xml_t cxml = NULL, cfg = NULL, profile = NULL, profiles = NULL;
|
switch_xml_t cxml = NULL, cfg = NULL, profile = NULL, profiles = NULL;
|
||||||
char *flags_str;
|
char *flags_str;
|
||||||
member_flag_t uflags = MFLAG_CAN_SPEAK | MFLAG_CAN_HEAR;
|
member_flag_t uflags = MFLAG_CAN_SPEAK | MFLAG_CAN_HEAR;
|
||||||
|
switch_core_session_message_t msg = {0};
|
||||||
|
|
||||||
channel = switch_core_session_get_channel(session);
|
channel = switch_core_session_get_channel(session);
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
@ -2404,9 +2405,19 @@ static void conference_function(switch_core_session_t *session, char *data)
|
|||||||
}
|
}
|
||||||
switch_set_flag_locked((&member), MFLAG_RUNNING | uflags);
|
switch_set_flag_locked((&member), MFLAG_RUNNING | uflags);
|
||||||
|
|
||||||
|
msg.from = __FILE__;
|
||||||
|
|
||||||
|
/* Tell the channel we are going to be in a bridge */
|
||||||
|
msg.message_id = SWITCH_MESSAGE_INDICATE_BRIDGE;
|
||||||
|
switch_core_session_receive_message(session, &msg);
|
||||||
|
|
||||||
/* Run the confernece loop */
|
/* Run the confernece loop */
|
||||||
conference_loop(&member);
|
conference_loop(&member);
|
||||||
|
|
||||||
|
/* Tell the channel we are no longer going to be in a bridge */
|
||||||
|
msg.message_id = SWITCH_MESSAGE_INDICATE_UNBRIDGE;
|
||||||
|
switch_core_session_receive_message(session, &msg);
|
||||||
|
|
||||||
/* Remove the caller from the conference */
|
/* Remove the caller from the conference */
|
||||||
conference_del_member(member.last_conference, &member);
|
conference_del_member(member.last_conference, &member);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user