<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">Hi,</font><font style="" face="Courier New"><br><br>I'm using SendText to send a text message when the user picks up a line in a SLA setup (even though I'm not sure the problem is related to SLA). 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></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">Here is a simplified version of the SIP messages:<br>
<br>
</font><font style="" face="Courier New">1 phone => </font><font style="" face="Courier New">Asterisk INVITE</font><font style="" face="Courier New"><br>
</font><font style="" face="Courier New">2 Asterisk => phone Trying</font><font style="" face="Courier New"><br>
</font><font style="" face="Courier New">3 Asterisk => phone MESSAGE</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">4 Asterisk => phone OK (for the INVITE at 1)</font><font style="" face="Courier New"> </font><font style="" face="Courier New"><br></font><font style="" face="Courier New">5 phone => Asterisk OK (for the MESSAGE at 3)</font><font style="" face="Courier New"> <br><br></font><font style="" face="Courier New">6 Asterisk => phone OK (for the INVITE at 1)</font><font style="" face="Courier New"> *** RESEND of 4</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">7 Asterisk => phone OK (for the INVITE at 1)</font><font style="" face="Courier New"> *** RESEND of 4</font><font style="" face="Courier New"><br>
</font>..<br><br><font style="" face="Courier New"><br></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">The text message is sent and the call is connected, but Asterisk keeps resending OK for the INVITE, and eventually drops the call after Transmission timeout.<br><br>If I insert a WAIT after SendText, the order of the OKs changes, and everything works:<br>
</font><br><font style="" face="Courier New">same => n,SendText(hi)<br>same => n,Wait(1)<br>
same => n,SLAStation(line1234)</font><br><font style="" face="Courier New"><br>Here is the SIP message flow with WAIT (4 and 5 above are swapped):<br><br></font><font style="" face="Courier New">1 phone => </font><font style="" face="Courier New">Asterisk INVITE</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">2 Asterisk => phone Trying</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">3 Asterisk => phone MESSAGE</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">4 phone => Asterisk OK (for the MESSAGE at 3)</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">5 Asterisk => phone OK (for the INVITE at 1)</font><br><br><br>Is there anything else I can do other than using WAIT (which might not be a consistent solution anyway)?<br><br>Thanks,<br>Matt<br><br><br>                                            </div></body>
</html>