>From my experience, this usually happen either from a configuration file error, or from the terminating UAS who sends the  BYE not sending it to the RURI in the contact header from the original INVITE. Can we see the original INVITE as it hits OpenSIPs?<div>

-Brett</div><div><br><br><div class="gmail_quote">On Thu, Feb 4, 2010 at 4:56 AM, Max Mühlbronner <span dir="ltr">&lt;<a href="mailto:mm@42com.com">mm@42com.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello everyone,<br>
<br>
i have a problem when a call is hangup by the callee, i think i probably<br>
have some general routing logic Problem and i cant find any way to solve it.<br>
<br>
caller --&gt; asterisk (62.66.66.67) --&gt; opensips(62.66.66.66) (+rtpproxy<br>
on the same machine) --&gt; pstngw (213.20.11.11)<br>
<br>
Everything seems to be working fine, i have been testing a long time<br>
but  i recognized some problem. When the callee rejects the call , (486<br>
busy) the busy is fine, transmitted back to the caller.<br>
But if the call is established and the callee hangs up, the BYE is not<br>
received by the original calling side so it stays connected.<br>
My opensips knowledge is still very basic, so please excuse if it is<br>
some dumb routing mistake made by me.<br>
<br>
62.66.66.66 --&gt; opensips<br>
62.66.66.67 --&gt; asterisk<br>
213.20.11.11 --&gt; pstngw<br>
<br>
<br>
The busy is fine, and transmitted correctly (and callattempt is<br>
stopped), but the bye is not received on the side where the call was<br>
originating from (asterisk).<br>
<br>
<br>
U <a href="http://213.20.11.11:5060" target="_blank">213.20.11.11:5060</a> -&gt; <a href="http://62.66.66.66:5060" target="_blank">62.66.66.66:5060</a><br>
SIP/2.0 486 Busy Here.<br>
Via: SIP/2.0/UDP 62.66.66.66;branch=z9hG4bKf41a.b1b6523.0.<br>
Via: SIP/2.0/UDP<br>
62.66.66.67:5060;received=62.66.66.67;branch=z9hG4bK79996cc9;rport=5060.<br>
From: &quot;49302332434343&quot; &lt;<a href="mailto:sip%3A49302332434343@62.66.66.67">sip:49302332434343@62.66.66.67</a>&gt;;tag=as67e89fcd.<br>
To: &lt;<a href="mailto:sip%3A1235493333316@62.66.66.66">sip:1235493333316@62.66.66.66</a>&gt;;tag=255533104.<br>
Call-ID: <a href="mailto:2da8e3f7156077231d448a3530a87a21@62.66.66.67">2da8e3f7156077231d448a3530a87a21@62.66.66.67</a>.<br>
CSeq: 102 INVITE.<br>
Contact: &lt;<a href="http://sip:493333316@whs1.bla.voip.bels.com:5060" target="_blank">sip:493333316@whs1.bla.voip.bels.com:5060</a>&gt;.<br>
Content-Length: 0.<br>
<br>
<br>
---------------------<br>
<br>
<br>
the not working BYE, followed by 404 not here, which is sent by the<br>
basic routing block (like in most of the example scripts /<br>
sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);)<br>
<br>
<br>
U <a href="http://213.20.11.11:5060" target="_blank">213.20.11.11:5060</a> -&gt; <a href="http://62.66.66.66:5060" target="_blank">62.66.66.66:5060</a><br>
BYE <a href="mailto:sip%3A49302332434343@62.66.66.67">sip:49302332434343@62.66.66.67</a> SIP/2.0.<br>
Via: SIP/2.0/UDP<br>
213.20.11.11:5060;branch=z9hG4bK623vjs00c0q1bggou101sd0000g00<br>
.1.<br>
From: &lt;<a href="mailto:sip%3A1235493333316@213.20.11.11">sip:1235493333316@213.20.11.11</a>&gt;;tag=960392687.<br>
To: &quot;49302332434343&quot; &lt;<a href="mailto:sip%3A49302332434343@62.66.66.66">sip:49302332434343@62.66.66.66</a>&gt;;tag=as32838038.<br>
Call-ID: <a href="mailto:150c32ca5a8adcb8589445f95e9ffe34@62.66.66.67">150c32ca5a8adcb8589445f95e9ffe34@62.66.66.67</a>.<br>
CSeq: 1 BYE.<br>
Max-Forwards: 9.<br>
Supported: timer.<br>
Content-Length: 0.<br>
Route: &lt;sip:62.66.66.66;lr=on;ftag=as32838038;did=fee.ee87c634&gt;.<br>
<br>
<br>
U <a href="http://62.66.66.66:5060" target="_blank">62.66.66.66:5060</a> -&gt; <a href="http://213.20.11.11:5060" target="_blank">213.20.11.11:5060</a><br>
SIP/2.0 404 Not here.<br>
Via: SIP/2.0/UDP<br>
213.20.11.11:5060;rport=5060;received=213.20.11.11;branch=z9hG4bKk4ksmf10eosgjf41m3k0sd0000g00.1.<br>
From: &lt;<a href="mailto:sip%3A1235493333316@213.20.11.11">sip:1235493333316@213.20.11.11</a>&gt;;tag=1126364538.<br>
To: &quot;49302332434343&quot; &lt;<a href="mailto:sip%3A49302332434343@62.66.66.66">sip:49302332434343@62.66.66.66</a>&gt;;tag=as1fcd8c32.<br>
Call-ID: <a href="mailto:7061c14c469285fc782f31d128791bc5@62.66.66.67">7061c14c469285fc782f31d128791bc5@62.66.66.67</a>.<br>
CSeq: 1 BYE.<br>
Server: OpenSIPS (1.6.1-notls (i386/linux)).<br>
Content-Length: 0.<br>
<br>
<br>
<br>
<br>
Thanks very much for any help, really appreciated. :)<br>
<br>
<br>
Best Regards<br>
<br>
Max M.<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>