Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14244 => 14245)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-14 15:00:26 UTC (rev 14244)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-14 15:09:03 UTC (rev 14245)
@@ -1417,6 +1417,10 @@
params = switch_core_sprintf(gateway->pool, ";transport=%s", register_transport);
}
+ if (!switch_strlen_zero(from_domain)) {
+ gateway->from_domain = switch_core_strdup(gateway->pool, from_domain);
+ }
+
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);