Dialing Rules
From VoIP.ms Wiki
(Difference between revisions)
| [draft revision] | [draft revision] |
(Created page with "10 Digits Dialing to USA/Canada If you want to dial without the 1 , or without the 1+area code, here's how you can do it. Edit extensions.conf. Note that in our example, when we...") |
|||
| Line 1: | Line 1: | ||
| + | |||
| + | == Asterisk / PBX == | ||
| + | |||
| + | |||
10 Digits Dialing to USA/Canada | 10 Digits Dialing to USA/Canada | ||
Revision as of 17:29, 8 July 2011
Asterisk / PBX
10 Digits Dialing to USA/Canada
If you want to dial without the 1 , or without the 1+area code, here's how you can do it. Edit extensions.conf. Note that in our example, when we match NXXNXXXXXX, we add a 1 in front of the number to dial. Dial(SIP/1${EXTEN}@voipms). In the 7 digits example, let's say your area code is 214. When you dial 7 numbers, the dial command will add 1214 in front. Dial(SIP/1214@{EXTEN}@voipms). Replace the 214 by the area code you want your local calls to be.
[mycontext]
; International Calls
exten => _011.,1,Dial(SIP/${EXTEN}@voipms)
exten => _011.,n,Hangup()
; USA / Canada
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voipms)
exten => _1NXXNXXXXXX,n,Hangup()
; 10 Digits dialing
exten => NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@voipms)
exten => NXXNXXXXXX,n,Hangup()
; 7 Digits local dialing, in this example, your area code is 214
exten => NXXXXXX,1,Dial(SIP/1214${EXTEN}@voipms)
exten => NXXXXXX,n,Hangup()