提交 2824afcd authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 95118689
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论