<DIV>I would like to hire someone to automate my asterisk for hosted PBX service for fetures like user signup, adding money and call bridging <BR></DIV>
<DIV>Please contact me offline at ted@1ezphone.com<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P> </P>
<P>----- Original Message -----<BR>From: "Philipp Kempgen" <PHILIPP.KEMPGEN@AMOOMA.DE><BR>To: "Asterisk Users" <ASTERISK-USERS@LISTS.DIGIUM.COM><BR>Subject: Re: [asterisk-users] Running AGI script if condition met?<BR>Date: Thu, 06 Dec 2007 05:11:24 +0100<BR><BR><BR>Vincent wrote:<BR><BR>> exten => 777,n,ExecIf($[${LEN(${CALLERIDNUM})} =<BR>> 10],AGI(/root/dummy.php),${CALLERIDNUM})<BR><BR>The line break is not a good idea.<BR><BR>> It doesn't look like ExecIf() is the right way to have Asterisk run an<BR>> AGI script conditionnally. What would be the right way to do this?<BR><BR>Wrong syntax.<BR>ExecIf(<EXPR>|<APP>|<DATA>)<BR>So:<BR>ExecIf($[${LEN(${CALLERIDNUM})} = 10],AGI,/root/dummy.php)<BR><BR>Not sure about more than one argument. Maybe<BR>ExecIf($[${LEN(${CALLERIDNUM})} = 10],AGI,/root/dummy.php,${CALLERIDNUM})<BR>or<BR>ExecIf($[${LEN(${CALLERIDNUM})} = 10],AGI,/root/dummy.php|${CALLERIDNUM})<BR><BR>Asterisk's syntax is strange sometimes ...<BR><BR>Regards,<BR>Philipp Kempgen<BR><BR>--<BR>amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de<BR>Let's use IT to solve problems and not to create new ones.<BR>Asterisk? -> http://www.das-asterisk-buch.de<BR><BR>Geschäftsführer: Stefan Wintermeyer<BR>Handelsregister: Neuwied B 14998<BR><BR>_______________________________________________<BR>--Bandwidth and Colocation Provided by http://www.api-digital.com--<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></P></BLOCKQUOTE><BR>
--
<div> Want an e-mail address like mine? </b><br>
Get a <b>free e-mail </b>account today at <a href="http://www.mail.com/Product.aspx" target="_blank">www.mail.com</a>!</div>