inbound routing based on area code

General discussions about AsteriskNOW.

Moderators: Moderator, Support

inbound routing based on area code

Postby joshopkins » Mon Sep 17, 2012 4:45 pm

I am currently using AsteriskNow v2.

What I am trying to accomplish is having all calls from an area code go directly to the person responsible for that area. While searching for a solution for this I did come across a post that had a few examples. So Josh at extension 1902 would receive all calls from the 808 area code.

exten => s,1,GotoIf($${CALLERIDNUM:0:3}" = "808?1902|1)

While asterisknow uses freepbx to control the config files. Where and how would I go about putting this into freepbx or another loaded config file that where something like the above would work. Thanks,
joshopkins
Newsterisk
 
Posts: 5
Joined: Tue Jun 26, 2012 12:53 pm

Re: inbound routing based on area code

Postby navaismo » Mon Sep 17, 2012 10:10 pm

The only way that I guess can work is setting that rule on the extension_custom.conf file and then create a custom destination in the gui pointing to that part of the dialplan.
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico


Return to AsteriskNOW General

Who is online

Users browsing this forum: Google [Bot] and 1 guest