[AsteriskBrasil] RES: RES: RES: Link E1 Embratel

Leonardo Alves leoalves em teltec.com.br
Quinta Fevereiro 23 11:45:34 BRT 2006


 

Segue abaixo o arquivo extension.conf e o iax.conf

 

Iax.conf

 

[5201]

username=5201

type=friend

secret=1234

record_out=Adhoc

record_in=Adhoc

qualify=no

port=4569

notransfer=yes

mailbox=5201 em device

host=dynamic

context=from-internal

callerid=device <5201>

 

 

extension.conf

 

[from-internal]

;allow phones to use applications

include => app-userlogonoff

include => app-directory

include => app-dnd

include => app-callforward

include => app-callwaiting

include => app-messagecenter

include => app-calltrace

include => parkedcalls

include => from-internal-custom

;allow phones to dial other extensions

include => ext-fax

include => ext-local

include => ext-group

include => ext-queues

include => ext-zapbarge

include => ext-meetme

include => ext-record

include => ext-test

;allow phones to access trunks

include => outbound-allroutes

exten => s,1,Macro(hangupcall)

exten => h,1,Macro(hangupcall)

 

 

[from-internal-custom]                                         

;1234,1,Playback(demo-congrats)                       ; extensions can
dial 1234

;1234,2,Hangup()

;h,1,Hangup()

;include => custom-recordme                              ; extensions
can also dial 5678

 

include => custom-speed-dial

 

exten => *60,1,Answer

exten => *60,2,Playback(at-tone-time-exactly)

exten => *60,3,SayUnixTime(,,IMp)

exten => *60,4,Playback(beep)

exten => *60,5,Hangup

 

exten => *61,1,Answer

exten => *61,2,AGI(weather.agi)

exten => *61,3,Hangup

 

exten => *62,1,Answer 

exten => *62,2,AGI(wakeup.php) 

exten => *62,3,Hangup 

 

exten => *65,1,Answer

exten => *65,2,AGI(festival-script.pl|Your phone number is
${CALLERIDNUM}.)

exten => *65,3,Hangup

 

; CallingCard application

;add an incoimf route for the DID to Custom App: (un-comment next line)

;custom-callingcard,s,1

 

; un-comment the 6 lines below to work on incoming DIDs

;[custom-callingcard]

;exten => s,1,Answer

;exten => s,2,Wait,2

;exten => s,3,DeadAGI,a2billing.php

;exten => s,4,Wait,2

;exten => s,5,Hangup

 

 

[outbound-allroutes]

include => outbound-allroutes-custom

include => outrt-001-9_outside

 

[outrt-001-9_outside]

exten => _XXXXXXXX,1,Macro(dialout-trunk,2,${EXTEN},)

exten => _XXXXXXXX,2,Macro(outisbusy)  ; No available circuits

 

 

 

[]s

 

leonardo

 

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20060223/1986edfa/attachment.html


Mais detalhes sobre a lista de discussão AsteriskBrasil