What is the problem with SIP retransmits? ----------------------------------------- Sometimes you get messages in the console like these: - "retrans_pkt: Hanging up call XX77yy - no reply to our critical packet." - "retrans_pkt: Cancelling retransmit of OPTIONs" The SIP protocol is based on requests and replies. Both sides send requests and wait for replies. Some of these requests are important. In a TCP/IP network many things can happen with IP packets. Firewalls, NAT devices, Session Border Controllers and SIP Proxys are in the signalling path and they will affect the call. And What can I do? -------------- Turn on SIP debug, try to understand the signalling that happens and see if you're missing the reply to the INVITE or if the ACK gets lost. When you know what happens, you've taken the first step to track down the problem. See the list above and investigate your network. For NAT and Firewall problems, there are many documents to help you. Start with reading sip.conf.sample that is part of your Asterisk distribution. The SIP signalling standard, including retransmissions and timers for these, is well documented in the IETF RFC 3261. Thanks, Matt G : http://www.voipphreak.ca : http://www.ratemydialplan.com : http://www.asterisk-jobs.com From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Todd Reese Sent: Friday, September 19, 2008 3:54 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Dropping Phone Calls Hi All, I'm currently having trouble with dropped phone calls. The following error message is always in the log. This is a Grandstream GXP-2000 Firmware 1.1.6.16 . The Asterisk box is currently 1.4.22-rc5. The problem has been occurring on other versions also. [Sep 19 15:48:02] WARNING[13657]: chan_sip.c:1958 retrans_pkt: Maximum retries exceeded on transmission 8acaea6dc4c6e9b5 at 10.11.17.23 for seqno 50706 (Critical Response) -- See doc/sip-retransmit.txt. [Sep 19 15:48:02] WARNING[13657]: chan_sip.c:1980 retrans_pkt: Hanging up call 8acaea6dc4c6e9b5 at 10.11.17.23 - no reply to our critical packet (see doc/sip-retransmit.txt). Any Ideas? Regards, Todd Reese ------=_NextPart_000_01EA_01C91A71.63190320 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" xmlns:html=3D"http://www.w3.org/TR/REC-html40" xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:D=3D"DAV:" xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf=3D"http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver=3D"http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels=3D"http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:st=3D"" xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>From the “doc/sip-retransmit.txt”<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>What is the problem with SIP retransmits?<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>-----------------------------------------<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Sometimes you get messages in the console like these:<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>- "retrans_pkt: Hanging up call XX77yy - no reply to our critical packet."<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>- "retrans_pkt: Cancelling retransmit of OPTIONs"<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>The SIP protocol is based on requests and replies. Both sides send<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>requests and wait for replies. Some of these requests are important.<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>In a TCP/IP network many things can happen with IP packets. Firewalls,<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>NAT devices, Session Border Controllers and SIP Proxys are in the<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>signalling path and they will affect the call.<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>And<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>What can I do?<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>--------------<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Turn on SIP debug, try to understand the signalling that happens<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>and see if you're missing the reply to the INVITE or if the<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>ACK gets lost. When you know what happens, you've taken the<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>first step to track down the problem. See the list above and<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>investigate your network.<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>For NAT and Firewall problems, there are many documents<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>to help you. Start with reading sip.conf.sample that is<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>part of your Asterisk distribution.<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>The SIP signalling standard, including retransmissions<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>and timers for these, is well documented in the IETF<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>RFC 3261.<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Thanks,<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Matt G<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>: http://www.voipphreak.ca<o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>: <a href=3D"http://www.ratemydialplan.com">http://www.ratemydialplan.com</a><o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>: <a href=3D"http://www.asterisk-jobs.com">http://www.asterisk-jobs.com</a> </span><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p> <p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'> <p class=3DMsoNormal><b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] <b>On Behalf Of </b>Todd Reese<br> <b>Sent:</b> Friday, September 19, 2008 3:54 PM<br> <b>To:</b> asterisk-users at lists.digium.com<br> <b>Subject:</b> [asterisk-users] Dropping Phone Calls<o:p></o:p></span></p> </div> <p class=3DMsoNormal><o:p> </o:p></p> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'>Hi All,<br> <br> <br> I'm currently having trouble with dropped phone calls. The following error message is always in the log. This is a Grandstream GXP-2000 Firmware <a href=3D"http://1.1.6.16">1.1.6.16</a> . The Asterisk box is currently 1.4.22-rc5. The problem has been occurring on other versions also.<br> <br> <br> [Sep 19 15:48:02] WARNING[13657]: chan_sip.c:1958 retrans_pkt: Maximum retries exceeded on transmission <a href=3D"mailto:8acaea6dc4c6e9b5 at 10.11.17.23">8acaea6dc4c6e9b5 at 10.11.17.23</a> for seqno 50706 (Critical Response) -- See doc/sip-retransmit.txt.<br> [Sep 19 15:48:02] WARNING[13657]: chan_sip.c:1980 retrans_pkt: Hanging up call <a href=3D"mailto:8acaea6dc4c6e9b5 at 10.11.17.23">8acaea6dc4c6e9b5 at 10.11.17.23</a> - no reply to our critical packet (see doc/sip-retransmit.txt).<br> <br> <br> Any Ideas?<br> <br> <br> Regards,<br> <br> Todd Reese<br> <br> <br> <o:p></o:p></p> </div> </div> </body> </html> ------=_NextPart_000_01EA_01C91A71.63190320--