<div dir="ltr"><div><div>I saw that, but<br></div>1. It doesn't work in failure_route (MANAGE_FAILURE from std. config) either<br></div>2. My question was more general - is it even possible to do what I need with Kamailio<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-27 13:24 GMT+02:00 Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday 27 November 2015 13:01:19 Alexandru Covalschi wrote:<br>
> If I try to put<br>
>         if ($T_reply_code == 401 or $T_reply_code == 407) {<br>
>                 xlog("L_NOTICE", "Remote asked for authentication");<br>
>                 uac_auth();<br>
>         }<br>
> to MANAGE_FAILURE or MANAGE_REPLY route Kamailio can't start.<br>
><br>
> Is that even possible?<br>
<br>
<br>
</span>Why/What is the error reported?<br>
<br>
Have you read:<br>
<a href="http://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_auth%28%29" rel="noreferrer" target="_blank">http://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_auth%28%29</a><br>
"<br>
4.7.  uac_auth()<br>
<br>
This function can be called only from failure route and will build the<br>
authentication response header and insert it into the request without sending<br>
anything.<br>
<br>
This function can be used from FAILURE_ROUTE.<br>
"<br>
<br>
So is the error that you are using a function in the reply route that isn't<br>
being allowed in that router?<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Alexandru Covalschi<br>ABRISS-Solutions<div>VoIP engineer and system administrator<br>phone: +37367398493<br>web: <a href="http://abs-telecom.com/" target="_blank">http://abs-telecom.com/</a></div></div></div>
</div>