<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>According to the trace, you don't route the BYE based on loose
routing rules:</p>
<p>
<meta charset="utf-8">
</p>
<ol style="color: rgb(0, 0, 0); font-family: "Liberation
Sans", "Lucida Grande", "Luxi Sans",
"Bitstream Vera Sans", helvetica, verdana, arial,
sans-serif; font-size: 12px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">
<li style="font-weight: normal; vertical-align: top;">
<div style="font-style: normal; font-variant: normal;
font-weight: normal; font-stretch: normal; font-size: 1em;
line-height: 1.2em; font-family: monospace; margin: 0px;
padding: 0px; background: none; vertical-align: top;">2016/11/09
16:55:00.788067 10.18.130.27:5060 -> 10.18.130.24:5160</div>
</li>
<li style="font-weight: normal; vertical-align: top;">
<div style="font-style: normal; font-variant: normal;
font-weight: normal; font-stretch: normal; font-size: 1em;
line-height: 1.2em; font-family: monospace; margin: 0px;
padding: 0px; background: none; vertical-align: top;">BYE
<a class="moz-txt-link-freetext" href="sip:mod_sofia@10.18.130.26:5160">sip:mod_sofia@10.18.130.26:5160</a> SIP/2.0</div>
</li>
<li style="font-weight: normal; vertical-align: top;">
<div style="font-style: normal; font-variant: normal;
font-weight: normal; font-stretch: normal; font-size: 1em;
line-height: 1.2em; font-family: monospace; margin: 0px;
padding: 0px; background: none; vertical-align: top;">Via:
SIP/2.0/UDP
10.18.130.27;branch=z9hG4bKca09.3439664767a2d9212561e9758e87ea79.0</div>
</li>
<li style="font-weight: normal; vertical-align: top;">
<div style="font-style: normal; font-variant: normal;
font-weight: normal; font-stretch: normal; font-size: 1em;
line-height: 1.2em; font-family: monospace; margin: 0px;
padding: 0px; background: none; vertical-align: top;">Via:
SIP/2.0/UDP
client_public_ip:25573;received=client_public_ip;branch=z9hG4bK1793905301;rport=25573</div>
</li>
<li style="font-weight: normal; vertical-align: top;">
<div style="font-style: normal; font-variant: normal;
font-weight: normal; font-stretch: normal; font-size: 1em;
line-height: 1.2em; font-family: monospace; margin: 0px;
padding: 0px; background: none; vertical-align: top;">Route:
<a class="moz-txt-link-rfc2396E" href="sip:proxy_public_ip:5084;r2=on;lr=on;ftag=6NZ4FBNK7SmHS"><sip:proxy_public_ip:5084;r2=on;lr=on;ftag=6NZ4FBNK7SmHS></a></div>
</li>
<li style="font-weight: normal; vertical-align: top;">
<div style="font-style: normal; font-variant: normal;
font-weight: normal; font-stretch: normal; font-size: 1em;
line-height: 1.2em; font-family: monospace; margin: 0px;
padding: 0px; background: none; vertical-align: top;">Route:
<a class="moz-txt-link-rfc2396E" href="sip:10.18.130.27;r2=on;lr=on;ftag=6NZ4FBNK7SmHS"><sip:10.18.130.27;r2=on;lr=on;ftag=6NZ4FBNK7SmHS></a></div>
</li>
</ol>
<br>
The BYE is forwarded without handling (and removing) the Route
headers of the server.<br>
<br>
It is due to wrong processing of the bye in kamailio.cfg -- again,
look at the example config in dispatcher docs for something that you
can compare with.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 10/11/16 00:11, Slava Bendersky
wrote:<br>
</div>
<blockquote
cite="mid:690374966.5937517.1478733116658.JavaMail.zimbra@skillsearch.ca"
type="cite">
<div style="font-family: lucida console,sans-serif; font-size:
12pt; color: #000000">
<div>Hello Everyone,</div>
<div>Here are full trace call.</div>
<div><br data-mce-bogus="1">
</div>
<div><a class="moz-txt-link-freetext" href="https://paste.fedoraproject.org/476607/14787290/">https://paste.fedoraproject.org/476607/14787290/</a></div>
<div><br data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>Slava.</div>
<div><br>
</div>
<hr id="zwchr" data-marker="__DIVIDER__">
<div data-marker="__HEADERS__"><b>From: </b>"volga629"
<a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca"><volga629@skillsearch.ca></a><br>
<b>To: </b>"sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Wednesday, 9 November, 2016 13:17:34<br>
<b>Subject: </b>Re: [SR-Users] BYE dispatcher<br>
</div>
<div><br>
</div>
<div data-marker="__QUOTED_TEXT__">
<div style="font-family: lucida console,sans-serif; font-size:
12pt; color: #000000" data-mce-style="font-family: lucida
console,sans-serif; font-size: 12pt; color: #000000;">
<div>
<div>Based on this out put Freeswitch send BYE to kamailio
and Route present then kamailio forward BYE to client
and no routes. Then client reply 481. Do I need add it
? Is this tag= problem ?</div>
<br>
<div>24 is freeswtich and 27 kamailio.</div>
<br>
<div>IP (tos 0x0, ttl 64, id 56723, offset 0, flags
[none], proto UDP (17), length 704)<br>
10.18.130.24.5160 > 10.18.130.27.sip: [udp sum ok]
UDP, length 676<br>
<a class="moz-txt-link-abbreviated" href="mailto:E.......@..B">E.......@..B</a><br>
...<br>
....(....8.BYE <a class="moz-txt-link-freetext" href="sip:4300@client_public_ip:49383">sip:4300@client_public_ip:49383</a> SIP/2.0<br>
Via: SIP/2.0/UDP
10.18.130.24:5160;rport;branch=z9hG4bKm80c0USSKv5Bp<br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:10.18.130.27;r2=on;lr=on;ftag=SXt3DQQ90a0Dj"><sip:10.18.130.27;r2=on;lr=on;ftag=SXt3DQQ90a0Dj></a><br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:proxy_public_ip:5084;r2=on;lr=on;ftag=SXt3DQQ90a0Dj"><sip:proxy_public_ip:5084;r2=on;lr=on;ftag=SXt3DQQ90a0Dj></a><br>
Max-Forwards: 70<br>
From: "Test Extension"
<a class="moz-txt-link-rfc2396E" href="sip:4300@sip.company.tld"><sip:4300@sip.company.tld></a>;tag=SXt3DQQ90a0Dj<br>
To:
<a class="moz-txt-link-rfc2396E" href="sip:4300@client_public_ip:49383"><sip:4300@client_public_ip:49383></a>;tag=719973534<br>
Call-ID: 1abc150b-2141-1235-b5ad-5254003e39bb<br>
CSeq: 99019404 BYE<br>
User-Agent: FreeSWITCH<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
Supported: timer, path, replaces<br>
Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br>
Content-Length: 0<br>
<br>
<br>
IP (tos 0x10, ttl 64, id 36705, offset 0, flags [none],
proto UDP (17), length 700)<br>
proxy_public_ip.llrp > client_public_ip.49383: [bad
udp cksum 0x4d15 -> 0x34be!] UDP, length 672<br>
<a class="moz-txt-link-abbreviated" href="mailto:E....a..@..d.E.\c.........M.BYE">E....a..@..d.E.\c.........M.BYE</a>
<a class="moz-txt-link-freetext" href="sip:4300@client_public_ip:49383">sip:4300@client_public_ip:49383</a> SIP/2.0<br>
Via: SIP/2.0/UDP
proxy_public_ip:5084;branch=z9hG4bK3ea6.0c594485bff5b216f30af0f6172cb2b9.0<br>
Via: SIP/2.0/UDP
10.18.130.24:5160;received=10.18.130.24;rport=5160;branch=z9hG4bKm80c0USSKv5Bp<br>
Max-Forwards: 69<br>
From: "Test Extension"
<a class="moz-txt-link-rfc2396E" href="sip:4300@sip.company.tld"><sip:4300@sip.company.tld></a>;tag=SXt3DQQ90a0Dj<br>
To:
<a class="moz-txt-link-rfc2396E" href="sip:4300@client_public_ip:49383"><sip:4300@client_public_ip:49383></a>;tag=719973534<br>
Call-ID: 1abc150b-2141-1235-b5ad-5254003e39bb<br>
CSeq: 99019404 BYE<br>
User-Agent: FreeSWITCH<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
Supported: timer, path, replaces<br>
Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br>
Content-Length: 0<br>
<br>
<br>
IP (tos 0x0, ttl 52, id 7731, offset 0, flags [none],
proto UDP (17), length 638)<br>
client_public_ip.49383 > proxy_public_ip.llrp: [udp
sum ok] UDP, length 610<br>
E..~.3..4...c....E.\.....j..SIP/2.0 481 Call
Leg/Transaction Does Not Exist<br>
Via: SIP/2.0/UDP
proxy_public_ip:5084;branch=z9hG4bK3ea6.0c594485bff5b216f30af0f6172cb2b9.0<br>
Via: SIP/2.0/UDP
10.18.130.24:5160;received=10.18.130.24;rport=5160;branch=z9hG4bKm80c0USSKv5Bp<br>
From: "Test Extension"
<a class="moz-txt-link-rfc2396E" href="sip:4300@sip.company.tld"><sip:4300@sip.company.tld></a>;tag=SXt3DQQ90a0Dj<br>
To:
<a class="moz-txt-link-rfc2396E" href="sip:4300@client_public_ip:49383"><sip:4300@client_public_ip:49383></a>;tag=719973534<br>
Call-ID: 1abc150b-2141-1235-b5ad-5254003e39bb<br>
CSeq: 99019404 BYE<br>
Supported: replaces, path, eventlist<br>
User-Agent: Grandstream Wave 1.2.2<br>
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE,
NOTIFY, INFO, REFER, UPDATE, MESSAGE<br>
Content-Length: 0</div>
<br>
<div>Slava.</div>
<br>
</div>
<br>
<hr id="zwchr">
<div><b>From: </b>"volga629"
<a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca"><volga629@skillsearch.ca></a><br>
<b>To: </b>"sr-users"
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Wednesday, 9 November, 2016 13:07:11<br>
<b>Subject: </b>Re: [SR-Users] BYE dispatcher<br>
</div>
<br>
<div>
<div style="font-family: lucida console,sans-serif;
font-size: 12pt; color: #000000"
data-mce-style="font-family: lucida console,sans-serif;
font-size: 12pt; color: #000000;">
<div>Hello Everyone,</div>
<div>I cleared registrations and tried again and issue
still present.</div>
<div>Client reply with 481.</div>
<br>
<div>IP (tos 0x0, ttl 52, id 7731, offset 0, flags
[none], proto UDP (17), length 638)<br>
client_pub_ip.49383 > proxy_pub_ip.llrp: [udp sum
ok] UDP, length 610<br>
E..~.3..4...c....E.\.....j..SIP/2.0 481 Call
Leg/Transaction Does Not Exist<br>
Via: SIP/2.0/UDP<span style="color: rgb(0, 0, 0);
font-family: "lucida console", sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: rgb(255, 255, 255); display:
inline !important; float: none;"
data-mce-style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;"> </span><span
style="color: rgb(0, 0, 0); font-family:
"lucida console", sans-serif; font-size:
16px; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display:
inline !important; float: none;"
data-mce-style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;">proxy_pub_ip</span>:5084;branch=z9hG4bK3ea6.0c594485bff5b216f30af0f6172cb2b9.0<br>
Via: SIP/2.0/UDP
10.18.130.24:5160;received=10.18.130.24;rport=5160;branch=z9hG4bKm80c0USSKv5Bp<br>
From: "Test Extension"
<a class="moz-txt-link-rfc2396E" href="sip:4300@sip.company.tld"><sip:4300@sip.company.tld></a>;tag=SXt3DQQ90a0Dj<br>
To: <<a class="moz-txt-link-freetext" href="sip:4300@">sip:4300@</a><span style="color: rgb(0, 0, 0);
font-family: "lucida console", sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: rgb(255, 255, 255); display:
inline !important; float: none;"
data-mce-style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;">client_pub_ip</span>:49383>;tag=719973534<br>
Call-ID: 1abc150b-2141-1235-b5ad-5254003e39bb<br>
CSeq: 99019404 BYE<br>
Supported: replaces, path, eventlist<br>
User-Agent: Grandstream Wave 1.2.2<br>
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE,
NOTIFY, INFO, REFER, UPDATE, MESSAGE<br>
Content-Length: 0<br>
</div>
<br>
<div>Slava.</div>
<br>
<hr id="zwchr">
<div><b>From: </b>"volga629"
<a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca"><volga629@skillsearch.ca></a><br>
<b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a>, "sr-users"
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Wednesday, 9 November, 2016 12:28:32<br>
<b>Subject: </b>Re: [SR-Users] BYE dispatcher<br>
</div>
<br>
<div>
<div style="font-family: lucida console,sans-serif;
font-size: 12pt; color: #000000"
data-mce-style="font-family: lucida
console,sans-serif; font-size: 12pt; color:
#000000;">
<div>Hello Everyone,</div>
<div>I changed dispatcher algorithm from 0 to 1 and
start working as expected. Yes group 0 is
accepted.</div>
<br>
<div>route[DISPATCHER] {<br>
if(!ds_select_dst("0", "1")) {<br>
xlog("L_ERROR","ERROR: Proxy Mapping - Desitnation
for $fd not found...request dropped \n");<br>
sl_send_reply("404","Desitination Not Found \n");<br>
drop();<br>
} else {<br>
$var(did) = 1;<br>
}<br>
if($var(did)) {<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
}<br>
#forward();<br>
}<br>
<br>
t_on_failure("DISPATCHER_FAIL_ROUTE");<br>
exit;<br>
}<br>
<br>
</div>
<div>Slava.</div>
<br>
<hr id="zwchr">
<div><b>From: </b>"Daniel-Constantin Mierla"
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>To: </b>"sr-users"
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Wednesday, 9 November, 2016 04:33:33<br>
<b>Subject: </b>Re: [SR-Users] BYE dispatcher<br>
</div>
<br>
<div>
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 08/11/16 20:42,
Slava Bendersky wrote:<br>
</div>
<blockquote
cite="mid:981933097.5086863.1478634156825.JavaMail.zimbra@skillsearch.ca">
<div style="font-family: lucida
console,sans-serif; font-size: 12pt; color:
#000000" data-mce-style="font-family: lucida
console,sans-serif; font-size: 12pt; color:
#000000;">
<div>Hello Everyone,</div>
<div>My setup is kamailio as proxy with few
boxes of freeswitch in the LAN. Having issue
with BYE when extensions register on
different freeswitch boxes. Here are some
trace of the call.</div>
<div>Not sure if this tag= miss match or
routing.</div>
<br>
<div>Dispatcher use group 0 with option 4
(round robin).</div>
<br>
</div>
</blockquote>
is group value 0 accepted? I think this may create
problems if a function returns the group in the
config as return code -- iirc, this was changed
maybe for lcr or permissions.<br>
<br>
On the other hand, the registrations are quite
independent in SIP in relation with calls. The BYE
should be routed based on record-routing to the
freeswitch that was involved in routing initial
INVITE, with no relation to new registrations from
end devices. Is the BYE sent to the freeswitch
that got the initial BYE.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank" data-mce-href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank" data-mce-href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com" target="_blank" data-mce-href="http://www.asipto.com">http://www.asipto.com</a></pre>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>