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


                                          
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to