Steve Szmidt
2004-Aug-08 12:12 UTC
[Asterisk-Users] asterisk-update script - and the script
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Here's a version I modified which grabs either a development or stable verision, and does a backup before updating from CVS. It also asks for addon's and cc. Leif Madsen did the original development and Mark released it. My changes does the minimum changes to previous version, to get what I need. It does the same version checking as the Make script uses should .version file not exist. It runs well for me. - -- Steve "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." Benjamin Franklin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBFnsPljK16xgETzkRAoTJAKCkTKBWURx55g7UKqui+UIHDjQKHQCfcvE2 pxRA3hiBQbYaZVt/tGbs8A0=mYuu -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: asterisk-update Type: application/x-shellscript Size: 19960 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040808/d87a0708/asterisk-update.bin
Bartosz Wegrzyn
2004-Aug-08 12:57 UTC
[Asterisk-Users] How to notify the user about new message using SMS
Hi, I would like to be able to notify users about new voicemail messages through the SMS system. I added a system command in my extensions.conf file that sends a SMS message to the user. I am using a sendSMP.pl script that I downloaded from the web. It works fine when executed separately, but if executed within asterisk it is not working. This is a part of my context: exten => 0,1,Playback(pls-wait-connect-call) exten => 0,2,SetCallerID(17734660101) exten => 0,3,SetCIDName(Operator) exten => 0,4,SetMusicOnHold(default) exten => 0,5,Dial(SIP/17083519199@broadvoice,20,m) exten => 0,6,Wait(1); exten => 0,7,Playback(im-sorry) exten => 0,8,Playback(nbdy-avail-to-take-call) exten => 0,9,Playback(pls-lv-msg-will-contact) exten => 0,10,voicemail,s9999 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. Or do you know any other way to send SMS messages. I tried to create the separate executable file with the command to send sms message, but then I dont have a caller ID. Is there any way that I could pass the $CALLERID variable to my script. Also, the command that I execute is before the asterisk goes to the voicemail system. This is bad because if caller dont leave a message asterisk will send a SMS message. How can I check if the caller leave the message and the execute the script? Thanks Bart