Hi Roy,
If its perl script,you can try this.
use Asterisk::AGI;
our $AGI = new Asterisk::AGI;
$AGI->EXEC('Dial', 'Zap/g2/8005551212');
On 2/11/07, Roy Kidder <[EMAIL PROTECTED]> wrote:
I'm writing an AGI script and want it to dial a number on a channel
connected to the PSTN. It would look something like this (pseudo-code
follows):
if ($a){
dial("8005551212");
}else{
dial("8665550000");
}
The part I can't seem to get right is the "dial" function. I tried to
mimic the dial plan like so
sub dial($number){
print "Dial(\"Zap/1-1\", \"Zap/g2/$number\")\n";
}
but I get the error
handle_exec: Could not find application (Dial(Zap/1-1,Zap/g2/8665550000)
Anyone have any suggestions?
Thanks,
Roy
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users