[Asterisk-Users] How to notify the user about new message using SMS

Florian Overkamp florian at obsimref.com
Sun Aug 8 23:43:07 MST 2004


Hi,

> -----Original Message-----
> exten => 0,11,System("/scripts/sendSMS.pl -r 17083519199 -p 
> TMOBILE -s operator -m ${CALLERID}") exten => 0,12,Hangup
> 
> and this is the error:
> 
>  -- Executing System("SIP/192.168.0.3-0891abc8", 
> ""/scripts/sendSMS.pl -r
> 17083519199 -p TMOBILE -s operator -m "Bartosz Wegrzyn" 
> <7734660101>"") in new stack
> /bin/sh: line 1: /scripts/sendSMS.pl -r 17083519199 -p 
> TMOBILE -s operator -m Bartosz: No such file or directory
> 
> The script is not working because of the "<>" characters in caller ID.
> Is there any way to change that so asterisk will pass the 
> variables without ""<> characters.

In addition to other responses, why don't you try passing ${CALLERIDNUM}
instead of ${CALLERID} :-)

Best regards,
Florian




More information about the asterisk-users mailing list