[Asterisk-Users] Trouble getting SMS working

Mick mick at wow.nailed.org
Fri Jun 9 23:50:28 MST 2006


Hi, 
This is what I put

; Receiving messages FROM a phone:
[smsphone]
exten = 199,1,Goto(smsmorx,s,1)

[smsmorx]
exten => s,1,Answer
exten => s,2,Wait(0.5)
exten => s,3,SMS(${CALLERIDNUM},a)
; have also tried
;exten => s,3,SMS(${CALLERIDNUM},sa)
exten => s,4,System(/tmp/smstest ${EXTEN} ${CALLERIDNUM} ${CALLERIDNAME})
exten => s,5,Hangup

I tried with a few different delays.
But I will try with a few more.

Thanks.

Mick.

>  
> > I tried putting in a delay like you suggested, but it had no effect.
> 
> How exactly did you put the delay in? It should be:
> Answer
> Wait(1) (or .5 or whatever - just play around with it)
> SMS(...)
> 
> The original extensions fragment you posted didn't even have an Answer
> in it. I'm not sure if that is required for SMS but it will be for the
> Wait to have any effect.
> 
> James
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list