]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODSOFIA-16
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 15:09:03 +0000 (15:09 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Jul 2009 15:09:03 +0000 (15:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14245 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 63c9184f07f29e7548d14bd3dfe8bb7acd289174..b4628e1b7624c2c2677ded31726be48db72e1517 100644 (file)
@@ -1417,6 +1417,10 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                                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);