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

Bartosz Wegrzyn junk at lexon.ws
Mon Aug 9 07:39:29 MST 2004


I TRIED , SAME PROBLEM.
The value doesnot have any "">< characters, but script fails.

Have no idea why.

Bart


> 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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list