On 8/16/07, <b class="gmail_sendername">Nhadie Ramos</b> <<a href="mailto:nhadie@tbgi.net.ph">nhadie@tbgi.net.ph</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br><br>is it possible to choose outbound route by checking the extension of the<br>caller?<br>e.g extension that starts with 3 goes to outbound route 1 extension that<br>starts with 4 goes to outbound route 2. Basically, i'm hosting two(2)
<br>office, extension 3XXX is office 1 and extensions 4XX is office 2, they<br>both have the same dialling pattern so i need to choose route based on<br>source. i'm using freepbx for this.</blockquote><div><br>You could easily just put the extensions in different contexts. I'm not sure how freepbx handles this, but Asterisk certainly supports having different handsets in different outgoing contexts. This is probably your best option
<br><br>Another option is to have gotoif statements, based on the callerID of the handset placing the call.<br><br>Another option, although it's bad in my opinion, is to train everyone in Company A to dial a 9 for outgoing calls, and everyone in Company B to dial 8. That give 0 security, so again, it's bad, but it could work.
<br></div></div><br>