[asterisk-users] Outbund Route via Extension

Gordon Henderson gordon+asterisk at drogon.net
Thu Aug 16 11:12:30 CDT 2007


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



More information about the asterisk-users mailing list