[asterisk-users] PhpAgi call generation

nik600 nik600 at gmail.com
Tue Jun 19 08:01:53 CDT 2007


hi

i'd like to write a simply application in php with phpAgi that:

- connect to Asterisk
- call an external number using a Zap channel
- play a message

here is some code:

<?php

$asm = new AGI_AsteriskManager();

if ($asm->connect()) {

$asm->Originate("Zap/g1/1","number","default","1");

/*
play message...
*/
} else {
        die("error\n");
}

?>

But it doesn't work.
Is it possible to create a program like this?
thanks

-- 
/*************/
nik600
https://sourceforge.net/projects/ccmanager
https://sourceforge.net/projects/nikstresser



More information about the asterisk-users mailing list