<div dir="ltr"><div><div><div><b>Hi Experts,<br><br></b></div><b>I would like to ask you if some of you have already come across this problem.<br></b></div><b>We are integrating Kamailio all in one Solution (P/I/S-CSCF having all same IP only communicating between each other on different ports) taken from Carsten Bock example against an external HSS.<br><br></b></div><div><b>The flow is as follows:<br><br></b></div><div>UE                                 HSS                                 P-CSCF                                 I-CSCF                                 S-CSCF<br></div><div></div><div><br>--------------------------Sip Register--------------------------><br>                                                                                     ----------Sip Register---------></div><b></b><div><b>                                         </b><---------------------------------UAR--------------------------------<br><b>                                         </b>---------------------------------UAA--------------------------------><br></div><div>                                                                                                                                 --------------SIP Register-------><br></div><div><b><br></b><div><div><div><b>The last step "SIP Register" from I-CSCF to S-CSCF is not happenning for some reason.<br></b></div><div><b>The Received AVP in UAA is "First Time Registration 2001 code".<br><br></b></div><div><b>Now we do not know whether this UAA answer is OK, or some other URI is badly defined which could explain why I-CSCF has trouble contacting S-CSCF.<br><br>If someone have some logs, traces which could be used as a reference for this scenario would be greatly appreciated.<br><br></b></div><div><b>Find theses messages we get in the shown logs below:<br><br></b></div><div><b>Thank you<br></b></div><div><b>Jan<br><br><br><br>This file /rtc/kamailio_icscf/kamailio.cfg is a function which sends message to SCSCF, see below:</b><br><br>route[REG_UAR_REPLY]<br>{<br>    #xlog("$$avp(s:uaa_return_code) = $avp(s:uaa_return_code)\n");<br>    #this is async so to know status we have to check the reply avp<br>    switch ($avp(s:uaa_return_code)){<br>            case 1: #success<br>                    if (I_scscf_select("0")){<br>                            t_on_failure("register_failure");<br>                            t_on_reply("register_reply");<br>                            #now relay to appropriate SCSCF<br>                            if (!t_relay()) {<br>                                    t_reply("500", "Error forwarding to SCSCF");<br>                            }<br>                    } else {#select failed<br>                            I_scscf_drop();<br>                            t_reply("500", "Server error on SCSCF Select (UAR)");<br>                    }<br>                    break;<br>            case -1: #failure<br>                    xlog("L_ERR", "UAR failure - error response sent from module\n");<br>                    break;<br>            case -2: #error<br>                    xlog("L_ERR", "UAR error - sending error response now\n");<br>                    t_reply("500", "UAR failed");<br>                    break;<br>            default:<br>                    xlog("L_ERR", "Unknown return code from UAR, value is [$avp(s:uaa_return_code)]\n");<br>                    t_reply("500", "Unknown response code from UAR");<br>                    break;<br>    }<br>}<br><br><br><b>Kamailio is getting an answer: "t_reply("500", "Error forwarding to SCSCF");"</b><br><b>which means that th function I_scscf_select("0") is fine but the other function called "t_relay", is the one generating the error "Error forwarding to SCSCF".</b><br><br><b>I-CSCF is not able to send the SIP message to S-CSCF, see this log below:</b><br> <br>Jul 16 14:59:22 cw-aio /usr/sbin/kamailio[31604]: ERROR: tm [t_fwd.c:1711]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches<br>Jul 16 14:59:23 cw-aio /usr/sbin/kamailio[31599]: INFO: ims_icscf [cxdx_uar.c:71]: create_uaa_return_code(): created AVP successfully : [uaa_return_code]<br>Jul 16 14:59:23 cw-aio /usr/sbin/kamailio[31605]: INFO: ims_icscf [cxdx_avp.c:137]: cxdx_get_avp(): cxdx_get_server_name: Failed finding avp<br>Jul 16 14:59:23 cw-aio /usr/sbin/kamailio[31605]: INFO: ims_icscf [cxdx_avp.c:137]: cxdx_get_avp(): cxdx_get_result_code: Failed finding avp<br>Jul 16 14:59:23 cw-aio /usr/sbin/kamailio[31605]: INFO: ims_icscf [cxdx_uar.c:71]: create_uaa_return_code(): created AVP successfully : [uaa_return_code]<br>Jul 16 14:59:23 cw-aio /usr/sbin/kamailio[31605]: ERROR: tm [ut.h:254]: uri2dst2(): ERROR: uri2dst: bad_uri: <a href="http://scscf.epc.mnc004.mcc324.3gppnetwork.org">scscf.epc.mnc004.mcc324.3gppnetwork.org</a><br>Jul 16 14:59:23 cw-aio /usr/sbin/kamailio[31605]: ERROR: tm [t_fwd.c:1711]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches<br></div></div></div></div></div>