Re: [asterisk-users] Dial out from AGI

2007-02-14 Thread joannaliza mariazeta
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 so

Re: [asterisk-users] Dial out from AGI

2007-02-10 Thread Rurouni Alucard
Hi Roy, Look I dont know why u specify 'zap/1-1', but i do things like this on my agi scripts a lot of times: ... $stdin= fopen('php://stdin', 'r'); $stdout = fopen('php://stdout', 'w'); $stdlog = fopen('/tmp/outPUT.log', 'a'); ... fwrite($stdout,"EXEC DIAL \"Zap/g2/1809220355

RE: [asterisk-users] Dial out from AGI

2007-02-10 Thread Yuan LIU
From: "Roy Kidder" <[EMAIL PROTECTED]> Date: Sat, 10 Feb 2007 23:15:07 -0500 (EST) 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("866555"); } Th