d9010697e4
- use ${FILTER(...)} to only permit digits; dialplan injection is bad, mmmkay - ConfBridge sample based on information from Diego Casati
15 lines
500 B
Plaintext
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
|