<DIV>Hi everyone</DIV>
<DIV>&nbsp;</DIV>
<DIV>Presently all our calls are channel to one provider and we would like to change that based on LCR.</DIV>
<DIV>&nbsp;</DIV>
<DIV>the following is what we have presently;</DIV>
<DIV>&nbsp;</DIV>
<DIV># Dial the requested number, if we got something from the caller.<BR>if ($dialto != "")<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $AGI-&gt;exec('SetAccount', $accountnum);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($debug) { $AGI-&gt;exec('NoOp', "\"Dialing $dialto... \""); }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $AGI-&gt;exec('Dial', "Zap/g2/$dialto|30|C");<BR>}<BR>$AGI-&gt;hangup();<BR></DIV>
<DIV>How do i make AGI dial to g1 in the event that user enter area code 416 ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>any assistant is greatly appreciated</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards</DIV>
<DIV>&nbsp;</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Better first dates. More second dates. <a href="http://us.rd.yahoo.com/evt=27808/*http://personals.yahoo.com">Yahoo! Personals</a>