<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Hi Bogdan,<br><br>Exactly, is ready, OpenSIPS try to reach to destination but now the account 2105 haven't the location:&nbsp; Z.Z.Z.Z:5062<br><br>In fact, when OpenSIPS try to reach to there, it write in log:&nbsp;&nbsp;&nbsp;&nbsp; (this account uses TLS signaling)<br><br>Apr&nbsp; 4 10:14:17 alpha02 /usr/local/sbin/opensips[29503]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:18 alpha02 /usr/local/sbin/opensips[29525]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:19 alpha02 /usr/local/sbin/opensips[29497]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:21 alpha02 /usr/local/sbin/opensips[29487]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:25 alpha02 /usr/local/sbin/opensips[29511]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>Apr&nbsp; 4 10:14:27 alpha02 /usr/local/sbin/opensips[29503]: ERROR:core:tcp_blocking_connect: timeout 10 s elapsed from 10 s <br>Apr&nbsp; 4 10:14:27 alpha02 /usr/local/sbin/opensips[29503]: ERROR:core:tcpconn_connect: tcp_blocking_connect failed <br>Apr&nbsp; 4 10:14:27 alpha02 /usr/local/sbin/opensips[29503]: ERROR:core:tcp_send: connect failed <br>Apr&nbsp; 4 10:14:27 alpha02 /usr/local/sbin/opensips[29503]: ERROR:tm:msg_send: tcp_send failed <br>Apr&nbsp; 4 10:14:27 alpha02 /usr/local/sbin/opensips[29503]: ERROR:tm:t_forward_nonack: sending request failed <br><br>Thus, how can i detect and avoid this ??<br><br>Thanks.<br>Regards.<br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Wed, 4 Apr 2012 14:56:16 +0300<br>From: bogdan@opensips.org<br>To: users@lists.opensips.org<br>CC: darham@hotmail.com<br>Subject: Re: [OpenSIPS-Users] sip message enters on bucle<br><br>

  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    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">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
      <div dir="ltr">
        Hi,<br>
        <br>
        I have the follow VoIP platform;&nbsp; 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="ecxresult_box" class="ecxshort_text" lang="en"><span class="ecxhps">Asterisk</span>
          <span class="ecxhps">sends</span> <span class="ecxhps"></span></span><span id="ecxresult_box" class="ecxshort_text" lang="en"><span class="ecxhps"></span><span class="ecxhps">5 sip messages</span> <span class="ecxhps">at
            every turn</span></span><br>
        <br>
        <br>
        My logs in OpenSIPS:<br>
        <br>
        Apr&nbsp; 4 10:14:17 alpha02 /usr/local/sbin/opensips[29503]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:18 alpha02 /usr/local/sbin/opensips[29525]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:19 alpha02 /usr/local/sbin/opensips[29497]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:21 alpha02 /usr/local/sbin/opensips[29487]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        Apr&nbsp; 4 10:14:25 alpha02 /usr/local/sbin/opensips[29511]: ::::::
        BYE - from 911111111 to O2105 - Callid:
        <a class="ecxmoz-txt-link-abbreviated" href="mailto:5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152">5b62cc795e6be4ea3fa9a26e543e3622@X.X.X.152</a> - Source: X.X.X.152<br>
        &nbsp; <br>
        <br>
        <br>
        Sip messages in Asterisk *CLI&gt; 'sip debug':<br>
        <br>
        set_destination: Parsing
        <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044&gt;</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="ecxmoz-txt-link-freetext" target="_blank">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="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044&gt;</a>,<a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044&gt;</a><br>
        From: "911111111" <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:911111111@X.X.X.152&gt;</a>;tag=as167eb28e<br>
        To: <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:O2105@X.X.X.150&gt;</a>;tag=bcd482cd12b8a21i0<br>
        Call-ID: <a class="ecxmoz-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="ecxmoz-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="ecxmoz-txt-link-freetext" target="_blank">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="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044&gt;</a>,<a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044&gt;</a><br>
        From: "911111111" <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:911111111@X.X.X.152&gt;</a>;tag=as167eb28e<br>
        To: <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:O2105@X.X.X.150&gt;</a>;tag=bcd482cd12b8a21i0<br>
        Call-ID: <a class="ecxmoz-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="ecxmoz-txt-link-freetext" target="_blank">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="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044&gt;</a>,<a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044&gt;</a><br>
        From: "911111111" <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:911111111@X.X.X.152&gt;</a>;tag=as167eb28e<br>
        To: <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:O2105@X.X.X.150&gt;</a>;tag=bcd482cd12b8a21i0<br>
        Call-ID: <a class="ecxmoz-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="ecxmoz-txt-link-freetext" target="_blank">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="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044&gt;</a>,<a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044&gt;</a><br>
        From: "911111111" <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:911111111@X.X.X.152&gt;</a>;tag=as167eb28e<br>
        To: <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:O2105@X.X.X.150&gt;</a>;tag=bcd482cd12b8a21i0<br>
        Call-ID: <a class="ecxmoz-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="ecxmoz-txt-link-freetext" target="_blank">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="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:X.X.X.150;r2=on;lr=on;did=e25.7093e044&gt;</a>,<a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:Y.Y.Y.150:5061;transport=tls;r2=on;lr=on;did=e25.7093e044&gt;</a><br>
        From: "911111111" <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:911111111@X.X.X.152&gt;</a>;tag=as167eb28e<br>
        To: <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:O2105@X.X.X.150&gt;</a>;tag=bcd482cd12b8a21i0<br>
        Call-ID: <a class="ecxmoz-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>
        &lt;--- SIP read from X.X.X.150:5060 ---&gt;<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="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:911111111@X.X.X.152&gt;</a>;tag=as167eb28e<br>
        To: <a class="ecxmoz-txt-link-rfc2396E" target="_blank">&lt;sip:O2105@X.X.X.150&gt;</a>;tag=bcd482cd12b8a21i0<br>
        Call-ID: <a class="ecxmoz-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>
        &lt;-------------&gt;<br>
        --- (8 headers 0 lines) ---<br>
        SIP Response message for INCOMING dialog BYE arrived<br>
        &nbsp;&nbsp;&nbsp; -- 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><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="ecxmoz-signature">-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="ecxmoz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre></div>                                               </div></body>
</html>