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;