sorry for the lack of information, my mistake…
I need to say that Server A is actually in production, is the one providing all telephony services for the company I work for. When I started to work for this company the Server was already working, so we could say that “comes with the job”. Server B was implemented by me for testing/learning purposes like I said.
about files, I created them manually, and they are included in extensions.conf (#include “exten_aditional.conf”)
here’s exten_aditional.conf in Server B:
[users]
exten => 6001,1,macro(userconmail,SIP,6001,user6001)
exten => 6002,1,macro(userconmail,SIP,6002,user6002)
include => features
[prueba]
exten => _60XX,1,NoOp(recibe: ${EXTEN})
exten => _60XX,n,Goto(users,${EXTEN},1)
include => desconocido
[privilegiado]
include => users
include => desconocido
[desconocido]
exten => _X.,1,Answer()
exten => _X.,n,Wait(0.5)
exten => _X.,n,Playback(invalid)
exten => _X.,n,Hangup()
[features]
exten => _3[0123]XX,1,Dial(IAX2/asteriskprueba@192.168.0.133/${EXTEN})
exten => _3[0123]XX,n,Hangup()
include => locales
include => nacionales
include => celulares
include => desconocido
[macro-userconmail]
exten => s,1,NoOp(Llamada en proceso ${CALLERID})
exten => s,n,GotoIf($["${DB(users/${ARG3}/DND)}" = “1”]?NOUNAVAIL)
exten => s,n,SET(LLAMADA=${ARG1}/${ARG2})
exten => s,n,Dial(${LLAMADA},30,Tt)
exten => s,n,NoOp(${DIALSTATUS})
exten => s,n,Gotoif($["${DIALSTATUS}" = “NOANSWER”]?PARAVOICE)
exten => s,n,Gotoif($["${DIALSTATUS}" = “CHANUNAVAIL”]?PARAVOICE)
exten => s,n,Gotoif($["${DIALSTATUS}" = “CONGESTION”]?NOUNAVAIL)
exten => s,n,Gotoif($["${DIALSTATUS}" = “CANCEL”]?HANGUP)
exten => s,n,Gotoif($["${DIALSTATUS}" = “BUSY”]?PARAVOICE)
exten => s,n(PARAVOICE),Voicemail(${ARG2}@default)
exten => s,n,Hangup()
exten => s,n(NOUNAVAIL),Answer()
exten => s,n,Wait(0.5)
exten => s,n,Playback(no_existe)
exten => s,n,Hangup()
exten => s,n(HANGUP),Hangup()
[locales]
exten => _9[12486]XXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _9[12486]XXXXXX,n,Hangup()
[nacionales]
exten => _901XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _901XXXXXXXXXX,n,Hangup()
[celulares]
exten => _904[45]XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _904[45]XXXXXXXXXX,n,Hangup()
dialplan in Server A is more complex and too big, so the parts I think we could be interested are:
[users]
.
.
.
exten => _60XX,1,Dial(IAX2/asteriskprueba/${EXTEN})
[prueba]
exten => _60XX,1,Dial(IAX2/asteriskprueba,50,tT)
exten => _60XX,n,Hangup()
exten => _3[0123]XX,1,Goto(users,${EXTEN},1)
exten => _901XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _901XXXXXXXXXX,n,Hangup()
exten => _9[12486]XXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _9[12486]XXXXXX,n,Hangup()
[nacionales]
exten => _901XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _901XXXXXXXXXX,n,Hangup()
[locales]
exten => _9[12486]XXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _9[12486]XXXXXX,n,Hangup()
[celulares]
exten => _904[45]XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},60,T)
exten => _904[45]XXXXXXXXXX,n,Hangup()
I keep thinking that the solution is to link Dahdi cahnnels on Server A to Server B, but I don’t know how to do that.
Here’s where I think the problem is:
[Jan 7 11:49:00] WARNING[9819]: app_dial.c:2345 dial_exec_full: Unable to create channel of type ‘DAHDI’ (cause 0 - Unknown)