Hello everyone,
I'm using kamailio modules as Interrogating-cscf and Serving-cscf.
Registering an user i perform correctly an UAR and the HSS answers
correctly with an UAA giving user'c server-capabilities.
Even if i have a success result code ( as you can see in the attached
wireshark dump) the configuration code bring me in the failure branch.
route[REG_UAR_REPLY]
{
xlog("L_INFO", "FB: received uaa");
xlog("L_INFO",
"<<<<<<<<<<<<<<<<
[$avp(s:uaa_return_code)]");
switch ($avp(s:uaa_return_code)){
case 1: #success
xlog("L_INFO", "FB:success");
if (I_scscf_select("0")){
t_on_failure("register_failure");
t_on_reply("register_reply");
#now relay to appropriate SCSCF
if (!t_relay()) {
t_reply("500", "Error forwarding to
SCSCF");
}
} else {#select failed
I_scscf_drop();
t_reply("500", "Server error on SCSCF Select
(UAR)");
}
break;
case -1: #failure
xlog("L_INFO", "failure");
xlog("L_ERR", "UAR failure - error response sent from
module\n");
break;
case -2: #error
xlog("L_INFO", "error");
xlog("L_ERR", "UAR error - sending error response
now\n");
t_reply("500", "UAR failed");
break;
default:
xlog("L_ERR", "Unknown return code from UAR, value is
[$avp(s:uaa_return_code)]\n");
t_reply("500", "Unknown response code from
UAR");
break;
}
}
as you can see from my log i think tre's some problem when
reading UserAuthenticationAnswer return code.
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28053]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=325
a=24 n=I_scscf_drop
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28053]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=327 a=26
n=I_perform_user_authorization_request
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28053]: INFO: ims_icscf
[cxdx_uar.c:71]: create_uaa_return_code(): created AVP successfully :
[uaa_return_code]
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: INFO: ims_icscf
[cxdx_avp.c:137]: cxdx_get_avp(): cxdx_get_server_name: Failed finding avp
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: INFO: ims_icscf
[cxdx_avp.c:137]: cxdx_get_avp(): cxdx_get_experimental_result_code: Failed
finding avp
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: ims_icscf
[cxdx_uar.c:211]: async_cdp_uar_callback(): Empty capability list returning
600
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: INFO: ims_icscf
[cxdx_uar.c:71]: create_uaa_return_code(): created AVP successfully :
[uaa_return_code]
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=336 a=26 n=xlog
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: INFO: <script>: FB:
received uaa
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=337 a=26 n=xlog
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: INFO: <script>:
<<<<<<<<<<<<<<<<
[18446744073709551615]
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=366 a=21 n=switch
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=354 a=26 n=xlog
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: INFO: <script>:
failure
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=355 a=26 n=xlog
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: <script>: UAR
failure - error response sent from module
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: ERROR: *** cfgtrace:
c=[/home/voiceeng/kamailio/i-cscf/kamailio.cfg] l=356 a=2 n=exit
Dec 17 12:31:40 localhost /usr/sbin/kamailio[28045]: WARNING: tm
[t_lookup.c:1536]: t_unref(): WARNING: script writer didn't release
transaction
I hope you will clarify this matter...
thanks in advance for your help
--
Gennaro Sarnataro