From 743a39665214f3ce444ad9972ef0c3ae6828934c Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 3 Nov 2009 18:26:09 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 006076cfa0..2dc54d22bb 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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); } }