Hi all,
I’ve been trying to setup a way to authenticate users with an IVR.
For now, my user is well authenticate, but when i ask him to enter a number to call, it hangup just after i’ve entered the first digit…
Here is a part of my AGI Script :
$caller=$agi[callerid];
$sql="select * from users, sip_buddies where sip_buddies.username=users.username and users.username=\"$caller\"";
....
if ($sip)
{
write ('EXEC Authenticate '.$user[password].'');
write ('EXEC NoOP _______Authentification_Accepted________');
write ('EXEC PlayBack vm-enter-num-to-call');
write ('EXEC WaitExten 30');
}
Does anybody have an idea on what i should do in order to allow the user to enter the whole number he wants to call…
Thank You guys.[/code]