Route Dial Pattern newbie problem

Probably a newbie question, but for some reason I can’t get my FreePBX to recognize two different dial patterns for the same number. I’m a US user, so I’d like to be able to use my SIP phone to dial either

123-456-7890
or
1-123-456-7890

With the same results.

Right now, adding the “1” in front properly connects the number, but leaving it off returns a “your call cannot be completed as dialed”.

Currently my dial patterns are as follows in FreePBX

(nil) +nil | [1NXXNXXXXXX] / nil
(nil) +nil | [NXXNXXXXXX] / nil
(nil) +nil | [NXXXXXX] / nil

I’m sure I’m missing something obvious here, but I’m not getting it.

Does you provider require a prefix to perform an outbound call? Does your provider pre-pend the dial string for you?

My provider requires that the country code and area code be sent as part of the dial string. I do this automatically and designate an outgoing line pool with my outbound routes set as follows:

(1011)+9|NXXNXXNXXX/nil for non-local calls
(1011757)+9|NXXNXXX/nil for local calls

‘011’ being my country code
’757’ being my area code
’9’ being the Outgoing Line Pool identifier

Hope that helps alittle…

-Chris

It sounds as if your provider requires the 1 to be sent so set up a dial pattern 1NXXNXXXXXX and another pattern NXXNXXXXXX and put a 1 in the prepend field. I think that should fix your problem.

That appears to have fixed it. Doing the following allowed for both dial methods to work:

(nil) +nil | [1NXXNXXXXXX] / nil
(1) +nil | [NXXNXXXXXX] / nil
(nil) +nil | [NXXXXXX] / nil