I’m using FreePBX 2.7.0.0 with 5 working trunks and several extensions.
Now I would like to “bind” one of the extensions to one of the trunks.
Inbound is working fine (using an inbound route), but whatever I try I can not get the extension to work with the extension that I want it to use.
What I’ve done till now in Custom Contexts (v0.3.2) is I’ve Added a Contect named “test”, and set everything to Deny exept the trunk that I would like to use with it.
After this I’ve set in “Extensions” the extension that I want to use with this trunk tp “test”. After submiting, and reloading The “Custom Context” does show “test”
Problem is that when using this extensions I keep getting an error “Your call can not be completed as dialed”. Whatever option I try I keep getting this
Till now I used an Outbound Route “9|.” to select the trunk. Do I maybe need to remove this, or set it to something other?
there are some issues with custom-context and 2.7 right now. If you are just trying to get a particular extension to work with a particular trunk, try this:
extension number: 700
First create a route for that trunk and make sure it is placed prior to any route that was otherwise being used for the particular dial patterns.
In that route, assuming you want to dial just 10 digit NPA numbers, put the following in the dialpattern:
NXXNXXXXXX/700
and then choose the desired trunk.
After that should be your other route.
You can use this concept for simple cases, adding as many dialpattern lines as you need. Here would be another example for all extensions in the 7XX range for a few different dial patterns:
I must be missing something here, as I can not get this simple thing to work
Here we go. For extension (in my case 5003), I’ve only set the Display name (Kitchen), and the needed “This device uses sip technology.” like “secret, dtmfmode, canreinvite, context, host, type, nat, port, qualify, dial, mailbox, deny, permit”
I’ve created an Outbound Route named “test” with in the “Dial Patterns” NXXNXXXXXX/5003.
For this Outbound Route I’ve selected the Trunk Sequence that I would like to use for 5003
I’ve moved this new route named test to the top of all other routes. It’s now showing “0 test”
Now when I call with 5003, it’s still using my last route to dial out.
The last route (named: private) has as “Dial Patters” just a dot
I’m sure that I’m doing something wrong, or missing something, but what?