[asterisk-users] SendText causes Retransmission errors

Matt Hamilton mistral9999 at hotmail.com
Fri Mar 16 09:43:07 CDT 2012


Hi,

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)


[from-office]
..
same => n,SendText(hi)
same => n,SLAStation(line1234)
..

Here is a simplified version of the SIP messages:

  

1  phone     =>  Asterisk  INVITE

2  Asterisk  =>  phone     Trying

3  Asterisk  =>  phone     MESSAGE
4  Asterisk  =>  phone     OK (for the INVITE at 1)    
5  phone     =>  Asterisk  OK (for the MESSAGE at 3)   

6  Asterisk  =>  phone     OK (for the INVITE at 1)    *** RESEND of 4
7  Asterisk  =>  phone     OK (for the INVITE at 1)    *** RESEND of 4

..



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.

If I insert a WAIT after SendText, the order of the OKs changes, and everything works:


same => n,SendText(hi)
same => n,Wait(1)

same => n,SLAStation(line1234)

Here is the SIP message flow with WAIT (4 and 5 above are swapped):

1  phone     =>  Asterisk  INVITE
2  Asterisk  =>  phone     Trying
3  Asterisk  =>  phone     MESSAGE
4  phone     =>  Asterisk  OK (for the MESSAGE at 3)
5  Asterisk  =>  phone     OK (for the INVITE at 1)


Is there anything else I can do other than using WAIT (which might not be a consistent solution anyway)?

Thanks,
Matt


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120316/89271e3c/attachment.htm>


More information about the asterisk-users mailing list