<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
It seems that OpenSIPS sees itself responsible for the R-URI domain
( 220.130.6.180 ) and for the Route Header URI domain as well (
192.168.20.118 ) so something goes wrong with the loose routing.
Actually OpenSIPS will try to do Strict Routing for that BYE, as it
sees itself in the R-URI, and then it would try to forward it again
to itself, but this time without any Route Headers, which will make
loose_route() exit the second time with an error.<br>
<br>
Can you please post a full debug OpenSIPS log while processing this
BYE ?<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer</pre>
<br>
On 12/13/2011 09:46 AM, Nick wrote:
<blockquote cite="mid:4EE702CC.90406@ezmobo.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
Hello<br>
<br>
Yes.<br>
It's my config. <br>
Thanks for your support.<br>
<br>
Nick<br>
<br>
On 2011年12月13日 14:35, Schneur Rosenberg wrote:
<blockquote
cite="mid:CANvjR0VZoVNbr+eBQqEPWaC9nj+jSHS7H3Nh0ZNSdVH5qbdTMg@mail.gmail.com"
type="cite">
<p>Did u do record_route() on initial invite?</p>
<div class="gmail_quote">On Dec 13, 2011 8:02 AM, "Nick" <<a
moz-do-not-send="true" href="mailto:nick_chang@ezmobo.com">nick_chang@ezmobo.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"> Hello<br>
<br>
I used ngrep .<br>
U <a moz-do-not-send="true"
href="http://220.130.6.180:55260" target="_blank">220.130.6.180:55260</a>
-> <a moz-do-not-send="true"
href="http://192.168.20.118:5060" target="_blank">192.168.20.118:5060</a><br>
BYE <a moz-do-not-send="true"
href="http://sip:81@220.130.6.180:17882" target="_blank">sip:81@220.130.6.180:17882</a>
SIP/2.0.<br>
Via: SIP/2.0/UDP
192.168.20.153:55260;branch=z9hG4bK1489712528;rport.<br>
From: <<a moz-do-not-send="true"
href="mailto:sip%3A118@220.130.6.180" target="_blank">sip:118@220.130.6.180</a>>;tag=1735203887.<br>
To: "Tony-opensips"<<a moz-do-not-send="true"
href="mailto:sip%3A81@220.130.6.180" target="_blank">sip:81@220.130.6.180</a>>;tag=2e7b1572.<br>
Call-ID: ZDgzYzY5NjcxY2UzYmU0YzkwMWUzZWFiODA4NzlmY2I..<br>
CSeq: 859463759 BYE.<br>
Content-Length: 0.<br>
Max-Forwards: 70.<br>
Accept-Contact: *;+g.oma.sip-im.<br>
Accept-Contact: *;language="en,fr".<br>
Accept-Contact:
*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel".<br>
Route: <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="sip:192.168.20.118;lr;did=827.ee7aaf17"><sip:192.168.20.118;lr;did=827.ee7aaf17></a>.<br>
Accept-Contact:
*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel".<br>
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.mmtel.<br>
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY,
PRACK, UPDATE, REFER.<br>
Privacy: none.<br>
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000.<br>
User-Agent: IM-client/OMA1.0 ios-ngn-stack/v00 (doubango
r000).<br>
P-Preferred-Identity: <<a moz-do-not-send="true"
href="mailto:sip%3A118@220.130.6.180" target="_blank">sip:118@220.130.6.180</a>>.<br>
.<br>
<br>
<br>
U <a moz-do-not-send="true"
href="http://192.168.20.118:5060" target="_blank">192.168.20.118:5060</a>
-> <a moz-do-not-send="true"
href="http://220.130.6.180:55260" target="_blank">220.130.6.180:55260</a><br>
SIP/2.0 404 Not here.<br>
Via: SIP/2.0/UDP
192.168.20.153:55260;received=220.130.6.180;branch=z9hG4bK1489712528;rport=55260.<br>
From: <<a moz-do-not-send="true"
href="mailto:sip%3A118@220.130.6.180" target="_blank">sip:118@220.130.6.180</a>>;tag=1735203887.<br>
To: "Tony-opensips"<<a moz-do-not-send="true"
href="mailto:sip%3A81@220.130.6.180" target="_blank">sip:81@220.130.6.180</a>>;tag=2e7b1572.<br>
Call-ID: ZDgzYzY5NjcxY2UzYmU0YzkwMWUzZWFiODA4NzlmY2I..<br>
CSeq: 859463759 BYE.<br>
Server: OpenSIPS (1.7.0-tls (i386/linux)).<br>
Content-Length: 0.<br>
<br>
<br>
When 118 send BYE to Server.<br>
But Server tell 118 " Not Here".<br>
<br>
It's my config for BYE<br>
<br>
if (has_totag()) {<br>
# sequential request withing a dialog should<br>
# take the path determined by record-routing<br>
if (loose_route()) {<br>
if (is_method("BYE")) {<br>
setflag(1); # do accounting
...<br>
setflag(3); # ... even if the
transaction fails<br>
} else if (is_method("INVITE")) {<br>
# even if in most of the
cases is useless, do RR for<br>
# re-INVITEs alos, as some
buggy clients do change route set<br>
# during the dialog.<br>
record_route();<br>
}<br>
# route it out to whatever
destination was set by loose_route()<br>
# in $du (destination URI).<br>
route(1);<br>
} else {<br>
/* uncomment the following lines if
you want to enable presence */<br>
if (is_method("SUBSCRIBE") &&
$rd == "192.168.20.118") {<br>
# in-dialog subscribe
requests<br>
route(presence_handling);<br>
exit;<br>
}<br>
if ( is_method("ACK") ) {<br>
if ( t_check_trans() ) {<br>
# non loose-route,
but stateful ACK; must be an ACK after<br>
# a 487 or e.g. 404
from upstream server<br>
t_relay();<br>
exit;<br>
} else {<br>
# ACK without
matching transaction -><br>
# ignore and discard<br>
exit;<br>
}<br>
}<br>
sl_send_reply("404","Not here");<br>
}<br>
exit;<br>
}<br>
<br>
Why is Not here??<br>
Can everyone help me? Thanks<br>
Nick<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>