<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi list<br><br></div>i'm testing uac module with a did provider, <span id="result_box" class="" lang="en"><span class="">apparently it works the first register, when it's going to refresh the session the register packed don't send the </span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">proxy-authorization</span></span> header.<br>
<br></span></span></div><span id="result_box" class="" lang="en"><span class="">My kamailio is 4.0, the debian wheezy repository<br><br></span></span></div><span id="result_box" class="" lang="en"><span class=""><b>this is my parameter config:</b><br>
<br>#!ifdef WITH_UAC<br>#---------- uac params ----------#<br>modparam("uac", "reg_db_url",DBURL)<br>modparam("uac", "reg_timer_interval",60)<br>modparam("uac", "reg_retry_interval",120)<br>
modparam("uac", "reg_db_table", "uacreg")<br>modparam("uac","credential","username:domain:password")<br>modparam("uac","auth_realm_avp","$avp(i:10)")<br>
modparam("uac","auth_username_avp","$avp(i:11)")<br>modparam("uac","auth_password_avp","$avp(i:12)")<br>modparam("uac","restore_mode","auto")<br>
modparam("uac", "reg_contact_addr", "xx.xx.xx:5060")<br>#!endif<br><br> <br><br><br></span></span></div><span id="result_box" class="" lang="en"><span class=""><b>this is the route block:</b><br>
<br>  if(uac_reg_request_to("$fU", 1))<br>        {<br>        xlog("L_NOTICE", "Found remote user [$rU] on [$rd] via [$du]");<br>        t_on_failure("REMOTE_AUTH");<br><br>        t_relay();<br>
        }<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><b>         inside route[LOCATION] at the end:</b><br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">#!ifdef WITH_UAC<br>
<br>        if(uac_reg_lookup("$rU", "$ru")) {<br>        xlog("request from a remote SIP provider [$ou => $ru]\n");<br>        }<br>                lookup("location");<br><br>#!endif<br>
<br><br><br>failure_route[REMOTE_AUTH] {<br>        if ($T_reply_code == 401 or $T_reply_code == 407) {<br>                xlog("L_NOTICE", "Remote asked for authentication");<br>                uac_auth();<br>
                }<br>        }<br><br><br></span></span></div><span id="result_box" class="" lang="en"><span class=""><b>this is the error log by syslog</b><br><br>ct 11 13:52:47 rene /usr/sbin/kamailio[7413]: INFO: <script>: Routing locally generated REGISTER to<sip:<a href="http://ippbx.xxxxx.com">ippbx.xxxxx.com</a>><br>
Oct 11 13:52:47 rene /usr/sbin/kamailio[7400]: ERROR: uac [uac_reg.c:537]: uac_reg_tm_callback(): authentication failed for <2127207679><br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">  </span></span><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></div><span id="result_box" class="" lang="en"><span class=""><b>this is sip trace with first register:</b><br><br>Frame 209: 671 bytes on wire (5368 bits), 671 bytes captured (5368 bits) on interface 0<br>Ethernet II, Src: Hewlett-_6b:6e:49 (10:1f:74:6b:6e:49), Dst: Cisco_7f:1e:69 (00:13:1a:7f:1e:69)<br>
Internet Protocol Version 4, Src: 10.20.8.45 (10.20.8.45), Dst: xx.xx.xx.xx (xx.xx.xx.xx)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>Session Initiation Protocol<br>    Request-Line: REGISTER sip:<a href="http://ippbx.xxxxx.com">ippbx.xxxxx.com</a> SIP/2.0<br>
    Message Header<br>        Via: SIP/2.0/UDP 10.20.8.45;branch=z9hG4bKb278.906502e4.0<br>        To: <a href="mailto:sip%3A5201341115@ippbx.xxxxx.com">sip:5201341115@ippbx.xxxxx.com</a><br>        From: <a href="mailto:sip%3A5201341115@ippbx.xxxxx.com">sip:5201341115@ippbx.xxxxx.com</a>;tag=533cb9e91f4b999cf76861cbb9ed54ed-4cad<br>
        CSeq: 11 REGISTER<br>        Call-ID: <a href="mailto:2e81fffd-7628@127.0.0.1">2e81fffd-7628@127.0.0.1</a><br>        Max-Forwards: 70<br>        Content-Length: 0<br>        User-Agent: kamailio (4.0.3 (i386/linux))<br>
        Contact: <sip:01133212720@xxx.xxx.xxx:5060><br>        Expires: 60<br>        Proxy-Authorization: Digest username="1341115", realm="xxxxx", nonce="5DB4B614FCD76AD44FFFC3BEAECBDA9B", uri="sip:<a href="http://ippbx.xxxxx.com">ippbx.xxxxx.com</a>", response="d7d38055e339a2554cf2bb7e79e9b6f4", algorithm=MD5<br>
<br><br><br><br></span></span></div><span id="result_box" class="" lang="en"><span class=""><b>this is sip trace with the second register:</b><br><br>Frame 681: 468 bytes on wire (3744 bits), 468 bytes captured (3744 bits) on interface 0<br>
Ethernet II, Src: Hewlett-_6b:6e:49 (10:1f:74:6b:6e:49), Dst: Cisco_7f:1e:69 (00:13:1a:7f:1e:69)<br>Internet Protocol Version 4, Src: 10.20.8.45 (10.20.8.45), Dst: xx.xx.xx.xx (66.33.146.52)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>
Session Initiation Protocol<br>    Request-Line: REGISTER sip:<a href="http://ippbx.xxxxx.com">ippbx.xxxxx.com</a> SIP/2.0<br>    Message Header<br>        Via: SIP/2.0/UDP 10.20.8.45;branch=z9hG4bKb278.a06502e4.0<br>        To: <a href="mailto:sip%3A5201341115@ippbx.xxxxx.com">sip:5201341115@ippbx.xxxxx.com</a><br>
        From: <a href="mailto:sip%3A5201341115@ippbx.xxxxx.com">sip:5201341115@ippbx.xxxxx.com</a>;tag=533cb9e91f4b999cf76861cbb9ed54ed-4d45<br>        CSeq: 10 REGISTER<br>        Call-ID: <a href="mailto:2e81fffe-7628@127.0.0.1">2e81fffe-7628@127.0.0.1</a><br>
        Max-Forwards: 70<br>        Content-Length: 0<br>        User-Agent: kamailio (4.0.3 (i386/linux))<br>        Contact: </span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class=""> <sip:01133212720@xxx.xxx.xxx:5060></span></span> <br>
       Expires: 60<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">there isn't proxy-authorization Header<br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></div><div><span id="result_box" class="" lang="en"><span class="">Any help i don't know what it's wrong<br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br></span></span></div>
<span id="result_box" class="" lang="en"><span class="">Best Regards<br></span></span></div><span id="result_box" class="" lang="en"><span class="">Rene  Montilva<br></span></span><div><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></div></div>