<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class=""></span><span class="">Hi Daniel,</span><span class=""><br class=""><br class=""></span><span class="">I have applied this solution but failure_route doesn’t add Authorization header to the request after 401.</span><div class=""><span class="">Is there anything missing in my failure_route block?<br class=""></span><span class=""><br class=""></span><span class=""><font face="Courier New" class="">failure_route[REMOTE_AUTH] {<br class="">        if ($T_reply_code == 401 or $T_reply_code == 407) {<br class="">                xlog("L_NOTICE", "Remote asked for authentication");<br class="">                append_branch();<br class="">                uac_auth();<br class="">                t_relay();<br class="">        }<br class="">}</font></span></div><div class=""><span class=""><font face="Courier New" class=""><br class=""></font></span></div><div class=""><span class=""><br class=""><blockquote type="cite" class="">On 1 Aug 2017, at 09:40, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>> wrote:<br class=""><br class="">Hello,<br class=""><br class="">see:<br class=""><br class=""> -<br class=""><a href="https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_reg_request_to" class="">https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_reg_request_to</a><br class=""><br class="">Might offer what you are looking for.<br class=""><br class="">Cheers,<br class="">Daniel<br class=""><br class="">On 31.07.17 17:05, Volkan Oransoy wrote:<br class=""><blockquote type="cite" class="">Hi all,<br class=""><br class="">I use UAC module for remote registrations on my proxy box. There is no problem with incoming calls and I successfully register and receive calls. <br class="">I have a Freeswitch box behind this proxy box and I want my proxy to add authorisation headers for outgoing calls transparently. I already have credentials at uacreg table for remote registrations. Is it possible use same credentials at uac_auth() function? Or should I run SQL to retrieve necessary fields to feed uac_auth?<br class=""><br class="">Thanks!<br class=""><br class="">/Volkan<br class="">_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class="">sr-users@lists.kamailio.org<br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></blockquote><br class="">-- <br class="">Daniel-Constantin Mierla<br class="">www.twitter.com/miconda -- www.linkedin.com/in/miconda<br class="">Kamailio Advanced Training - www.asipto.com<br class="">Kamailio World Conference - www.kamailioworld.com<br class=""><br class=""></blockquote><br class=""></span></div></body></html>