mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
sort out proxy stuff SFSIP-165
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14263 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -2659,10 +2659,14 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
||||
|
||||
gateway_ptr->ob_calls++;
|
||||
|
||||
if (!switch_strlen_zero(gateway_ptr->from_domain)) {
|
||||
if (!switch_strlen_zero(gateway_ptr->from_domain) && !switch_channel_get_variable(nchannel, "sip_invite_domain")) {
|
||||
switch_channel_set_variable(nchannel, "sip_invite_domain", gateway_ptr->from_domain);
|
||||
}
|
||||
|
||||
if (!switch_strlen_zero(gateway_ptr->outbound_sticky_proxy) && !switch_channel_get_variable(nchannel, "sip_route_uri")) {
|
||||
switch_channel_set_variable(nchannel, "sip_route_uri", gateway_ptr->outbound_sticky_proxy);
|
||||
}
|
||||
|
||||
if (gateway_ptr->ob_vars) {
|
||||
switch_event_header_t *hp;
|
||||
for(hp = gateway_ptr->ob_vars->headers; hp; hp = hp->next) {
|
||||
|
||||
Reference in New Issue
Block a user