Hi WIlliam,
Thanks for the response. Please find my responses below
Q: How large is the list? Is it a pattern that can be described or an actual list of numbers?
A: We want to have a about 200 numbers to dial to without any pattern. I believe an AGI script could do the job. I wrote one but not working. May be you could help with it. Here is a copy
#!/usr/bin/php -q
<?php
include('phpagi.php');
$agi = new AGI();
$numbers = file_get_contents('file.txt');
$numberArray = explode(",",$numbers);
$test = 'xxxxxxxxxxxx';
if (in_array($test,$numberArray))
$agi->exec("Dial", "DAHDI/g1/$test");
//echo "exten => $number,1,Dial(Local/$number)";
else
$agi->exec("HangUp");
?>
In this script there are two options I tried but none ever worked.
First option involves reading the numbers to dial from a file called file.txt located in the same directory with script
The second option involove using a variable number defined as $test.
This is my dialplan for outbound calls
;exten => _XXXXXXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
;exten => _XXXXXXXXXXX,2,AGI(whitelist/read.php)
;exten => _XXXXXXXXXXX,3,Hangup
Q: You should post the model number of your ZAP equipment. It often helps with troubleshooting down the road.
A: My card is AX800P
I will appreciate your responses.