Hi Guys,
Just a quickie
I am trying to get the âRetriesâ function to work in the AMI as we once used it when we were on the .callfile system, it was a good function to have, however we followed the examples written on the Wiki [AMI SECTION] but can not for the life of me get it too work.
I was wondering if someone would be so kind as too look at out Code and see what we are doing wrong.
$remote->autoflush();
print $remote âAction: Login$EOLâ;
print $remote âUsername: XXXXXX$EOLâ;
print $remote âSecret: XXXXXX$BLANKâ;
print $remote âAction: Originate$EOLâ;
print $remote âChannel: $channel$EOLâ;
print $remote âAsync: Yes$EOLâ;
print $remote âCallerid: âXXXXXXXâ <$caller_id>$EOLâ;
print $remote "Context: $context$EOL";
print $remote "Exten: $extension$EOL";
print $remote "MaxRetries: 2$EOL";
print $remote "RetryTime: 1$EOL";
print $remote "Priority: 1$BLANK";
print $remote "Action: Logoff$EOL";
print $remote $EOL;
while (<$remote>) { print }
close $remote;
The âXXXXXXâ represent Private info (Sorry you cant have that )
Can anyone identify anything wrong with this? Anything that could be stopping the Retries from happening?
Cheers,
David.