From 1cd02d9054bf3f99abe49d19e075a2c3fa8f6318 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 13 Jul 2009 14:31:24 +0000 Subject: [PATCH] sigh... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14219 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 c9e007a95b..376d5271ef 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1341,7 +1341,11 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) } if (switch_strlen_zero(realm)) { - realm = name; + if (switch_strlen_zero(proxy)) { + realm = name; + } else { + realm = proxy; + } } if (switch_strlen_zero(username)) {