From f722fe82a2c6a29919439680e2a108c23d950251 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 18 Feb 2009 14:13:02 +0000 Subject: [PATCH] gateways will inherit the context from its parent unless manually provided git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12138 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 0eb56b43e7..f727553fff 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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;