Revision
14142
Author
brian
Date
2009-07-06 17:04:09 -0500 (Mon, 06 Jul 2009)

Log Message

mod_sofia: Have I said how dumb sip is sometimes?

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14141 => 14142)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-07-06 22:02:30 UTC (rev 14141)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-07-06 22:04:09 UTC (rev 14142)
@@ -1411,7 +1411,7 @@
 				params = switch_core_sprintf(gateway->pool, ";transport=%s", register_transport);
 			}
 
-			gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s;transport=%s", register_proxy ? register_proxy : proxy, register_transport);
+			gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s", from_domain ? from_domain : register_proxy ? register_proxy : proxy);
 			gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>", from_user, from_domain, register_transport);
 
 			sipip = contact_host ? contact_host : profile->extsipip ?  profile->extsipip : profile->sipip;