11-number dialing

Because I had so much trouble with Broadvoice, I have now set up a Flowroute trunk, and it seems to be stable, but I am having one issue with flowroute: When I dial a local number (10 digit), it doesn’t connect. When I dial the same number as an 11 digit number (1-XXXXXXXXXX) it works. I suppose that Flowroute expects an 11 digit number and I have to find a way to make sure that the numbers dialed have 11 digits. Any help on this? (I did a cursory search of the forum, but didn’t find anything).

My trunk dial rules are:

1+NXXZXXXXXX
1NXXZXXXXXX

My outbound dial patterns are:

1800NXXXXXX
1866NXXXXXX
1877NXXXXXX
1888NXXXXXX
1NXXZXXXXXX
NXXZXXXXXX

All you need to do in the trunk is prepend the one to the 10 digit pattern (NXXZXXXXXX) is Z even an option?

Yes, check http://www.asterisk.org/doxygen/trunk/pbx_8c.html#3cead23d6726af243aed9f68f38b7a32

case ‘N’: /* 2…9 /
case ‘X’: /
0…9 /
case ‘Z’: /
1…9 */

With the help of my newfound friends at Flowroute the riddle was solved: For some reason I had a zaptel outbound route, which prepended the numbers with a 9. this somehow interfered with the dialing. Taking the route out solved the problem. I don’t know why, but it did…