<p>Did u do record_route() on initial invite?</p>
<div class="gmail_quote">On Dec 13, 2011 8:02 AM, &quot;Nick&quot; &lt;<a href="mailto:nick_chang@ezmobo.com">nick_chang@ezmobo.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
<br>
I used ngrep .<br>
U <a href="http://220.130.6.180:55260" target="_blank">220.130.6.180:55260</a> -&gt; <a href="http://192.168.20.118:5060" target="_blank">192.168.20.118:5060</a><br>
BYE <a 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=<u></u>z9hG4bK1489712528;rport.<br>
From: &lt;<a href="mailto:sip%3A118@220.130.6.180" target="_blank">sip:118@220.130.6.180</a>&gt;;tag=<u></u>1735203887.<br>
To: &quot;Tony-opensips&quot;&lt;<a href="mailto:sip%3A81@220.130.6.180" target="_blank">sip:81@220.<u></u>130.6.180</a>&gt;;tag=2e7b1572.<br>
Call-ID: ZDgzYzY5NjcxY2UzYmU0YzkwMWUzZW<u></u>FiODA4NzlmY2I..<br>
CSeq: 859463759 BYE.<br>
Content-Length: 0.<br>
Max-Forwards: 70.<br>
Accept-Contact: *;+g.oma.sip-im.<br>
Accept-Contact: *;language=&quot;en,fr&quot;.<br>
Accept-Contact: *;+g.3gpp.icsi-ref=&quot;urn%3Aurn-<u></u>7%3A3gpp-service.ims.icsi.<u></u>mmtel&quot;.<br>
Route: &lt;sip:192.168.20.118;lr;did=<u></u>827.ee7aaf17&gt;.<br>
Accept-Contact: *;+g.3gpp.icsi-ref=&quot;urn%3Aurn-<u></u>7%3A3gpp-service.ims.icsi.<u></u>mmtel&quot;.<br>
P-Preferred-Service: urn:urn-7:3gpp-service.ims.<u></u>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=<u></u>00000000.<br>
User-Agent: IM-client/OMA1.0 ios-ngn-stack/v00 (doubango r000).<br>
P-Preferred-Identity: &lt;<a href="mailto:sip%3A118@220.130.6.180" target="_blank">sip:118@220.130.6.180</a>&gt;.<br>
.<br>
<br>
<br>
U <a href="http://192.168.20.118:5060" target="_blank">192.168.20.118:5060</a> -&gt; <a 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=<u></u>220.130.6.180;branch=<u></u>z9hG4bK1489712528;rport=55260.<br>
From: &lt;<a href="mailto:sip%3A118@220.130.6.180" target="_blank">sip:118@220.130.6.180</a>&gt;;tag=<u></u>1735203887.<br>
To: &quot;Tony-opensips&quot;&lt;<a href="mailto:sip%3A81@220.130.6.180" target="_blank">sip:81@220.<u></u>130.6.180</a>&gt;;tag=2e7b1572.<br>
Call-ID: ZDgzYzY5NjcxY2UzYmU0YzkwMWUzZW<u></u>FiODA4NzlmY2I..<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 &quot; Not Here&quot;.<br>
<br>
It&#39;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(&quot;BYE&quot;)) {<br>
                                setflag(1); # do accounting ...<br>
                                setflag(3); # ... even if the transaction fails<br>
                        } else if (is_method(&quot;INVITE&quot;)) {<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(&quot;SUBSCRIBE&quot;) &amp;&amp; $rd == &quot;192.168.20.118&quot;) {<br>
                                # in-dialog subscribe requests<br>
                                route(presence_handling);<br>
                                exit;<br>
                        }<br>
                        if ( is_method(&quot;ACK&quot;) ) {<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 -&gt;<br>
                                        # ignore and discard<br>
                                        exit;<br>
                                }<br>
                        }<br>
                        sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);<br>
                }<br>
                exit;<br>
        }<br>
<br>
Why is Not here??<br>
Can everyone help me? Thanks<br>
Nick<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</blockquote></div>