openbsd-ports/telephony/asterisk/files/extensions.conf.sample
sthen d9010697e4 Improve the sample dialplan;
- use ${FILTER(...)} to only permit digits; dialplan injection is bad, mmmkay
- ConfBridge sample based on information from Diego Casati
2010-04-10 12:45:35 +00:00

15 lines
500 B
Plaintext

; $OpenBSD: extensions.conf.sample,v 1.4 2010/04/10 12:45:35 sthen Exp $
; Longer example available in %%LOCALBASE%%/share/examples/asterisk/default
; For new installations, you may prefer to use extensions.ael rather than
; this file.
[default]
exten => *99,1,VoiceMailMain(${FILTER(0-9,${CALLERID(NUM)})})
exten => *98,1,Answer()
exten => *98,n,ConfBridge(*98,c,M)
exten => _XXX,1,Dial(SIP/${FILTER(0-9,${EXTEN})},12,tr)
exten => _XXX,n,Voicemail(${FILTER(0-9,${EXTEN})})
exten => _XXX,n,Hangup