Asterisk - Append area code for only selected SIP users using shared trunk
I have remote office in another state with 4 users connecting to our Asterisk (Trixbox 2.8) server via a IPsec VPN. They connect to it and use the same outgoing trunk as the 70 users at our main office using Cisco 7941 handsets and SIP.
As they are using our main office trunk they are effectively dialling from a different state to the one they are in physically. Due to this they have to enter the area code for the state they are in whenever making local calls. This is unacceptable and I need to come up with a workaround for these 4 users without impacting on the 70 head office users.
I don't believe you can manipulate numbers using dialplan.xml and I haven't delved too deep into the nitty gritty of the extensions.conf file yet.
Could someone suggest a way of automatically adding the area code 03 to all 10 digit numbers dialed for only the 4 users using a shared trunk without affecting the other users?