mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
doing carot dialing to a location without a gateway will result in the host being null in some cases this will not allow that if you specify the full sip:dest@host it works fine but if you only specify the number then host will be null
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15332 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
452d1ae7d4
commit
743a396652
@ -3049,7 +3049,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
if (strchr(dest_to, '@')) {
|
if (strchr(dest_to, '@')) {
|
||||||
tech_pvt->dest_to = switch_core_session_sprintf(nsession, "sip:%s", dest_to);
|
tech_pvt->dest_to = switch_core_session_sprintf(nsession, "sip:%s", dest_to);
|
||||||
} else {
|
} else {
|
||||||
tech_pvt->dest_to = switch_core_session_sprintf(nsession, "sip:%s@%s", dest_to, host);
|
tech_pvt->dest_to = switch_core_session_sprintf(nsession, "sip:%s@%s", dest_to, host ? host : profile->sipip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user