From 2824afcd647f484a3b00dc33c3049c6baff9ae1f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 6 Nov 2006 16:35:23 +0000 Subject: [PATCH] parse params from the user directory properly on a register. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3270 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 74a375e519..24258b05a4 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2906,7 +2906,7 @@ static uint8_t handle_register(nua_t *nua, return 1; } - if ((xparams = switch_xml_child(user, "params"))) { + if (!(xparams = switch_xml_child(user, "params"))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find params for user [%s@%s]\n", from_user, from_host); nua_respond(nh, SIP_401_UNAUTHORIZED, SIPTAG_CONTACT(contact), TAG_END()); switch_xml_free(xml);