<div dir="ltr">Hi, I want to realise scheme:<br><br>Asterisk->Kamailo->provider<br><br>I register providers accounts at Kamailio using UAC module.<br><br>When Generates call form Asterisk through Kamailio to provider, provider sends back 407 response. This reponse mut be handled by KAmailio through failure_route using uac_auth().<br>
<br>I try to catch this response at onreply_route by status and route this response to failure route (t_in_failure("MY_FAILURE_ROUTE"))but Kamailio ignores t_on_failure and forvard this pacjet to asterisk. <br><br>
So My question is: How to handle this response at kamailio and not forward to asterisk? <br><br>This is invite that forwards to provider:<br><br><div>INVITE <a href="http://sip:11234567890@my.provider.com:5060">sip:11234567890@my.provider.com:5060</a> SIP/2.0</div>
<div>Record-Route: <sip:my.kamailio.com:5068;nat=yes;ftag=as57a2d34c;lr=on></div><div>Via: SIP/2.0/UDP my.kamailio.com:5068;branch=z9hG4bK8544.480e25d0e6a328f5f455233d808cda80.0</div><div>Via: SIP/2.0/UDP 10.0.1.6:50600;branch=z9hG4bK778521b0;rport=50600</div>
<div>Max-Forwards: 70</div><div>From: "John" <<a href="http://sip:my_provider_acc@my.provider.com:50600">sip:my_provider_acc@my.provider.com:50600</a>>;tag=as57a2d34c</div><div>To: <<a href="http://sip:11234567890@my.provider.com:5068">sip:11234567890@my.provider.com:5068</a>></div>
<div>Contact:<<a href="http://my_provider_acc@my.kamailio.com:5068">my_provider_acc@my.kamailio.com:5068</a>></div><div>Call-ID: <a href="http://3d8d6c357d69cdd51633b1c125729f44@10.0.1.6:50600">3d8d6c357d69cdd51633b1c125729f44@10.0.1.6:50600</a></div>
<div>CSeq: 102 INVITE</div><div>User-Agent: Asterisk PBX 12.4.0</div><div>Date: Sat, 16 Aug 2014 13:18:52 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE</div><div>
Supported: replaces, timer</div><div>Content-Type: application/sdp</div><div>Content-Length: 540</div><div><br></div><div>v=0</div><div>o=root 1941643043 1941643043 IN <a href="http://my.kamailio.com">my.kamailio.com</a></div>
<div>s=Asterisk PBX 12.4.0</div><div>c=IN IP4 <a href="http://my.kamailio.com">my.kamailio.com</a></div><div>t=0 0</div><div>a=ice-lite</div><div>m=audio 30108 RTP/AVP 0 3 8 101</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:3 GSM/8000</div>
<div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=maxptime:150</div><div>a=sendrecv</div><div>a=rtcp:30109</div><div>a=ice-ufrag:jOv9GFqq</div>
<div>a=ice-pwd:wuXGbJ3ZI7MfwM6kwto78s8reEyU</div><div>a=candidate:lzqT8la5i9wkzQzB 1 UDP 2130706431 <a href="http://my.kamailio.com">my.kamailio.com</a> 30108 typ host</div><div>a=candidate:lzqT8la5i9wkzQzB 2 UDP 2130706430 <a href="http://my.kamailio.com">my.kamailio.com</a> 30109 typ host</div>
</div>