extras for free phone booths

A sample extensions.conf with several extras for use in a free phone booth. It focuses on spain (errors, emergency numbers ..) but there are macros such as "llamar" (to call) that can be used all over the world.

Un extensions.conf de ejemplo con varios extras para usar en una cabina gratis. Está enfocado a españa (errores, números de emergencia..) pero hay macros como "llamar" que valen para todo el mundo.



[general]
static=yes
writeprotect=yes

[globals]
voipbuster=SIP/voipbuster-user
voipbusterpro=SIP/voipbusterpro-user
12voip=SIP/12voip-user
patio-trunk=SIP/patio-trunk


cabina=SIP/cabina


[default]
include => system

[amigos]
include => system
include => emergencias
include => internacionales
include => internas
include => to-patio
include => gratuitos
include => errors

[internas]
exten => 21,1,Macro(llamar,${cabina})

[macro-llamar]
exten => s,1,Playback(pls-hold-while-try)
exten => s,2,Wait(0.8)
exten => s,3,Dial(${ARG1},${ARG2})
exten => s,4,Goto(s-${DIALSTATUS},1)

exten => 1,1,Goto(s,3)

exten => s-NOANSWER,1,Playback(nbdy-avail-to-take-call)
exten => s-NOANSWER,n,Playback(pls-try-call-later)
exten => s-NOANSWER,n,Wait(1)
exten => s-NOANSWER,n,Hangup()

exten => s-BUSY,1,Playback(the-party-you-are-calling)
exten => s-BUSY,n,Playback(is-curntly-busy)
exten => s-BUSY,n,Playback(pls-try-call-later)
exten => s-BUSY,n,Wait(1)
exten => s-BUSY,n,Hangup()

exten => s-CONGESTION,1,Playback(im-sorry)
exten => s-CONGESTION,n,Playback(something-terribly-wrong)
exten => s-CONGESTION,n,Playback(cannot-complete-temp-error)
exten => s-CONGESTION,n,Playback(pls-try-call-later)
exten => s-CONGESTION,n,SayDigits(${ARG1})
exten => s-CONGESTION,n,Wait(1)
exten => s-CONGESTION,n,Hangup()

exten => s-CHANUNAVAIL,1,Playback(the-number-u-dialed)
exten => s-CHANUNAVAIL,n,Playback(is-curntly-unavail)
exten => s-CHANUNAVAIL,n,Playback(pls-try-call-later)
exten => s-CHANUNAVAIL,n,SayDigits(${ARG1})
exten => s-CHANUNAVAIL,n,Wait(1)
exten => s-CHANUNAVAIL,n,Hangup()

exten => _s-.,1,Goto(s-NOANSWER,1)

[errors]

exten => _XX,1,Answer()
exten => _XX,n,Wait(.5)
exten => _XX,n,Playback(emergency)
exten => _XX,n,Playback(emergency)
exten => _XX,n,Playback(tt-somethingwrong)
exten => _XX,n,Playback(tt-weasels)
exten => _XX,n,Playback(tt-monkeys)
exten => _XX,n,Hangup

exten => _[67]XXXXXXXX,1,Answer()
exten => _[67]XXXXXXXX,n,Wait(.5)
exten => _[67]XXXXXXXX,n,Playback(no-se-pueden-hacer-llamadas-a-moviles-desde-aqui)
exten => _[67]XXXXXXXX,n,Wait(.5)
exten => _[67]XXXXXXXX,n,Playback(wrong-try-again-smarty)
exten => _[67]XXXXXXXX,n,Wait(.2)
exten => _[67]XXXXXXXX,n,Playback(abandon-all-hope)
exten => _[67]XXXXXXXX,n,Playback(tt-monkeys)
exten => _[67]XXXXXXXX,n,Hangup

exten => _0034[67]XXXXXXXX,1,Answer()
exten => _0034[67]XXXXXXXX,n,Wait(.5)
exten => _0034[67]XXXXXXXX,n,Playback(abandon-all-hope)
exten => _0034[67]XXXXXXXX,n,Wait(.5)
exten => _0034[67]XXXXXXXX,n,Playback(no-se-pueden-hacer-llamadas-a-moviles-desde-aqui)
exten => _0034[67]XXXXXXXX,n,Wait(.2)
exten => _0034[67]XXXXXXXX,n,Playback(wrong-try-again-smarty)
exten => _0034[67]XXXXXXXX,n,Playback(tt-monkeys)
exten => _0034[67]XXXXXXXX,n,Hangup


exten => _003490[12]XXXXXX,1,Answer()
exten => _003490[12]XXXXXX,n,Wait(.5)
exten => _003490[12]XXXXXX,n,Playback(nomasnumeros900)
exten => _003490[12]XXXXXX,n,Wait(.5)
exten => _003490[12]XXXXXX,n,Hangup

exten => _90[12]XXXXXX,1,Answer()
exten => _90[12]XXXXXX,n,Wait(.5)
exten => _90[12]XXXXXX,n,Playback(nomasnumeros900)
exten => _90[12]XXXXXX,n,Wait(.5)
exten => _90[12]XXXXXX,n,Hangup

exten => _00349ZXXXXXX,1,Playback(falta-un-numero)
exten => _00349ZXXXXXX,n,Hangup
exten => _9ZXXXXXX,1,Playback(falta-un-numero)
exten => _9ZXXXXXX,n,Hangup

exten => _9X,1,Answer()
exten => _9X,n,Wait(.5)
exten => _9X,n,Playback(faltan-numeros)
exten => _9X,n,Hangup

exten => _00XX,1,Answer()
exten => _00XX,n,Wait(.5)
exten => _00XX,n,Playback(faltan-numeros)
exten => _00XX,n,Hangup

exten => _00XXX,1,Answer()
exten => _00XXX,n,Wait(.5)
exten => _00XXX,n,Playback(faltan-numeros)
exten => _00XXX,n,Hangup

exten => _00XXXX,1,Answer()
exten => _00XXXX,n,Wait(.5)
exten => _00XXXX,n,Playback(faltan-numeros)
exten => _00XXXX,n,Hangup



exten => _XX.,1,Answer()
exten => _XX.,n,Wait(.5)
exten => _XX.,n,Playback(no-se-puede-llamar-a-este-destino)
;exten => _XX.,n,Wait(.5)
exten => _XX.,n,Playback(paises)
exten => _XX.,n,Wait(.2)
exten => _XX.,n,Playback(tt-monkeys)
exten => _XX.,n,Hangup

[macro-quita-el-cero]
exten => s,1,Answer()
exten => s,n,Wait(.5)
exten => s,n,Playback(quita-el-cero)
exten => s,n,Hangup

[system]
include => echo
include => conference
include => comadrejas
include => record
include => clock
include => spell
include => music
include => contestador
include => eltiempo
include => instrucciones
include => record-out

[conference]
exten => 10,1,Answer()
exten => 10,n,Meetme(10,i) 
exten => 10,n,Hangup

[echo]
exten => 11,1,Answer()
exten => 11,n,Playback(demo-echotest)
exten => 11,n,Echo
exten => 11,n,Playback(demo-echodone)
exten => 11,n,Hangup

[clock]
exten => 12,1,Answer()
exten => 12,n,Playback(time)
exten => 12,n,Playback(for)
exten => 12,n,Playback(madrid)
exten => 12,n,Wait(.5)
exten => 12,n,SayUnixTime(,Europe/Madrid,H)
exten => 12,n,Playback(hours)
exten => 12,n,Playback(and)
exten => 12,n,SayUnixTime(,Europe/Madrid,M)
exten => 12,n,Playback(minutes)
exten => 12,n,Playback(and)
exten => 12,n,SayUnixTime(,Europe/Madrid,S)
exten => 12,n,Playback(seconds)
exten => 12,n,Wait(1)
exten => 12,n,Playback(day)
exten => 12,n,SayUnixTime(,Europe/Madrid,Ad)
exten => 12,n,Playback(es-de)
exten => 12,n,SayUnixTime(,Europe/Madrid,B)
exten => 12,n,Wait(1)
exten => 12,n,Hangup

[spell]
exten => 14,1,Playback(phonetic/es/a_p)
exten => 14,n,Playback(phonetic/es/b_p)
exten => 14,n,Playback(phonetic/es/c_p)
exten => 14,n,Playback(phonetic/es/d_p)
exten => 14,n,Playback(phonetic/es/e_p)
exten => 14,n,Playback(phonetic/es/f_p)
exten => 14,n,Playback(phonetic/es/g_p)
exten => 14,n,Playback(phonetic/es/h_p)
exten => 14,n,Playback(phonetic/es/i_p)
exten => 14,n,Playback(phonetic/es/j_p)
exten => 14,n,Playback(phonetic/es/k_p)
exten => 14,n,Playback(phonetic/es/l_p)
exten => 14,n,Playback(phonetic/es/m_p)
exten => 14,n,Playback(phonetic/es/n_p)
exten => 14,n,Playback(phonetic/es/o_p)
exten => 14,n,Playback(phonetic/es/p_p)
exten => 14,n,Playback(phonetic/es/q_b)
exten => 14,n,Playback(phonetic/es/r_p)
exten => 14,n,Playback(phonetic/es/s_p)
exten => 14,n,Playback(phonetic/es/t_p)
exten => 14,n,Playback(phonetic/es/u_p)
exten => 14,n,Playback(phonetic/es/v_p)
exten => 14,n,Playback(phonetic/es/w_p)
exten => 14,n,Playback(phonetic/es/x_p)
exten => 14,n,Playback(phonetic/es/y_p)
exten => 14,n,Playback(phonetic/es/z_p)
exten => 14,n,Wait(1)

[music]
exten => 15,1,Answer()
exten => 15,n,MusicOnHold()

[eltiempo]
exten => 17,1,Answer
exten => 17,n,Playback(espere-eltiempo)
exten => 17,n,System(/usr/local/bin/eltiempoenmadrid.sh)
exten => 17,n,Playback(/tmp/eltiempo1)
exten => 17,n,Wait(2)
exten => 17,n,Playback(/tmp/eltiempo2)
exten => 17,n,Wait(8)
exten => 17,n,Hangup

[instrucciones]
exten => 18,1,Answer()
exten => 18,2,Background(instrucciones)
;exten => 18,n,Background(silence/2)
exten => 18,n,Goto(instrucciones,18,2)

;; Si quieres saber cómo hacer una llamada, pulsa 1. Si quieres saber los países a los que puedes llamar, pulsa 2. Para conocer los servicios internos, pulsa 3. Para dejar un mensaje al servicio técnico y de información pulsa 4.

exten => 1,1,Answer()
exten => 1,n,Playback(como-hacer-una-llamada)
exten => 1,n,Wait(1)
exten => 1,n,Goto(instrucciones,18,2)

exten => 2,1,Answer()
exten => 2,n,Playback(paises)
exten => 2,n,Wait(1)
exten => 2,n,Goto(instrucciones,18,2)

exten => 3,1,Answer()
exten => 3,n,Playback(listado-de-servicios)
exten => 3,n,Wait(1)
exten => 3,n,Goto(instrucciones,18,2)

exten => 4,1,Answer()
exten => 4,n,Voicemail(123@default)
exten => 4,n,Wait(1)
exten => 4,n,Goto(instrucciones,18,2)

exten => i,1,Playback(invalid)
exten => i,n,Goto(instrucciones,18,2)

;exten => 18,n,Hangup


[contestador]
exten => 123,1,VoiceMail(123@default)
exten => 555,1,VoiceMailMain()

[record]
; used to record prompts
exten => 205,1,Answer
exten => 205,n,Wait(2)
exten => 205,n,Record(/tmp/asterisk-recording%d:gsm) 
exten => 205,n,Wait(2)
exten => 205,n,Playback(${RECORDED_FILE})
exten => 205,n,Wait(2)
exten => 205,n,Hangup

[comadrejas]
exten => 13,1,Answer()
exten => 13,n,Goto(bichos,1)

exten => 666,1,Answer()
exten => 666,n,Goto(bichos,1)

exten => bichos,1,Wait(1)
exten => bichos,n,Playback(tt-somethingwrong)
exten => bichos,n,Wait(1)
exten => bichos,n,Playback(tt-weasels)
exten => bichos,n,Playback(emergency)
exten => bichos,n,Playback(emergency)
exten => bichos,n,Playback(tt-monkeys)
exten => bichos,n,Wait(2)
exten => bichos,n,Hangup

[emergencias] ; no se pueden [...] llama desde un mvl, fijo o cabina
exten => 112,1,Playback(no-112-2)
exten => 112,2,Goto(noemergencias,1)

exten => 0034112,1,Playback(no-112-2)
exten => 0034112,2,Goto(noemergencias,1)

exten => 011,1,Goto(noemergencias,1)
exten => 016,1,Goto(noemergencias,1)
exten => 061,1,Goto(noemergencias,1)
exten => 062,1,Goto(noemergencias,1)
exten => 080,1,Goto(noemergencias,1)
exten => 085,1,Goto(noemergencias,1)
exten => 088,1,Goto(noemergencias,1)
exten => 091,1,Goto(noemergencias,1)
exten => 092,1,Goto(noemergencias,1)
exten => 1006,1,Goto(noemergencias,1)

exten => noemergencias,1,Playback(no-se-pueden-hacer-llamadas-de-emergencia)
exten => noemergencias,2,Hangup

[record-out]
;exten => _8.,1,Monitor(wav,mywavfile)
;exten => _8.,2,Dial(SIP/patio-trunk/${EXTEN:1})
;;exten => _8.,3,Congestion
;exten => _8.,104,Congestion


[gratuitos]
exten = _900XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))
exten = _800XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))
exten = _0034900XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))
exten = _0034800XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))


[internacionales]
include => int-andorra-fix ; ANDORRA +376
;include => int-andorra-mob ; ANDORRA moviles +376
include => int-argentina-fix ; ARGENTINA +54
;include => int-argentina-mob ; ARGENTINA moviles +54
include => int-australia-fix ; AUSTRALIA +61
;include => int-australia-mob ; AUSTRALIA moviles +61
include => int-australia-quita-el-cero ; AUSTRALIA +61
include => int-austria-fix ; AUSTRIA +43
;include => int-austria-mob ; AUSTRIA moviles +43
include => int-belgium-fix ; BELGICA +32
;include => int-belgium-mob ; BELGICA moviles +32
include => int-brazil-fix  ; BRASIL +55
;include => int-brazil-mob  ; BRASIL moviles +55
include => int-canada-fix ; CANADA +1
;include => int-chile-fix ; CHILE +56
;include => int-chile-mob ; CHILE moviles +56
include => int-china-fix ; CHINA +86
include => int-china-mob ; CHINA moviles +86
include => int-china-quita-el-cero ; CHINA +86
include => int-croatia-fix ; CROACIA +385
;include => croatia-mob ; CROACIA moviles +385
include => int-cyprus-fix ; CHIPRE +357
include => int-czechrepublic-fix ; REPÚBLICA CHECA +420
;include => int-czechrepublic-mob ; REPÚBLICA CHECA moviles +420
include => int-denmark-fix ; DINAMARCA +45
include => int-estonia-fix ; ESTONIA +37
;include => int-estonia-mob ; ESTONIA moviles +37
include => int-finland-fix ; FINLANDIA +358
;include => int-finland-mob ; FINLANDIA moviles +358
include => int-france-fix ; FRANCIA +33
;include => int-france-mob ; FRANCIA moviles +33
include => int-germany-fix ; ALEMANIA +49
;include => int-germany-mob ; ALEMANIA móviles +49
include => int-greece-fix ; GRECIA +30
;include => int-greece-mob ; GRECIA moviles +30
include => int-greece-quita-el-cero ; GRECIA +30
include => int-hongkong-fix ; HONG KONG +852
include => int-hongkong-mob ; HONG KONG móviles +852
include => int-hungary-fix ; HUNGRÍA +36
;include => int-hungary-mob ; HUNGRÍA moviles +36
include => int-ireland-fix ; IRLANDA +353
include => int-ireland-mob ; IRLANDA moviles +353
;include => int-israel-fix ; ISRAEL +972
;include => int-israel-mob ; ISRAEL moviles +972
include => int-israel-quita-el-cero ; ISRAEL +972
include => int-iceland-fix ; ISLANDIA +354
include => int-italy-fix ; ITALIA +39
;include => int-italy-mob ; ITALIA moviles +39
include => int-japan-fix ; JAPON +81
;include => int-japan-mob ; JAPON moviles +81
include => int-latvia-fix ; LETONIA +371
;include => int-latvia-mob ; LETONIA móviles +371
include => int-luxembourg-fix ; LUXEMBURGO +352
include => int-malaysia-fix ; MALASIA +60
;include => int-malaysia-mob ; MALASIA moviles +60
include => int-mexico-mexicocity-fix ; +52 Ciudad de Méjico
include => int-mexico-guadalajara-fix ; +52 Ciudad de Guadalajara
;include => int-mexico-mob ; +52 Méjico móviles
include => int-monaco-fix ; MONACO +377
;include => int-monaco-mob ; MONACO móviles +377
;include => int-luxembourg-mob ; LUXEMBURGO moviles +352
include => int-netherlands-fix ; HOLANDA (PAÍSES BAJOS)+31
;include => int-netherlands-mob ; HOLANDA (PAÍSES BAJOS) moviles +31
include => int-netherlands-quita-el-cero ; HOLANDA (PAÍSES BAJOS)+31
include => int-newzealand-fix ; NUEVA ZELANDA +65
;include => int-newzealand-mob ; NUEVA ZELANDA móviles +65
include => int-norway-fix ; NORUEGA +47
;include => int-norway-mob ; NORUEGA moviles +47
include => int-panama-fix ; PANAMA +507
;include => int-panama-mob ; PANAMA moviles +507
include => int-peru-fix	; PERU +51
;include => int-peru-mob ; PERU móviles +51
include => int-peru-quita-el-cero	; PERU +51
include => int-poland-fix ; POLONIA +48
;include => int-poland-mob ; POLONIA móviles +48
include => int-portugal-fix ; PORTUGAL +351
;include => int-portugal-mob ; PORTUGAL moviles +351
include => int-puertorico-mob-fix ; PUERTO RICO móviles y fijos +1 
include => int-romania-fix ; RUMANÍA +40
;include => int-romania-mob ; RUMANÍA móviles +40
include => int-romania-quita-el-cero ; RUMANÍA +40
include => int-rusia-moscow-fix ; RUSIA (sólo Moscú) +7
include => int-singapore-fix ; SINGAPUR +65
;include => int-singapore-mob ; SINGAPUR moviles +65
include => int-spain-fix ; ESPAÑA +34
;include => int-spain-mob ; ESPAÑA moviles +34
include => int-slovakia-fix ; ESLOVAQUIA +421
;include => int-slovakia-mob ; ESLOVAQUIA moviles +421
include => int-slovenia-fix ; ESLOVENIA +386
;include => int-slovenia-mob ; ESLOVENIA moviles +386
;include => int-southkorea-fix ; COREA DEL SUR +82
;include => int-southkorea-mob ; COREA DEL SUR moviles +82
include => int-switzerland-fix ; SUIZA +41
;include => int-switzerland-mob ; SUIZA moviles +41
include => int-sweden-fix ; SUECIA +46
;include => int-sweden-mob ; SUECIA móviles +46
include => int-taiwan-fix ; TAIWAN +886
;include => int-taiwan-mob ; TAIWAN móviles +886
include => int-thailand-fix ; TAILANDIA +66
;include => int-thailand-mob ; TAILANDIA móviles +66
include => int-thailand-quita-el-cero ; TAILANDIA +66
include => int-uk-fix ; REINO UNIDO +44
;include => int-uk-mob ; REINO UNIDO móviles +44
include => int-uk-quita-el-cero ; REINO UNIDO +44
include => int-usa-mob-fix ; USA (móviles y fijos) +1
include => int-venezuela-fix ; VENEZUELA +58
;include => int-venezuela-mob ; VENEZUELA móviles +58
include => int-venezuela-quita-el-cero ; VENEZUELA +58
include => nac-spain-fix ; 
;include => nac-spain-mob ;  ESPAÑA moviles +34

#include <prefijos.conf>

A sample extensions.conf with several extras for use in a free phone booth. It focuses on spain (errors, emergency numbers ..) but there are macros such as "llamar" (to call) that can be used all over the world.

Un extensions.conf de ejemplo con varios extras para usar en una cabina gratis. Está enfocado a españa (errores, números de emergencia..) pero hay macros como "llamar" que valen para todo el mundo.



[general]
static=yes
writeprotect=yes

[globals]
voipbuster=SIP/voipbuster-user
voipbusterpro=SIP/voipbusterpro-user
12voip=SIP/12voip-user
patio-trunk=SIP/patio-trunk


cabina=SIP/cabina


[default]
include => system

[amigos]
include => system
include => emergencias
include => internacionales
include => internas
include => to-patio
include => gratuitos
include => errors

[internas]
exten => 21,1,Macro(llamar,${cabina})

[macro-llamar]
exten => s,1,Playback(pls-hold-while-try)
exten => s,2,Wait(0.8)
exten => s,3,Dial(${ARG1},${ARG2})
exten => s,4,Goto(s-${DIALSTATUS},1)

exten => 1,1,Goto(s,3)

exten => s-NOANSWER,1,Playback(nbdy-avail-to-take-call)
exten => s-NOANSWER,n,Playback(pls-try-call-later)
exten => s-NOANSWER,n,Wait(1)
exten => s-NOANSWER,n,Hangup()

exten => s-BUSY,1,Playback(the-party-you-are-calling)
exten => s-BUSY,n,Playback(is-curntly-busy)
exten => s-BUSY,n,Playback(pls-try-call-later)
exten => s-BUSY,n,Wait(1)
exten => s-BUSY,n,Hangup()

exten => s-CONGESTION,1,Playback(im-sorry)
exten => s-CONGESTION,n,Playback(something-terribly-wrong)
exten => s-CONGESTION,n,Playback(cannot-complete-temp-error)
exten => s-CONGESTION,n,Playback(pls-try-call-later)
exten => s-CONGESTION,n,SayDigits(${ARG1})
exten => s-CONGESTION,n,Wait(1)
exten => s-CONGESTION,n,Hangup()

exten => s-CHANUNAVAIL,1,Playback(the-number-u-dialed)
exten => s-CHANUNAVAIL,n,Playback(is-curntly-unavail)
exten => s-CHANUNAVAIL,n,Playback(pls-try-call-later)
exten => s-CHANUNAVAIL,n,SayDigits(${ARG1})
exten => s-CHANUNAVAIL,n,Wait(1)
exten => s-CHANUNAVAIL,n,Hangup()

exten => _s-.,1,Goto(s-NOANSWER,1)

[errors]

exten => _XX,1,Answer()
exten => _XX,n,Wait(.5)
exten => _XX,n,Playback(emergency)
exten => _XX,n,Playback(emergency)
exten => _XX,n,Playback(tt-somethingwrong)
exten => _XX,n,Playback(tt-weasels)
exten => _XX,n,Playback(tt-monkeys)
exten => _XX,n,Hangup

exten => _[67]XXXXXXXX,1,Answer()
exten => _[67]XXXXXXXX,n,Wait(.5)
exten => _[67]XXXXXXXX,n,Playback(no-se-pueden-hacer-llamadas-a-moviles-desde-aqui)
exten => _[67]XXXXXXXX,n,Wait(.5)
exten => _[67]XXXXXXXX,n,Playback(wrong-try-again-smarty)
exten => _[67]XXXXXXXX,n,Wait(.2)
exten => _[67]XXXXXXXX,n,Playback(abandon-all-hope)
exten => _[67]XXXXXXXX,n,Playback(tt-monkeys)
exten => _[67]XXXXXXXX,n,Hangup

exten => _0034[67]XXXXXXXX,1,Answer()
exten => _0034[67]XXXXXXXX,n,Wait(.5)
exten => _0034[67]XXXXXXXX,n,Playback(abandon-all-hope)
exten => _0034[67]XXXXXXXX,n,Wait(.5)
exten => _0034[67]XXXXXXXX,n,Playback(no-se-pueden-hacer-llamadas-a-moviles-desde-aqui)
exten => _0034[67]XXXXXXXX,n,Wait(.2)
exten => _0034[67]XXXXXXXX,n,Playback(wrong-try-again-smarty)
exten => _0034[67]XXXXXXXX,n,Playback(tt-monkeys)
exten => _0034[67]XXXXXXXX,n,Hangup


exten => _003490[12]XXXXXX,1,Answer()
exten => _003490[12]XXXXXX,n,Wait(.5)
exten => _003490[12]XXXXXX,n,Playback(nomasnumeros900)
exten => _003490[12]XXXXXX,n,Wait(.5)
exten => _003490[12]XXXXXX,n,Hangup

exten => _90[12]XXXXXX,1,Answer()
exten => _90[12]XXXXXX,n,Wait(.5)
exten => _90[12]XXXXXX,n,Playback(nomasnumeros900)
exten => _90[12]XXXXXX,n,Wait(.5)
exten => _90[12]XXXXXX,n,Hangup

exten => _00349ZXXXXXX,1,Playback(falta-un-numero)
exten => _00349ZXXXXXX,n,Hangup
exten => _9ZXXXXXX,1,Playback(falta-un-numero)
exten => _9ZXXXXXX,n,Hangup

exten => _9X,1,Answer()
exten => _9X,n,Wait(.5)
exten => _9X,n,Playback(faltan-numeros)
exten => _9X,n,Hangup

exten => _00XX,1,Answer()
exten => _00XX,n,Wait(.5)
exten => _00XX,n,Playback(faltan-numeros)
exten => _00XX,n,Hangup

exten => _00XXX,1,Answer()
exten => _00XXX,n,Wait(.5)
exten => _00XXX,n,Playback(faltan-numeros)
exten => _00XXX,n,Hangup

exten => _00XXXX,1,Answer()
exten => _00XXXX,n,Wait(.5)
exten => _00XXXX,n,Playback(faltan-numeros)
exten => _00XXXX,n,Hangup



exten => _XX.,1,Answer()
exten => _XX.,n,Wait(.5)
exten => _XX.,n,Playback(no-se-puede-llamar-a-este-destino)
;exten => _XX.,n,Wait(.5)
exten => _XX.,n,Playback(paises)
exten => _XX.,n,Wait(.2)
exten => _XX.,n,Playback(tt-monkeys)
exten => _XX.,n,Hangup

[macro-quita-el-cero]
exten => s,1,Answer()
exten => s,n,Wait(.5)
exten => s,n,Playback(quita-el-cero)
exten => s,n,Hangup

[system]
include => echo
include => conference
include => comadrejas
include => record
include => clock
include => spell
include => music
include => contestador
include => eltiempo
include => instrucciones
include => record-out

[conference]
exten => 10,1,Answer()
exten => 10,n,Meetme(10,i) 
exten => 10,n,Hangup

[echo]
exten => 11,1,Answer()
exten => 11,n,Playback(demo-echotest)
exten => 11,n,Echo
exten => 11,n,Playback(demo-echodone)
exten => 11,n,Hangup

[clock]
exten => 12,1,Answer()
exten => 12,n,Playback(time)
exten => 12,n,Playback(for)
exten => 12,n,Playback(madrid)
exten => 12,n,Wait(.5)
exten => 12,n,SayUnixTime(,Europe/Madrid,H)
exten => 12,n,Playback(hours)
exten => 12,n,Playback(and)
exten => 12,n,SayUnixTime(,Europe/Madrid,M)
exten => 12,n,Playback(minutes)
exten => 12,n,Playback(and)
exten => 12,n,SayUnixTime(,Europe/Madrid,S)
exten => 12,n,Playback(seconds)
exten => 12,n,Wait(1)
exten => 12,n,Playback(day)
exten => 12,n,SayUnixTime(,Europe/Madrid,Ad)
exten => 12,n,Playback(es-de)
exten => 12,n,SayUnixTime(,Europe/Madrid,B)
exten => 12,n,Wait(1)
exten => 12,n,Hangup

[spell]
exten => 14,1,Playback(phonetic/es/a_p)
exten => 14,n,Playback(phonetic/es/b_p)
exten => 14,n,Playback(phonetic/es/c_p)
exten => 14,n,Playback(phonetic/es/d_p)
exten => 14,n,Playback(phonetic/es/e_p)
exten => 14,n,Playback(phonetic/es/f_p)
exten => 14,n,Playback(phonetic/es/g_p)
exten => 14,n,Playback(phonetic/es/h_p)
exten => 14,n,Playback(phonetic/es/i_p)
exten => 14,n,Playback(phonetic/es/j_p)
exten => 14,n,Playback(phonetic/es/k_p)
exten => 14,n,Playback(phonetic/es/l_p)
exten => 14,n,Playback(phonetic/es/m_p)
exten => 14,n,Playback(phonetic/es/n_p)
exten => 14,n,Playback(phonetic/es/o_p)
exten => 14,n,Playback(phonetic/es/p_p)
exten => 14,n,Playback(phonetic/es/q_b)
exten => 14,n,Playback(phonetic/es/r_p)
exten => 14,n,Playback(phonetic/es/s_p)
exten => 14,n,Playback(phonetic/es/t_p)
exten => 14,n,Playback(phonetic/es/u_p)
exten => 14,n,Playback(phonetic/es/v_p)
exten => 14,n,Playback(phonetic/es/w_p)
exten => 14,n,Playback(phonetic/es/x_p)
exten => 14,n,Playback(phonetic/es/y_p)
exten => 14,n,Playback(phonetic/es/z_p)
exten => 14,n,Wait(1)

[music]
exten => 15,1,Answer()
exten => 15,n,MusicOnHold()

[eltiempo]
exten => 17,1,Answer
exten => 17,n,Playback(espere-eltiempo)
exten => 17,n,System(/usr/local/bin/eltiempoenmadrid.sh)
exten => 17,n,Playback(/tmp/eltiempo1)
exten => 17,n,Wait(2)
exten => 17,n,Playback(/tmp/eltiempo2)
exten => 17,n,Wait(8)
exten => 17,n,Hangup

[instrucciones]
exten => 18,1,Answer()
exten => 18,2,Background(instrucciones)
;exten => 18,n,Background(silence/2)
exten => 18,n,Goto(instrucciones,18,2)

;; Si quieres saber cómo hacer una llamada, pulsa 1. Si quieres saber los países a los que puedes llamar, pulsa 2. Para conocer los servicios internos, pulsa 3. Para dejar un mensaje al servicio técnico y de información pulsa 4.

exten => 1,1,Answer()
exten => 1,n,Playback(como-hacer-una-llamada)
exten => 1,n,Wait(1)
exten => 1,n,Goto(instrucciones,18,2)

exten => 2,1,Answer()
exten => 2,n,Playback(paises)
exten => 2,n,Wait(1)
exten => 2,n,Goto(instrucciones,18,2)

exten => 3,1,Answer()
exten => 3,n,Playback(listado-de-servicios)
exten => 3,n,Wait(1)
exten => 3,n,Goto(instrucciones,18,2)

exten => 4,1,Answer()
exten => 4,n,Voicemail(123@default)
exten => 4,n,Wait(1)
exten => 4,n,Goto(instrucciones,18,2)

exten => i,1,Playback(invalid)
exten => i,n,Goto(instrucciones,18,2)

;exten => 18,n,Hangup


[contestador]
exten => 123,1,VoiceMail(123@default)
exten => 555,1,VoiceMailMain()

[record]
; used to record prompts
exten => 205,1,Answer
exten => 205,n,Wait(2)
exten => 205,n,Record(/tmp/asterisk-recording%d:gsm) 
exten => 205,n,Wait(2)
exten => 205,n,Playback(${RECORDED_FILE})
exten => 205,n,Wait(2)
exten => 205,n,Hangup

[comadrejas]
exten => 13,1,Answer()
exten => 13,n,Goto(bichos,1)

exten => 666,1,Answer()
exten => 666,n,Goto(bichos,1)

exten => bichos,1,Wait(1)
exten => bichos,n,Playback(tt-somethingwrong)
exten => bichos,n,Wait(1)
exten => bichos,n,Playback(tt-weasels)
exten => bichos,n,Playback(emergency)
exten => bichos,n,Playback(emergency)
exten => bichos,n,Playback(tt-monkeys)
exten => bichos,n,Wait(2)
exten => bichos,n,Hangup

[emergencias] ; no se pueden [...] llama desde un mvl, fijo o cabina
exten => 112,1,Playback(no-112-2)
exten => 112,2,Goto(noemergencias,1)

exten => 0034112,1,Playback(no-112-2)
exten => 0034112,2,Goto(noemergencias,1)

exten => 011,1,Goto(noemergencias,1)
exten => 016,1,Goto(noemergencias,1)
exten => 061,1,Goto(noemergencias,1)
exten => 062,1,Goto(noemergencias,1)
exten => 080,1,Goto(noemergencias,1)
exten => 085,1,Goto(noemergencias,1)
exten => 088,1,Goto(noemergencias,1)
exten => 091,1,Goto(noemergencias,1)
exten => 092,1,Goto(noemergencias,1)
exten => 1006,1,Goto(noemergencias,1)

exten => noemergencias,1,Playback(no-se-pueden-hacer-llamadas-de-emergencia)
exten => noemergencias,2,Hangup

[record-out]
;exten => _8.,1,Monitor(wav,mywavfile)
;exten => _8.,2,Dial(SIP/patio-trunk/${EXTEN:1})
;;exten => _8.,3,Congestion
;exten => _8.,104,Congestion


[gratuitos]
exten = _900XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))
exten = _800XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))
exten = _0034900XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))
exten = _0034800XXXXXX,1,Dial(${patio-trunk}/${EXTEN},60,rL(600000:60000:30000))


[internacionales]
include => int-andorra-fix ; ANDORRA +376
;include => int-andorra-mob ; ANDORRA moviles +376
include => int-argentina-fix ; ARGENTINA +54
;include => int-argentina-mob ; ARGENTINA moviles +54
include => int-australia-fix ; AUSTRALIA +61
;include => int-australia-mob ; AUSTRALIA moviles +61
include => int-australia-quita-el-cero ; AUSTRALIA +61
include => int-austria-fix ; AUSTRIA +43
;include => int-austria-mob ; AUSTRIA moviles +43
include => int-belgium-fix ; BELGICA +32
;include => int-belgium-mob ; BELGICA moviles +32
include => int-brazil-fix  ; BRASIL +55
;include => int-brazil-mob  ; BRASIL moviles +55
include => int-canada-fix ; CANADA +1
;include => int-chile-fix ; CHILE +56
;include => int-chile-mob ; CHILE moviles +56
include => int-china-fix ; CHINA +86
include => int-china-mob ; CHINA moviles +86
include => int-china-quita-el-cero ; CHINA +86
include => int-croatia-fix ; CROACIA +385
;include => croatia-mob ; CROACIA moviles +385
include => int-cyprus-fix ; CHIPRE +357
include => int-czechrepublic-fix ; REPÚBLICA CHECA +420
;include => int-czechrepublic-mob ; REPÚBLICA CHECA moviles +420
include => int-denmark-fix ; DINAMARCA +45
include => int-estonia-fix ; ESTONIA +37
;include => int-estonia-mob ; ESTONIA moviles +37
include => int-finland-fix ; FINLANDIA +358
;include => int-finland-mob ; FINLANDIA moviles +358
include => int-france-fix ; FRANCIA +33
;include => int-france-mob ; FRANCIA moviles +33
include => int-germany-fix ; ALEMANIA +49
;include => int-germany-mob ; ALEMANIA móviles +49
include => int-greece-fix ; GRECIA +30
;include => int-greece-mob ; GRECIA moviles +30
include => int-greece-quita-el-cero ; GRECIA +30
include => int-hongkong-fix ; HONG KONG +852
include => int-hongkong-mob ; HONG KONG móviles +852
include => int-hungary-fix ; HUNGRÍA +36
;include => int-hungary-mob ; HUNGRÍA moviles +36
include => int-ireland-fix ; IRLANDA +353
include => int-ireland-mob ; IRLANDA moviles +353
;include => int-israel-fix ; ISRAEL +972
;include => int-israel-mob ; ISRAEL moviles +972
include => int-israel-quita-el-cero ; ISRAEL +972
include => int-iceland-fix ; ISLANDIA +354
include => int-italy-fix ; ITALIA +39
;include => int-italy-mob ; ITALIA moviles +39
include => int-japan-fix ; JAPON +81
;include => int-japan-mob ; JAPON moviles +81
include => int-latvia-fix ; LETONIA +371
;include => int-latvia-mob ; LETONIA móviles +371
include => int-luxembourg-fix ; LUXEMBURGO +352
include => int-malaysia-fix ; MALASIA +60
;include => int-malaysia-mob ; MALASIA moviles +60
include => int-mexico-mexicocity-fix ; +52 Ciudad de Méjico
include => int-mexico-guadalajara-fix ; +52 Ciudad de Guadalajara
;include => int-mexico-mob ; +52 Méjico móviles
include => int-monaco-fix ; MONACO +377
;include => int-monaco-mob ; MONACO móviles +377
;include => int-luxembourg-mob ; LUXEMBURGO moviles +352
include => int-netherlands-fix ; HOLANDA (PAÍSES BAJOS)+31
;include => int-netherlands-mob ; HOLANDA (PAÍSES BAJOS) moviles +31
include => int-netherlands-quita-el-cero ; HOLANDA (PAÍSES BAJOS)+31
include => int-newzealand-fix ; NUEVA ZELANDA +65
;include => int-newzealand-mob ; NUEVA ZELANDA móviles +65
include => int-norway-fix ; NORUEGA +47
;include => int-norway-mob ; NORUEGA moviles +47
include => int-panama-fix ; PANAMA +507
;include => int-panama-mob ; PANAMA moviles +507
include => int-peru-fix	; PERU +51
;include => int-peru-mob ; PERU móviles +51
include => int-peru-quita-el-cero	; PERU +51
include => int-poland-fix ; POLONIA +48
;include => int-poland-mob ; POLONIA móviles +48
include => int-portugal-fix ; PORTUGAL +351
;include => int-portugal-mob ; PORTUGAL moviles +351
include => int-puertorico-mob-fix ; PUERTO RICO móviles y fijos +1 
include => int-romania-fix ; RUMANÍA +40
;include => int-romania-mob ; RUMANÍA móviles +40
include => int-romania-quita-el-cero ; RUMANÍA +40
include => int-rusia-moscow-fix ; RUSIA (sólo Moscú) +7
include => int-singapore-fix ; SINGAPUR +65
;include => int-singapore-mob ; SINGAPUR moviles +65
include => int-spain-fix ; ESPAÑA +34
;include => int-spain-mob ; ESPAÑA moviles +34
include => int-slovakia-fix ; ESLOVAQUIA +421
;include => int-slovakia-mob ; ESLOVAQUIA moviles +421
include => int-slovenia-fix ; ESLOVENIA +386
;include => int-slovenia-mob ; ESLOVENIA moviles +386
;include => int-southkorea-fix ; COREA DEL SUR +82
;include => int-southkorea-mob ; COREA DEL SUR moviles +82
include => int-switzerland-fix ; SUIZA +41
;include => int-switzerland-mob ; SUIZA moviles +41
include => int-sweden-fix ; SUECIA +46
;include => int-sweden-mob ; SUECIA móviles +46
include => int-taiwan-fix ; TAIWAN +886
;include => int-taiwan-mob ; TAIWAN móviles +886
include => int-thailand-fix ; TAILANDIA +66
;include => int-thailand-mob ; TAILANDIA móviles +66
include => int-thailand-quita-el-cero ; TAILANDIA +66
include => int-uk-fix ; REINO UNIDO +44
;include => int-uk-mob ; REINO UNIDO móviles +44
include => int-uk-quita-el-cero ; REINO UNIDO +44
include => int-usa-mob-fix ; USA (móviles y fijos) +1
include => int-venezuela-fix ; VENEZUELA +58
;include => int-venezuela-mob ; VENEZUELA móviles +58
include => int-venezuela-quita-el-cero ; VENEZUELA +58
include => nac-spain-fix ; 
;include => nac-spain-mob ;  ESPAÑA moviles +34

#include <prefijos.conf>

Created by: kresp0, Last modification: Tue 01 of Nov, 2011 (13:16 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+