<div dir="ltr"><div><span style="font-family:"Segoe UI Historic",sans-serif;font-size:14.6667px">From: <sip:399@UA1_IP:52884;</span><span style="font-family:"Segoe UI Historic",sans-serif;font-size:14.6667px">rinstance=705e0af5f4be485c;</span><span style="font-family:"Segoe UI Historic",sans-serif;font-size:14.6667px">alias=NAT_Device_IP:~57808~1>;</span><span style="font-family:"Segoe UI Historic",sans-serif;font-size:14.6667px">tag=64f4b712</span> </div><div><br></div><div>Something wrong with the above From, no closing ">", also there's no place for <b>alias </b>in From headers.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 10, 2020 at 1:25 AM Daniel W. Graham <<a href="mailto:dan@cmsinter.net">dan@cmsinter.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-7440552783343003526WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Have an issue with BYE routing in a lab setup, any suggestions on what I should be looking at?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Topology:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">UA1 <-> NAT device 1 <-> Proxy1 <-> Registrar/B2BUA <-> Proxy1 <-> NAT device 1 <-> UA2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">All UA to UA calls flow through B2BUA.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">All IP’s are public except for UA1 and UA2.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">-Both endpoints can call each other.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">-If the caller hangs up first, BYE is routed properly.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">-If the callee hangs up first, BYE causes proxy to send 478.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">On calls where BYE results in 478:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">if(!isdsturiset()) {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"> ……….…………………….not executed<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"> handle_ruri_alias()<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">return;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Example issue call: UA2 to UA1, UA1 hang-up.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=540 a=16 n=if<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=532 a=24 n=isdsturiset<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=540 a=2 n=return<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">………..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} tm [ut.h:245]: uri2dst2(): bad_uri: [sip::;transport=]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} tm [t_fwd.c:1732]: t_forward_nonack(): failure
to add branches<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[RELAY]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=275 a=24 n=sl_reply_error<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} sl [sl_funcs.c:401]: sl_reply_error(): stateless
error reply used: Unresolvable destination (478/SL)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[RELAY]
c=[/usr/local/etc/kamailio/kamailio.cfg] l=277 a=2 n=exit<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">2020/04/10 00:31:28.625060 NAT_Device_IP:57808 -> Proxy_IP:5060<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">BYE sip:398@B2BUA_IP:5160 SIP/2.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Via: SIP/2.0/UDP UA1_IP:52884;branch=z9hG4bK-524287-1---43b5f31829f20952<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Max-Forwards: 70<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Route: <sip:Proxy_IP;lr=on;ftag=as78671fd9;did=b1b.a27><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Contact: <sip:399@UA1_IP:52884><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">To: "Dan Test" <sip:398@B2BUA_IP:5160>;tag=as78671fd9<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">From: <sip:399@UA1_IP:52884;rinstance=705e0af5f4be485c;alias=NAT_Device_IP:~57808~1>;tag=64f4b712<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Call-ID: 24dc84a4592515245177483c2a657042@B2BUA_IP:5160<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">CSeq: 2 BYE<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">User-Agent: xxxxxxxxxxxxxxxx<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Content-Length: 0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">#########################################<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">For comparison, here is a BYE from another test call:
<u>UA1 to UA2, UA1 hang-up.<u></u><u></u></u></span></p>
<p class="MsoNormal"><u><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u><span style="text-decoration:none"> </span><u></u></span></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">This BYE was routed correctly.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">2020/04/10 00:44:02.688608 NAT_Device_IP:57808 -> Proxy_IP:5060<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">BYE sip:398@B2BUA_IP:5160 SIP/2.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Via: SIP/2.0/UDP UA1_IP:52884;branch=z9hG4bK-524287-1---ce36df02e8a80a48<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Max-Forwards: 70<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Route: <sip:Proxy_IP;lr=on;ftag=9078f232;did=49e.8c01><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Contact: <sip:399@UA1_IP:52884><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">To: <sip:398@B2BUA_IP>;tag=as5874901f<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">From: <sip:399@B2BUA_IP:5060>;tag=9078f232<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Call-ID: 103104NGU1NjkxNGZkYmM4MzA3Y2FkMzY1OGNkZTZmMTMyZDU<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">CSeq: 3 BYE<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">User-Agent: xxxxxxxxxxxxxxxx<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Authorization: Digest username= xxxxxxxxxxxxxxxx<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif">Content-Length: 0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Segoe UI Historic",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">-dan<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">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/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>