<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jorge,<br>
<br>
It looks like Asterisk generates the BYEs and retransmits it because
there is no reply coming back from opensips. Normally the BYE is end
2 end replied (so the other end device should generate the reply for
BYE).<br>
But looking at the 477 reply you get from OpenSIPS, I suspect that
OpenSIPS was trying to forward the BYE request (maybe via TCP), got
blocked and failed at the end - this failure resulted in the 477
reply.<br>
<br>
Check the opensips logs to see error when processing the BYE.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/04/2012 11:42 AM, Jorge Ortea wrote:
<blockquote cite="mid:DUB111-W60E9DE08ECED1A16CF51BADC320@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Hi,<br>
<br>
I have the follow VoIP platform; OpenSIPS 1.6.4.2-tls +
Mediaproxy 2.0 + a pair of Asterisks 1.4 (behind SER)<br>
<br>
It works fine but sometimes a sip message enters on a loop. <span
id="result_box" class="short_text" lang="en"><span class="hps">Asterisk</span>
<span class="hps">sends</span> <span class="hps"></span></span><span
id="result_box" class="short_text" lang="en"><span class="hps"></span><span
class="hps">5 sip messages</span> <span class="hps">at
every turn</span></span><br>
<br>
<br>
My logs in OpenSIPS:<br>
<br>
Apr 4 10:14:17 alpha02 /usr/local/sbin/opensips[29503]: ::::::
BYE - from 911111111 to O2105 - Callid:
<a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
Apr 4 10:14:18 alpha02 /usr/local/sbin/opensips[29525]: ::::::
BYE - from 911111111 to O2105 - Callid:
<a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
Apr 4 10:14:19 alpha02 /usr/local/sbin/opensips[29497]: ::::::
BYE - from 911111111 to O2105 - Callid:
<a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
Apr 4 10:14:21 alpha02 /usr/local/sbin/opensips[29487]: ::::::
BYE - from 911111111 to O2105 - Callid:
<a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
Apr 4 10:14:25 alpha02 /usr/local/sbin/opensips[29511]: ::::::
BYE - from 911111111 to O2105 - Callid:
<a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
<br>
<br>
<br>
Sip messages in Asterisk *CLI> 'sip debug':<br>
<br>
set_destination: Parsing
<a class="moz-txt-link-rfc2396E" href="sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044"><sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044></a> for
address/port to send to<br>
set_destination: set destination to X.X.X.150, port 5060<br>
Reliably Transmitting (no NAT) to X.X.X.150:5060:<br>
BYE <a class="moz-txt-link-freetext" href="sip:2105@Z.Z.Z.Z:5062;transport=tls">sip:2105@Z.Z.Z.Z:5062;transport=tls</a> SIP/2.0<br>
Via: SIP/2.0/UDP X.X.X.152:5060;branch=z9hG4bK59044fff;rport<br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044"><sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044></a>,<a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044"><sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044></a><br>
From: "911111111" <a class="moz-txt-link-rfc2396E" href="sip:911111111@X.X.X.152"><sip:911111111@X.X.X.152></a>;tag=as167eb28e<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:O2105@X.X.X.150"><sip:O2105@X.X.X.150></a>;tag=bcd482cd12b8a21i0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a><br>
CSeq: 2874 BYE<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0<br>
<br>
<br>
---<br>
Scheduling destruction of SIP dialog
'<a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a>' in 32000 ms
(Method: REFER)<br>
Retransmitting #1 (no NAT) to X.X.X.150:5060:<br>
BYE <a class="moz-txt-link-freetext" href="sip:2105@Z.Z.Z.Z:5062;transport=tls">sip:2105@Z.Z.Z.Z:5062;transport=tls</a> SIP/2.0<br>
Via: SIP/2.0/UDP X.X.X.152:5060;branch=z9hG4bK59044fff;rport<br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044"><sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044></a>,<a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044"><sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044></a><br>
From: "911111111" <a class="moz-txt-link-rfc2396E" href="sip:911111111@X.X.X.152"><sip:911111111@X.X.X.152></a>;tag=as167eb28e<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:O2105@X.X.X.150"><sip:O2105@X.X.X.150></a>;tag=bcd482cd12b8a21i0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a><br>
CSeq: 2874 BYE<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0<br>
<br>
<br>
---<br>
Retransmitting #2 (no NAT) to X.X.X.150:5060:<br>
BYE <a class="moz-txt-link-freetext" href="sip:2105@Z.Z.Z.Z:5062;transport=tls">sip:2105@Z.Z.Z.Z:5062;transport=tls</a> SIP/2.0<br>
Via: SIP/2.0/UDP X.X.X.152:5060;branch=z9hG4bK59044fff;rport<br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044"><sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044></a>,<a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044"><sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044></a><br>
From: "911111111" <a class="moz-txt-link-rfc2396E" href="sip:911111111@X.X.X.152"><sip:911111111@X.X.X.152></a>;tag=as167eb28e<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:O2105@X.X.X.150"><sip:O2105@X.X.X.150></a>;tag=bcd482cd12b8a21i0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a><br>
CSeq: 2874 BYE<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0<br>
<br>
<br>
---<br>
Retransmitting #3 (no NAT) to X.X.X.150:5060:<br>
BYE <a class="moz-txt-link-freetext" href="sip:2105@Z.Z.Z.Z:5062;transport=tls">sip:2105@Z.Z.Z.Z:5062;transport=tls</a> SIP/2.0<br>
Via: SIP/2.0/UDP X.X.X.152:5060;branch=z9hG4bK59044fff;rport<br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044"><sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044></a>,<a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044"><sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044></a><br>
From: "911111111" <a class="moz-txt-link-rfc2396E" href="sip:911111111@X.X.X.152"><sip:911111111@X.X.X.152></a>;tag=as167eb28e<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:O2105@X.X.X.150"><sip:O2105@X.X.X.150></a>;tag=bcd482cd12b8a21i0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a><br>
CSeq: 2874 BYE<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0<br>
<br>
<br>
---<br>
Retransmitting #4 (no NAT) to X.X.X.150:5060:<br>
BYE <a class="moz-txt-link-freetext" href="sip:2105@Z.Z.Z.Z:5062;transport=tls">sip:2105@Z.Z.Z.Z:5062;transport=tls</a> SIP/2.0<br>
Via: SIP/2.0/UDP X.X.X.152:5060;branch=z9hG4bK59044fff;rport<br>
Route:
<a class="moz-txt-link-rfc2396E" href="sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044"><sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044></a>,<a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044"><sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044></a><br>
From: "911111111" <a class="moz-txt-link-rfc2396E" href="sip:911111111@X.X.X.152"><sip:911111111@X.X.X.152></a>;tag=as167eb28e<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:O2105@X.X.X.150"><sip:O2105@X.X.X.150></a>;tag=bcd482cd12b8a21i0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a><br>
CSeq: 2874 BYE<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0<br>
<br>
<br>
---<br>
<br>
<--- SIP read from X.X.X.150:5060 ---><br>
SIP/2.0 477 Send failed (477/TM)<br>
Via: SIP/2.0/UDP
X.X.X.152:5060;branch=z9hG4bK59044fff;rport=5060<br>
From: "911111111" <a class="moz-txt-link-rfc2396E" href="sip:911111111@X.X.X.152"><sip:911111111@X.X.X.152></a>;tag=as167eb28e<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:O2105@X.X.X.150"><sip:O2105@X.X.X.150></a>;tag=bcd482cd12b8a21i0<br>
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a><br>
CSeq: 2874 BYE<br>
Server: OpenSIPS (1.6.4-2-tls (i386/linux))<br>
Content-Length: 0<br>
<br>
<br>
<-------------><br>
--- (8 headers 0 lines) ---<br>
SIP Response message for INCOMING dialog BYE arrived<br>
-- Incoming call: Got SIP response 477 "Send failed
(477/TM)" back from X.X.X.150<br>
<br>
<br>
<br>
At the end, i have restart the asterisk to solve it. How can I
avoid it ?<br>
<br>
<br>
Thanks.<br>
Regards.<br>
<br>
<br>
</div>
<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>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>