On Fri, 12 Aug 2011, Danny Nicholas wrote:
Exten => 1234,2,AGI(makecall.agi,${EXTEN},${numtodial})
Makecall.agi
#!/bin/sh
echo "extension: $1" > call1.tmp
echo "maxtries: 3" >> call1.tmp
echo "retrytime: 300" >> call1.tmp
echo "Channel: DAHDI/R1/$2" >> call1.tmp
echo "Priority: 1" >> call1.tmp
From a 'best practices' standpoint I think it would be better to use
system() to execute this script since it is (obviously) not really an AGI.
I'm guessing that system() would be slightly more efficient than agi().
Both require a process creation, but agi() requires (slightly) more
Asterisk resources in setting up the AGI environment.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users