mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
now pickup, barge-in and various other things will work with SLA is turned on
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13306 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1e0e32f50a
commit
e55965292d
@ -4575,6 +4575,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||||||
tech_pvt->reply_contact = switch_core_session_sprintf(session, "<%s>", tech_pvt->to_uri);
|
tech_pvt->reply_contact = switch_core_session_sprintf(session, "<%s>", tech_pvt->to_uri);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (sofia_test_pflag(profile, PFLAG_MANAGE_SHARED_APPEARANCE)) {
|
||||||
|
tech_pvt->reply_contact = switch_core_session_sprintf(session, "<sip:%s@%s>", user, host);
|
||||||
|
} else {
|
||||||
|
|
||||||
const char *url;
|
const char *url;
|
||||||
|
|
||||||
if ((url = (sofia_glue_transport_has_tls(transport)) ? profile->tls_url : profile->url)) {
|
if ((url = (sofia_glue_transport_has_tls(transport)) ? profile->tls_url : profile->url)) {
|
||||||
@ -4587,6 +4591,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||||||
switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const char *url;
|
const char *url;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user