Re: [SR-Users] 401 responses ending up in onreply_route instead of failure_route

2014-01-31 Thread Daniel Tryba
On Friday 31 January 2014 11:28:54 Daniel-Constantin Mierla wrote: > Are you sure there is no other set for failure route before getting to > route[RELAY]? Inside it, there is an IF for setting the failure route. Shame on me, I'm using the dispatcher module and since route[DISPATCHER] ends with:

Re: [SR-Users] 401 responses ending up in onreply_route instead of failure_route

2014-01-31 Thread Daniel-Constantin Mierla
Are you sure there is no other set for failure route before getting to route[RELAY]? Inside it, there is an IF for setting the failure route. If not set in other place, I can check the code once I get a chance, but I don't remember any filtering out 401. Maybe you can give a quick try without

Re: [SR-Users] 401 responses ending up in onreply_route instead of failure_route

2014-01-31 Thread Daniel Tryba
On Friday 31 January 2014 06:17:35 Daniel-Constantin Mierla wrote: > > But to my suprise the 401 doesn't end up in the failure_route but in the > > onreply_route. Why? What am I missing? > > if you don't drop it in the onreply route, then you should have the > failure route executed as well. Also

Re: [SR-Users] 401 responses ending up in onreply_route instead of failure_route

2014-01-30 Thread Daniel-Constantin Mierla
Hello, On 30/01/14 18:33, Daniel Tryba wrote: Situation: endpoint -> kamailio (4.1.0) -> upstream sip server (kamailio 4.0.x) For an outbound call endpoint authenticates with kamailio. Kamailio relays the invite to upstream and upstream responds with a 401. This 401 should trigger authenticati

[SR-Users] 401 responses ending up in onreply_route instead of failure_route

2014-01-30 Thread Daniel Tryba
Situation: endpoint -> kamailio (4.1.0) -> upstream sip server (kamailio 4.0.x) For an outbound call endpoint authenticates with kamailio. Kamailio relays the invite to upstream and upstream responds with a 401. This 401 should trigger authentication. So I thought I could use uac_auth() to fix