Re: [Freeswitch-users] Passing user variables to mod_voicemail

2009-12-11 Thread Mark Campbell-Smith
Pennytel.com


On Sat, Dec 12, 2009 at 12:52 AM, Phillip Jones  wrote:
> Hi - sorry to go off topic - but we are looking for Voip supplier with SMS
> capability. Would you mind telling me which Voip supplier you use?
>
> On Thu, Dec 10, 2009 at 11:10 PM, Mark Campbell-Smith
>  wrote:
>>
>> Hi!
>>
>> My voip provider provides a SOAP interface to be able to send SMS's,
>> so after a voicemail is left, I want to execute a 'send sms' script.
>> I don't want a separate statement in the dialplan after the voicemail
>> statement because I only want to send sms's when a voicemail is
>> actually left.
>>
>> The way I was going to do this was to modify the mailer-app to point
>> to a shell script and modify the mailer-app-args to include some user
>> defined variables (in conf/directory/default/*.xml).
>>
>>    > value="/usr/local/freeswitch/scripts/emailvm.sh"/>
>>    
>>
>> The shell script would do the following:
>>
>> emailvm.sh
>>
>> #$1 $2 $3 = smsaccount smspassword textmessage
>> tee /tmp/vmmail | /usr/sbin/sendmail -t
>> exec /usr/local/freeswitch/scripts/sendsms.pl $1 $2 $3
>> #echo $1 $2 $3 $4 $5 $6 >> /usr/local/freeswitch/scripts/log.log
>>
>> However, if I uncomment the last line, I never see the user variables
>> being passed to the shell script.  The email is sucessfully sent, but
>> the sms script doesnt work.  If fact, the output of log.log is (for
>> example):
>>
>> -f 1...@192.168.1.120 email_addr...@domain.com
>>
>> Any ideas if it is possible to pass user variables via mod_voicemail
>> in this way?
>>
>> Thanks
>>
>> ___
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users@lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> ___
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>

___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Passing user variables to mod_voicemail

2009-12-11 Thread Phillip Jones
Hi - sorry to go off topic - but we are looking for Voip supplier with SMS
capability. Would you mind telling me which Voip supplier you use?

On Thu, Dec 10, 2009 at 11:10 PM, Mark Campbell-Smith <
mcampbellsm...@gmail.com> wrote:

> Hi!
>
> My voip provider provides a SOAP interface to be able to send SMS's,
> so after a voicemail is left, I want to execute a 'send sms' script.
> I don't want a separate statement in the dialplan after the voicemail
> statement because I only want to send sms's when a voicemail is
> actually left.
>
> The way I was going to do this was to modify the mailer-app to point
> to a shell script and modify the mailer-app-args to include some user
> defined variables (in conf/directory/default/*.xml).
>
> value="/usr/local/freeswitch/scripts/emailvm.sh"/>
>
>
> The shell script would do the following:
>
> emailvm.sh
>
> #$1 $2 $3 = smsaccount smspassword textmessage
> tee /tmp/vmmail | /usr/sbin/sendmail -t
> exec /usr/local/freeswitch/scripts/sendsms.pl $1 $2 $3
> #echo $1 $2 $3 $4 $5 $6 >> /usr/local/freeswitch/scripts/log.log
>
> However, if I uncomment the last line, I never see the user variables
> being passed to the shell script.  The email is sucessfully sent, but
> the sms script doesnt work.  If fact, the output of log.log is (for
> example):
>
> -f 1...@192.168.1.120 email_addr...@domain.com
>
> Any ideas if it is possible to pass user variables via mod_voicemail
> in this way?
>
> Thanks
>
> ___
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Passing user variables to mod_voicemail

2009-12-10 Thread Anthony Minessale
That wont work.
I'm not sure if there is a way, I cant think of one off the top of my head.


On Thu, Dec 10, 2009 at 10:10 PM, Mark Campbell-Smith <
mcampbellsm...@gmail.com> wrote:

> Hi!
>
> My voip provider provides a SOAP interface to be able to send SMS's,
> so after a voicemail is left, I want to execute a 'send sms' script.
> I don't want a separate statement in the dialplan after the voicemail
> statement because I only want to send sms's when a voicemail is
> actually left.
>
> The way I was going to do this was to modify the mailer-app to point
> to a shell script and modify the mailer-app-args to include some user
> defined variables (in conf/directory/default/*.xml).
>
> value="/usr/local/freeswitch/scripts/emailvm.sh"/>
>
>
> The shell script would do the following:
>
> emailvm.sh
>
> #$1 $2 $3 = smsaccount smspassword textmessage
> tee /tmp/vmmail | /usr/sbin/sendmail -t
> exec /usr/local/freeswitch/scripts/sendsms.pl $1 $2 $3
> #echo $1 $2 $3 $4 $5 $6 >> /usr/local/freeswitch/scripts/log.log
>
> However, if I uncomment the last line, I never see the user variables
> being passed to the shell script.  The email is sucessfully sent, but
> the sms script doesnt work.  If fact, the output of log.log is (for
> example):
>
> -f 1...@192.168.1.120 email_addr...@domain.com
>
> Any ideas if it is possible to pass user variables via mod_voicemail
> in this way?
>
> Thanks
>
> ___
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org
pstn:213-799-1400
___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org