[asterisk-users] Outbund Route via Extension
Hi All, is it possible to choose outbound route by checking the extension of the caller? e.g extension that starts with 3 goes to outbound route 1 extension that starts with 4 goes to outbound route 2. Basically, i'm hosting two(2) office, extension 3XXX is office 1 and extensions 4XX is office 2, they both have the same dialling pattern so i need to choose route based on source. i'm using freepbx for this. thank you Nhadie ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Outbund Route via Extension
On 8/16/07, Nhadie Ramos <[EMAIL PROTECTED]> wrote: > > Hi All, > > is it possible to choose outbound route by checking the extension of the > caller? > e.g extension that starts with 3 goes to outbound route 1 extension that > starts with 4 goes to outbound route 2. Basically, i'm hosting two(2) > office, extension 3XXX is office 1 and extensions 4XX is office 2, they > both have the same dialling pattern so i need to choose route based on > source. i'm using freepbx for this. 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 Another option is to have gotoif statements, based on the callerID of the handset placing the call. 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. ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Outbund Route via Extension
On Thu, 16 Aug 2007, Nhadie Ramos wrote: > Hi All, > > is it possible to choose outbound route by checking the extension of the > caller? > e.g extension that starts with 3 goes to outbound route 1 extension that > starts with 4 goes to outbound route 2. Basically, i'm hosting two(2) > office, extension 3XXX is office 1 and extensions 4XX is office 2, they > both have the same dialling pattern so i need to choose route based on > source. i'm using freepbx for this. It's easy in ther dialplan, but whether freePbx will overwrite your hand crafted extentions.conf is another matter... To extract the 1st character of a variable use ${variable:0:1} then you can use GotoIf ... Gordon ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users