mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
answer tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3549 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -2721,7 +2721,7 @@ static void sip_i_state(int status,
|
||||
if (r_sdp) {
|
||||
if (switch_test_flag(tech_pvt, TFLAG_NOMEDIA)) {
|
||||
switch_set_flag_locked(tech_pvt, TFLAG_ANS);
|
||||
switch_channel_set_flag(channel, CF_ANSWERED);
|
||||
switch_channel_mark_answered(channel);
|
||||
if ((uuid = switch_channel_get_variable(channel, SWITCH_BRIDGE_VARIABLE)) && (other_session = switch_core_session_locate(uuid))) {
|
||||
other_channel = switch_core_session_get_channel(other_session);
|
||||
switch_channel_answer(other_channel);
|
||||
@@ -2749,7 +2749,7 @@ static void sip_i_state(int status,
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "ANSWER");
|
||||
tech_choose_port(tech_pvt);
|
||||
activate_rtp(tech_pvt);
|
||||
switch_channel_set_flag(channel, CF_ANSWERED);
|
||||
switch_channel_mark_answered(channel);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2759,7 +2759,7 @@ static void sip_i_state(int status,
|
||||
} else if (switch_test_flag(tech_pvt, TFLAG_EARLY_MEDIA)) {
|
||||
switch_set_flag_locked(tech_pvt, TFLAG_ANS);
|
||||
switch_channel_set_variable(channel, "endpoint_disposition", "ANSWER");
|
||||
switch_channel_set_flag(channel, CF_ANSWERED);
|
||||
switch_channel_mark_answered(channel);
|
||||
return;
|
||||
} //else probably an ack
|
||||
}
|
||||
|
Reference in New Issue
Block a user