[SR-Users] Kamailio as UAC
Daniel Tryba
d.tryba at pocos.nl
Fri Nov 27 12:24:39 CET 2015
On Friday 27 November 2015 13:01:19 Alexandru Covalschi wrote:
> If I try to put
> if ($T_reply_code == 401 or $T_reply_code == 407) {
> xlog("L_NOTICE", "Remote asked for authentication");
> uac_auth();
> }
> to MANAGE_FAILURE or MANAGE_REPLY route Kamailio can't start.
>
> Is that even possible?
Why/What is the error reported?
Have you read:
http://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_auth%28%29
"
4.7. uac_auth()
This function can be called only from failure route and will build the
authentication response header and insert it into the request without sending
anything.
This function can be used from FAILURE_ROUTE.
"
So is the error that you are using a function in the reply route that isn't
being allowed in that router?
More information about the sr-users
mailing list