All pastes #2578 Raw Edit

Neo

public text v1 · immutable
#2578 ·published 2004-12-02 16:19 UTC
rendered paste body
; iax.conf
; class - 10/21/2004 
; Signate, LLC - www.signate.com - support@signate.com
; portions copyright 2004 Signate, LLC. All rights reserved
; Inter-Asterisk eXchange driver definition

[general]
context=incoming
jitterbuffer=yes
tos=lowdelay
disallow=all
allow=gsm
allow=alaw
allow=ulaw


[501]
type=friend
context=incoming
username=501
secret=password
host=dynamic
callerid="DonL" <501>
allow=gsm
allow=alaw
allow=ulaw

[502]
type=friend
context=incoming
username=502
secret=password
host=dynamic
callerid="RandyA" <502>
allow=gsm
allow=alaw
allow=ulaw

===============================================================================
===============================================================================
;
;=====================================================================
; Test extensions.conf file
;=====================================================================
[globals]

[extensions]
;
exten => _5XX,1,Dial(IAX2/${EXTEN},7,r)
exten => _5XX,2,Voicemail,u${ARG3}
exten => _5XX,3,Voicemail,b${ARG3}
exten => _5XX,4,Hangup

			
; Extension for evaulating echo latency.
;
exten => 10,1,Playback(demo-echotest)	; Let them know what's going on
exten => 10,2,Playback(beep)		; Let them know to start
exten => 10,3,Echo			; Do the echo test
exten => 10,4,Playback(demo-echodone)	; Let them know it's over
exten => 10,5,Hangup
;
; Generate a Constant 1000Hz tone at 0dbm (mu-law)
;
exten => 11,1,Milliwatt()
exten => 11,2,Hangup
;
; Record a temporary GSM file
;
exten => 12,1,Wait(2)
exten => 12,2,Record(/tmp/asterisk-recording:gsm)
exten => 12,3,Wait(2)
exten => 12,4,Playback(/tmp/asterisk-recording)
exten => 12,5,Wait(2)
exten => 12,6,Hangup
;
; Say Current Date and Time
;
exten => 13,1,DateTime()
exten => 13,2,Wait(1)
exten => 13,3,DateTime()
exten => 13,4,Hangup
;
; Read back caller's number
;
exten => 14,1,Wait(1)
exten => 14,2,SayDigits(${CALLERIDNUM})
exten => 14,3,Wait(1)
exten => 14,4,SayDigits(${CALLERIDNUM})
exten => 14,5,Hangup
;
; Access Voicemail
;
exten => 15,1,VoicemailMain
exten => 15,2,Hangup
;
; Sample Zap Phone
;
exten => 20,1,Dial(Zap/1,20)		; Ring for 20 seconds
exten => 20,2,Voicemail(u${EXTEN})
exten => 20,3,Hangup			; Unavail voicemail if extension doesn't answer
exten => 20,102,Voicemail(b${EXTEN})	; Busy Voicemail if extension is busy
exten => 20,103,Hangup
;
; Sample SIP Phone
;
exten => 21,1,Dial(SIP/21,20)	; Ring for 20 seconds
exten => 21,2,Voicemail(u${EXTEN})	; Unavail voicemail if extension doesn't answer
exten => 21,3,Hangup			
exten => 21,102,Voicemail(b${EXTEN})	; Busy Voicemail if extension is busy
exten => 21,103,Hangup
;
; Sample Zap Fax
;
exten => 22,1,Dial(Zap/3,20,d)		; Ring for 20 seconds, request a low latency call
exten => 22,2,Hangup

[incoming]
;
; Incoming calls with no destination land here (usually from the PSTN)
;
exten => s,1,Answer
exten => s,2,DigitTimeout(10)		; Set Digit Timeout to 10 seconds
exten => s,3,ResponseTimeout(20)	; Set Response Timeout to 20 seconds
exten => s,4,Background(vm-extension)	; Ask them for the extension they want
;
; If we detect a fax tone send call to extension 22 priority 1
; Not all fax machines/fax modems send a fax tone when calling.
; If we get a call from one of those then we can't detect that it's a fax call.
; This only works for devices on Zap channels (Digium cards).
;
exten => fax,1,Goto(22,1)
;
; Hang up the line if the caller doesn't do anything
;
exten => t,1,Hangup
;
; Allow incoming calls from the outside to dial our internal extensions
;


include => extensions