<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'>
<font style="" face="Courier New">Kevin,</font><font style="" face="Courier New"> thanks for your response.<br></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">Here is the more detailed Wireshark capture of the SIP traffic between phone (10.0.1.57) and Asterisk (10.0.1.103). The numbers between parentheses are Request Frames. I don't see an ACK for the 200 OK to the INVITE (491) for the dialplan that gives us Retransmission errors (without WAIT), but there is also no ACK for the same INVITE for the dialplan that works (with WAIT).<br><br>If you still want to take a look at the full packet capture, I'll post it.<br><br>Matt <br><br>---------------------------------------------------------------------------------------------<br><br>Without WAIT(1) - we get Retransmisson errors<br><br> 486 10.0.1.57 10.0.1.103 Request: INVITE sip:8*104_line104@10.0.1.103, with SDP<br> 487 10.0.1.103 10.0.1.57 Status: 401 Unauthorized <br> 490 (486) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103 <br> 491 10.0.1.57 10.0.1.103 Request: INVITE sip:8*104_line104@10.0.1.103, with SDP<br> 492 10.0.1.103 10.0.1.57 Status: 100 Trying <br> 493 10.0.1.103 10.0.1.57 Request: MESSAGE sip:104@10.0.1.57:5060 (text/plain) <br><font style="" color="#FF0000"> <b>500 (for 491) 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP</b></font> <br> 501 10.0.1.103 10.0.1.57 Request: NOTIFY sip:104@10.0.1.57:5060 <br> 502 10.0.1.103 10.0.1.57 Request: CANCEL sip:104@10.0.1.57:5060 <br><font style="" color="#FF0000"> </font><font style="" color="#FF0000"><b>503 (for 493) 10.0.1.57 10.0.1.103 Status: 200 OK</b></font> <br> 524 (503) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br> 525 (501) 10.0.1.57 10.0.1.103 Status: 200 OK <br> 526 10.0.1.57 10.0.1.103 Status: 487 Request Terminated <br> 527 (for 502) 10.0.1.57 10.0.1.103 Status: 200 OK <br> 528 (502) 10.0.1.103 10.0.1.57 Request: ACK sip:104@10.0.1.57:5060<br> <br> 585 (524) 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP (resend of 500) <br> 588 (524) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br> 803 (588) 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP (resend of 500) <br> 806 (588) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br>1223 (806) 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP (resend of 500) <br>1229 (806) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br>2042 (1229) 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP (resend of 500) <br>2044 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br>2886 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP <br>2888 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br>3752 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP <br>3755 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br> <br><br>---------------------------------------------------------------------------------------------------------<br>with WAIT(1). There is no more messages beyond 672 until the call is over. Everything is normal. There is no ACK for the OK for INVITE in 430 here either.<br><br> <br> 425 10.0.1.57 10.0.1.103 Request: INVITE sip:8*104_line104@10.0.1.103, with SDP<br> 426 10.0.1.103 10.0.1.57 Status: 401 Unauthorized <br> 429 (425) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103 <br> 430 10.0.1.57 10.0.1.103 Request: INVITE sip:8*104_line104@10.0.1.103, with SDP<br> 431 10.0.1.103 10.0.1.57 Status: 100 Trying <br> 432 10.0.1.103 10.0.1.57 Request: MESSAGE sip:104@10.0.1.57:5060 (text/plain) <br> <b><font style="" color="#FF0000">443 (for 432) 10.0.1.57 10.0.1.103 Status: 200 OK </font></b> <br><b><font style="" color="#FF0000"> 645 (for 430) 10.0.1.103 10.0.1.57 Status: 200 OK, with SDP</font></b> <br> 646 10.0.1.103 10.0.1.57 Request: NOTIFY sip:104@10.0.1.57:5060 <br> 647 10.0.1.103 10.0.1.57 Request: CANCEL sip:104@10.0.1.57:5060 <br> 667 (443) 10.0.1.57 10.0.1.103 Request: ACK sip:8*104_line104@10.0.1.103:5060 <br> 668 (646) 10.0.1.57 10.0.1.103 Status: 200 OK <br> 670 10.0.1.57 10.0.1.103 Status: 487 Request Terminated <br> 671 (647) 10.0.1.57 10.0.1.103 Status: 200 OK <br> 672 (for 647) 10.0.1.103 10.0.1.57 Request: ACK sip:104@10.0.1.57:5060 <br><br>--------------------------------------------------------------------------------------------------------<br></font><font style="" face="Courier New"></font><font style="" face="Courier New"><br></font><font style="" face="Courier New"><br></font><br><br><br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Fri, 16 Mar 2012 10:22:49 -0500<br>> From: kpfleming@digium.com<br>> To: asterisk-users@lists.digium.com<br>> Subject: Re: [asterisk-users] SendText causes Retransmission errors<br>> <br>> On 03/16/2012 09:43 AM, Matt Hamilton wrote:<br>> > Hi,<br>> ><br>> > I'm using SendText to send a text message when the user picks up a line<br>> > in a SLA setup (even though I'm not sure the problem is related to SLA).<br>> > I'm on Asterisk 10.2.1 (same in 1.8.9)<br>> ><br>> ><br>> > [from-office]<br>> > ..<br>> > same => n,SendText(hi)<br>> > same => n,SLAStation(line1234)<br>> > ..<br>> ><br>> > Here is a simplified version of the SIP messages:<br>> ><br>> > 1 phone => Asterisk INVITE<br>> > 2 Asterisk => phone Trying<br>> > 3 Asterisk => phone MESSAGE<br>> > 4 Asterisk => phone OK (for the INVITE at 1)<br>> > 5 phone => Asterisk OK (for the MESSAGE at 3)<br>> ><br>> > 6 Asterisk => phone OK (for the INVITE at 1)*** RESEND of 4<br>> > 7 Asterisk => phone OK (for the INVITE at 1)*** RESEND of 4<br>> > ..<br>> <br>> Did the phone send an ACK for message 4? If not, that explains why <br>> Asterisk is retransmitting the '200 OK'. Posting a packet capture of <br>> this problem occurring would probably provide the details necessary to <br>> figure out what is going on.<br>> <br>> -- <br>> Kevin P. Fleming<br>> Digium, Inc. | Director of Software Technologies<br>> Jabber: kfleming@digium.com | SIP: kpfleming@digium.com | Skype: kpfleming<br>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>> Check us out at www.digium.com & www.asterisk.org<br>> <br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br></div>                                            </div></body>
</html>