Thanks for looking at it, I have put in a notice message in the failure_route and it's not showing in the log which suggests it's not triggering this route at all.
I don't think it is treating the 401 as a failure route.
Keith
On Tue, Oct 8, 2013 at 1:54 PM, sr-users-request@lists.sip-router.orgwrote:
Send sr-users mailing list submissions to sr-users@lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users or, via email, send a message with subject or body 'help' to sr-users-request@lists.sip-router.org
You can reach the person managing the list at sr-users-owner@lists.sip-router.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of sr-users digest..."
Today's Topics:
- Re: On register (Keith)
- Re: On register (Daniel-Constantin Mierla)
- Re: Apply changes made to sip reply in onreply_route (Klaus Darilion)
- Re: Presence: Duplicate entry 'username-domain-presence-*#-OFFLINE-#*' for key 'presentity_idx' when multiple clients register using the same credentials (Yufei Tao)
Message: 1 Date: Tue, 8 Oct 2013 12:31:20 +0100 From: Keith keith@hubner.co.uk To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List" sr-users@lists.sip-router.org Subject: Re: [SR-Users] On register Message-ID: <CAK7Ybu96QT+xt6BqJCjemai5En8uZ7VHigCg= AFvpP5tUYKXWw@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
Hi,
I am trying to "on register" from kamailio to an asterisk box. I am having trouble when asterisk sends a 401 to the first register response. I have tried to set a failure route as follows: t_on_failure("FAILURE_HANDLE");
failure_route[FAILURE_HANDLE] {
if (t_is_canceled()) {
exit; }
if(t_check_status("401")) { uac_auth(); } t_relay(); }
But it doesn't see to send the credentials back.
Any help would be appreciated. Thanks. Keith