Dialplan From Mexico

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Dialplan From Mexico

Postby juanykty » Thu Apr 19, 2018 1:16 pm

Good morning people I have a installation of
OsDial: 3.0.2.127
Asterisk Version: 11.13.0-53


And I have this dialplan but my trunk is mexican can anyone help me to translate this dialplan to mexican calls
my area code is 662
when I call to cellphones need 044
national calls need 001
and national cellphone calls need 045
my trunk prefix is 9



Code: Select all
; Dialplan Example for NANPA / USA / Canada / Mexico
;---------------------------------------------------
; Country code: 1
; Number length: 10-digits
; International Prefix: 011
; Trunk Prefix: none
;

; The following tags can be used to substitute corresponding values from the carrier options.
;   <NAME>  <PROTOCOL>  <STRIP_MSD>  <ALLOW_INTERNATIONAL>
;   <DEFAULT_CALLERID>  <DEFAULT_AREACODE>  <DEFAULT_PREFIX>

; Format long distance number (add default prefix).
exten => _1NXXNXXXXXX,1,Goto(<DEFAULT_PREFIX>${EXTEN:1},1)

; Format long distance number (prefix dialed, add country code)
exten => _NNXXNXXXXXX,1,Goto(${EXTEN:0:1}1${EXTEN:1},1)

; Format long distance number (add default prefix, add country code).
exten => _NXXNXXXXXX,1,Goto(<DEFAULT_PREFIX>1${EXTEN},1)

; Format local number (prefix dialed, add country code, add default areacode)
exten => _NNXXXXXX,1,Goto(${EXTEN:0:1}1<DEFAULT_AREACODE>${EXTEN:1},1)

; Format local number (add default prefix, add country code, add default areacode).
exten => _NXXXXXX,1,Goto(<DEFAULT_PREFIX>1<DEFAULT_AREACODE>${EXTEN},1)

; Dial long distance number (format correct).
exten => _N1NXXNXXXXXX,1,GotoIf($["<STRIP_MSD>" = "Y"]?setcid${EXTEN:0:1}${EXTEN:2},1:setcid${EXTEN},1)

; Format international number (add default prefix).
exten => _011.,1,Goto(<DEFAULT_PREFIX>${EXTEN},1)
exten => _00.,1,Goto(<DEFAULT_PREFIX>011${EXTEN:2},1)

; Dial an international number (if allowed).
exten => _N011.,1,GotoIf($["<ALLOW_INTERNATIONAL>" = "Y"]?setcid${EXTEN},1)
exten => _N00.,1,Goto(${EXTEN:0:1}011${EXTEN:3},1)

; Make sure callerid is set.
exten => _setcid.,1,GotoIf($["${LEN(${CALLERID(number)})}" = "${LEN(<DEFAULT_CALLERID>)}"]?dial${EXTEN:6},1)
exten => _setcid.,n,Set(CALLERID(number)=<DEFAULT_CALLERID>)
exten => _setcid.,n,Goto(dial${EXTEN:6},1)

; This section is the 'prefix' dialed.
exten => _dial9.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _dial9.,n,Dial(<PROTOCOL>/<NAME>/${EXTEN:5},60,oR)
exten => _dial9.,n,Goto(failover${EXTEN:5},1)
juanykty
 
Posts: 2
Joined: Mon Jan 08, 2018 12:28 pm

Re: Dialplan From Mexico

Postby blackbird2306 » Mon Apr 23, 2018 10:01 am

My first advice. Don't use OSDial, there are hundreds of reasons to not use it. One main reason is, that there is really no (free) support and that's why you are here now I think. Last code change was years ago, vicidial had 13 updates only this month. Another example: they want just about 2-5k dollars only for a email module. Sending emails is integrated in vicidial for a quite long time and it's free.
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 125 guests