<div dir="ltr"><br><div>Thanks Daniel for your usual help, it is really appreciated !</div><div><br></div><div>I've inserted the following block on the failure route: </div><div><div>        if (t_check_status("401|407")) {</div><div>                xlog("L_INFO","failure_route(ROUTEFAIL) @@ call to uac_auth()\n");</div><div>                uac_auth();</div><div>                t_relay();</div><div>                exit;</div><div>        }</div></div><div><br></div><div><br></div><div>Logs show:</div><div><div>Sep 26 15:29:08 kamailio /usr/sbin/kamailio[108044]: INFO: <script>: failure_route(ROUTEFAIL) @@ call to uac_auth()</div><div>Sep 26 15:29:08 kamailio /usr/sbin/kamailio[108044]: ERROR: tm [t_fwd.c:1723]: t_forward_nonack(): no branches for forwarding</div><div>Sep 26 15:29:08 kamailio /usr/sbin/kamailio[108044]: ERROR: tm [tm.c:1433]: _w_t_relay_to(): t_forward_noack failed</div></div><div><br></div><div>Here is the 401 received - to me, there is the challenge:</div><div><div><br></div></div><div><div><font face="monospace, monospace">2017/09/26 15:32:16.410800  pro.vid.er.ip:5060 ->  my.kam.ailio.ip:5060</font></div><div><font face="monospace, monospace">SIP/2.0 401 Unauthorized</font></div><div><font face="monospace, monospace">Via: SIP/2.0/UDP  my.kam.ailio.ip;branch=z9hG4bK2edf.049073b8bcb252b5f7b5e6fffcd8b498.0;received= my.kam.ailio.ip;rport=5060</font></div><div><font face="monospace, monospace">Via: SIP/2.0/UDP 46.105.145.36:5060;branch=z9hG4bK53167350</font></div><div><font face="monospace, monospace">From: <<a href="mailto:sip%3A0600000000@46.105.145.36">sip:0600000000@46.105.145.36</a>>;tag=as6fb1c402</font></div><div><font face="monospace, monospace">To: <sip:100622222222@ my.kam.ailio.ip>;tag=as61ddd570</font></div><div><font face="monospace, monospace">Call-ID: 242842785528c07b7fd56dc660b8c377@my.asterisk.ip:5060</font></div><div><font face="monospace, monospace">CSeq: 102 INVITE</font></div><div><font face="monospace, monospace">Server: OpenVoice-8</font></div><div><font face="monospace, monospace">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</font></div><div><font face="monospace, monospace">Supported: replaces</font></div><div><font face="monospace, monospace">WWW-Authenticate: Digest algorithm=MD5, realm="<a href="http://sip8.voip-centrex.net">sip8.voip-centrex.net</a>", nonce="6b04a972"</font></div><div><font face="monospace, monospace">Content-Length: 0</font></div></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 9:27 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Sep 26, 2017 at 09:08:26AM -0400, Jean Cérien wrote:<br>
> With the UACREG module, I am registering to a remote provider. Register<br>
> goes out, 401 back, Register goes out with nonce & co, OK<br>
><br>
> Later, when I send an invite, the provider issues an 401 Unauthorized. I<br>
> guess it expects me to resubmit an INVITE with the authentication data, but<br>
> I dont see how to do that.<br>
<br>
</span>Are you saying the 401 doesn't contain a challenge? Otherwise you<br>
should just use uac_auth() (just like you probably already do for the<br>
REGISTER), following URL contains an example for an INVITE:<br>
<a href="https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_auth" rel="noreferrer" target="_blank">https://www.kamailio.org/docs/<wbr>modules/stable/modules/uac.<wbr>html#uac.f.uac_auth</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>