Issue with dialing to extensions
Trixbox is awesome but I'm having a problem dialing extensions. All extensions are 3 digit and start with a 1 (ie: 100,101,102,111,120,etc). If I attempt dial the 120 extension it works fine. But it I try to dial a 10x or 11x extension the phone seems to capture the first 2 digits and tries to make the call resulting in an error. I thought maybe this was because I had originally setup 2 digit extensions but I can't find any reference to the 2 digit extensions.
My phones are polycom SIP IP501. Here is the sip peers:
Name/username Host Dyn Nat ACL Port Status
bandsip01 216.82.224.202 5060 OK (5 ms)
999/999 (Unspecified) D N 0 UNKNOWN
209/209 74.94.60.220 D N 4068 OK (61 ms)
120/120 146.145.11.187 D N 1028 OK (73 ms)
114/114 146.145.11.187 D N 1025 OK (77 ms)
111/111 146.145.11.187 D N 1026 OK (75 ms)
103/103 146.145.11.187 D N 1029 OK (74 ms)
102/102 146.145.11.187 D N 1024 OK (75 ms)
101/101 146.145.11.187 D N 5060 OK (73 ms)
100/100 146.145.11.187 D N 1027 OK (73 ms)
10 sip peers [Monitored: 9 online, 1 offline Unmonitored: 0 online, 0 offline]
extension 999 and 209 are test extensions. Both of these are able to be dialed internally without issue.
Thanks for your help!
999 conflicts with your outbound dialing rules most likely, so I would remove it.
Seems like it's your dialplan.
Try something like this in your config file (Your mileage may vary):
<dialplan dialplan.impossibleMatchHandling="2" dialplan.removeEndOfDial="1" dialplan.applyToUserSend="1" dialplan.applyToUserDial="1" dialplan.applyToCallListDial="0" dialplan.applyToDirectoryDial="0">
<digitmap dialplan.digitmap="[2-9]11|0T|011xxx.T|9011xxx.T|91[2-9]xxxxxxxxx|9[2-9]xxxxxx|*xx|*[1-7]xx|[1-7]xx" dialplan.digitmap.timeOut="3"/>
</dialplan>
Tweak it until you get it just right. Perhaps someone will have a better dialplan than me.
<dialplan dialplan.impossibleMatchHandling="2" dialplan.removeEndOfDial="1" dialplan.applyToUserSend="1" dialplan.applyToUserDial="1" dialplan.applyToCallListDial="0" dialplan.applyToDirectoryDial="0">
<digitmap dialplan.digitmap="[2-9]11|0T|011xxx.T|9011xxx.T|91[2-9]xxxxxxxxx|9[2-9]xxxxxx|*xx|999|*[1-7]xx|[1-7]xx" dialplan.digitmap.timeOut="3"/>
</dialplan>
That dial plan will allow for dialing 999. I got that dialplan from a config that sipXecs generated and modified it to work for the most part with trixbox/FreePBX. It should work for 3 digit dialing. As I said though, your mileage may vary. You will probably have to add some provisions for certain feature codes that are followed by an extension by adding *YY[1-7]xx where *YY is the specific feature code. You will simply have to experiment with it, unless someone already has a config built they can share.


Member Since:
2008-09-10