VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
bobg at techie.com Guest
|
Posted: Thu Feb 28, 2008 10:56 pm Post subject: [asterisk-users] I would like to hire someone to automate my |
|
|
I would like to hire someone to automate my asterisk for hosted PBX
service for fetures like user signup, adding money and call bridging
Please contact me offline at ted at 1ezphone.com
----- Original Message -----
From: "Philipp Kempgen"
To: "Asterisk Users"
Subject: Re: [asterisk-users] Running AGI script if condition met?
Date: Thu, 06 Dec 2007 05:11:24 +0100
Vincent wrote:
Quote: | exten => 777,n,ExecIf($[${LEN(${CALLERIDNUM})} =
10],AGI(/root/dummy.php),${CALLERIDNUM})
|
The line break is not a good idea.
Quote: | It doesn't look like ExecIf() is the right way to have Asterisk run
| an
Quote: | AGI script conditionnally. What would be the right way to do this?
|
Wrong syntax.
ExecIf(||)
So:
ExecIf($[${LEN(${CALLERIDNUM})} = 10],AGI,/root/dummy.php)
Not sure about more than one argument. Maybe
ExecIf($[${LEN(${CALLERIDNUM})} =
10],AGI,/root/dummy.php,${CALLERIDNUM})
or
ExecIf($[${LEN(${CALLERIDNUM})} =
10],AGI,/root/dummy.php|${CALLERIDNUM})
Asterisk's syntax is strange sometimes ...
Regards,
Philipp Kempgen
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de
Gesch?ftsf?hrer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080228/ac211c23/attachment-0001.htm |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|