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:
Brian West 2009-11-03 18:26:09 +00:00
parent 452d1ae7d4
commit 743a396652
1 changed files with 1 additions and 1 deletions

View File

@ -3049,7 +3049,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
if (strchr(dest_to, '@')) {
tech_pvt->dest_to = switch_core_session_sprintf(nsession, "sip:%s", dest_to);
} 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);
}
}