]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
gateways will inherit the context from its parent unless manually provided
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 18 Feb 2009 14:13:02 +0000 (14:13 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 18 Feb 2009 14:13:02 +0000 (14:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12138 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 0eb56b43e738eb91420071a351600d9146f07b7e..f727553fff5129722df64e20e1e4b39164fec2eb 100644 (file)
@@ -1034,11 +1034,15 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                                *caller_id_in_from = "false",
                                *extension = NULL,
                                *proxy = NULL,
-                               *context = "default",
+                               *context = profile->context,
                                *expire_seconds = "3600",
                                *retry_seconds = "30",
                                *from_user = "", *from_domain = "", *register_proxy = NULL, *contact_params = NULL, *params = NULL, *register_transport = NULL;
                        
+                       if (!context) {
+                               context = "default";
+                       }
+
                        uint32_t ping_freq = 0;
                        switch_uuid_t uuid;