Hi everyone
 
Presently all our calls are channel to one provider and we would like to change that based on LCR.
 
the following is what we have presently;
 
# Dial the requested number, if we got something from the caller.
if ($dialto != "")
{
        $AGI->exec('SetAccount', $accountnum);
        if ($debug) { $AGI->exec('NoOp', "\"Dialing $dialto... \""); }
        $AGI->exec('Dial', "Zap/g2/$dialto|30|C");
}
$AGI->hangup();
How do i make AGI dial to g1 in the event that user enter area code 416 ?
 
any assistant is greatly appreciated
 
regards
 


Do you Yahoo!?
Better first dates. More second dates. Yahoo! Personals
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to