29 lines
762 B
Plaintext
29 lines
762 B
Plaintext
; /etc/asterisk/extensions.conf
|
|
|
|
; Remember, context names for each SIP account are specified in pjsip_wizard.conf.
|
|
;
|
|
; First, some safeguards against abuse of the built-in contexts.
|
|
[default]
|
|
exten => s,1,Verbose(1, "info ${CALLERID(num)} was passed to default")
|
|
same => n,Hangup(3)
|
|
|
|
[presence]
|
|
exten => _X.,hint,PJSIP/${EXTEN}
|
|
|
|
[from-ext]
|
|
exten => _X.,1,Dial(Quectel/quectel0/${EXTEN},r)
|
|
same => n,Hangup()
|
|
|
|
exten => 123,1,Goto(i,1)
|
|
same => n,Hangup()
|
|
|
|
exten => i,1,Answer(1)
|
|
same => n,PlayTones(info)
|
|
same => n,Wait(2)
|
|
same => n,Playback(cannot-complete-as-dialed&check-number-dial-again)
|
|
same => n,PlayTones(info)
|
|
same => n,Wait(1)
|
|
same => n,Playback(cannot-complete-as-dialed&check-number-dial-again)
|
|
same => n,PlayTones(info)
|
|
same => n,Hangup()
|