<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi list,<br><br></div>I'm facing an routing issue with the following sip infrastructure:<br><br></div><div>ASTERISK 1 ---\___ Kamailio proxy ____ Kamailio frontend ___ IPBX<br></div><div>ASTERISK 2 ---/<br></div><div><br></div><div>And please find below desired call-flow:<br></div><div><br></div>1 - An asterisk 1 server send a call to a proxy<br></div>2 - This proxy make a location lookup, and send it to kamailio frontend proxy<br></div>3 - Frontend proxy relay to Wazo PBX (for example)<br></div>4 - Callee respond ...<br></div>5 - Callee hangup the call, so Wazo PBX send a BYE request to kamailio frontend proxy<br></div>6 - Based on Route headers, frontend forward BYE request to proxy<br></div>7 - ... here cames issues ...<br><br></div>Question is simple (but answer will be probably more complex): how can i sent in dialog BYE request to ASTERISK 1, and not asterisk 2.<br><br></div>Should i use dispatcher module ?<br></div>Should i use specials headers to send back to Asterisk 1 the BYE request ?<br></div><div>What is the normal behaviour for in-dialog requests ?<br></div><div><br></div>I can't find any answers on SIP RFCs or any archived  messages on mailing list.<br><br></div>Thanks in advance,<br></div>Best regards.<br><div><div><br><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div>