<div dir="ltr"><div><div><div><div><div><div><div>As far i read on Kamailio reposity, WITHINDLG use loose_route() function.<br></div>But on BYE request, no Route headers (corresponding to asterisk 1) are available => BYE request can not be loose routed. Route headers has been remove by loadbalancer to avoid routing injections on my network (by an hacker for example).<br><br></div>Example of BYE request sent from IPBX throught Loadbalancer to Kamailio proxy:<br><br>BYE sip:<a href="http://10.0.246.76:5060">10.0.246.76:5060</a> SIP/2.0<br> Record-Route: <sip:10.0.246.189;r2=on;lr=on;ftag=as08627a3a;socket=udp:<a href="http://91.129.172.36:5060">91.129.172.36:5060</a>><br> Record-Route: <sip:91.129.172.36;r2=on;lr=on;ftag=as08627a3a;socket=udp:<a href="http://91.129.172.36:5060">91.129.172.36:5060</a>><br> Via: SIP/2.0/UDP 10.0.246.189;branch=z9hG4bK0d3d.f756947e05f126ea9f04daf00218c6fa.0<br> Via: SIP/2.0/UDP 91.129.172.1:3198;received=91.129.172.1;branch=z9hG4bK6896d552;rport=3198<br> Max-Forwards: 69<br> From: <<a href="mailto:sip%3A0450584004@example.net">sip:0450584004@example.net</a>>;tag=as08627a3a<br> To: 0482680110 <<a href="mailto:sip%3A0481680110@example.net">sip:0481680110@example.net</a>>;tag=0ee03819-900d-4d09-8188-de39ce74afcf<br> Call-ID: 25bf2883-640c-4139-aca6-6c3e1170ea60<br> CSeq: 102 BYE<br> User-Agent: Wazo PBX<br> X-Asterisk-HangupCause: Normal Clearing<br> X-Asterisk-HangupCauseCode: 16<br><br><br></div>With:<br></div>10.0.246.76 -> Asterisk 1<br></div>91.129.172.36 -> Loadbalancer public IP<br>10.0.246.189 -> Loadbalancer public private<br><br></div>Only Request URI has Asterisk 1 IP address.<br></div>If i set more debug on kamailio, message return by kamailio: No transaction match. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-04 16:36 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 Wed, Apr 04, 2018 at 11:57:55AM +0200, Loic Chabert wrote:<br>
> Question is simple (but answer will be probably more complex): how can i<br>
> sent in dialog BYE request to ASTERISK 1, and not asterisk 2.<br>
<br>
</span>I'm confused, what does your config look like? The normal way to do this<br>
just to t_relay() these, see the route[WITHINDLG] in the default example<br>
config:<br>
<a href="https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg" rel="noreferrer" target="_blank">https://github.com/kamailio/<wbr>kamailio/blob/master/etc/<wbr>kamailio.cfg</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>