jw-asterisk-docker/asterisk/extensions.conf
zhongjin c251bbcdde new
2023-02-25 07:45:57 +08:00

63 lines
1.5 KiB
Plaintext

[general]
static=yes
writeprotect=no
;autofallthrough=no
;extenpatternmatchnew=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
;CONSOLE=DAHDI/1
;CONSOLE=Phone/phone0
IAXINFO=guest ; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=DAHDI/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)
;TRUNK=IAX2/user:pass@provider
;FREENUMDOMAIN=mydomain.com ; domain to send on outbound
; freenum calls (uses outbound-freenum
; context)
[fgcom]
exten => 7000,1,Dial(SIP/7000)
exten => 7777,1,Dial(SIP/7777)
exten => 7778,1,Dial(SIP/7778)
exten => 7010,1,Dial(SIP/7010)
exten => 7020,1,Dial(SIP/7020)
exten => 7001,1,Dial(SIP/7001)
exten => 7002,1,Dial(SIP/7002)
exten => 7003,1,Dial(SIP/7003)
exten => 7006,1,Dial(SIP/7006)
exten => 7007,1,Dial(SIP/7007)
exten => 7005,1,Dial(SIP/7005)
exten => 7008,1,Dial(SIP/7008)
exten => 7009,1,Dial(SIP/7009)
exten => 01910000,1,SendText(链路回音测试)
exten => 01910000,n,Macro(echo)
exten => 1234,1,SendText()
exten => 1234,n,Macro(echo)
exten => 01118300,1,SendText(首都国际机场)
exten => 01118300,n,Macro(com)
exten => 8888,1,SendText(Echo Box - For testing FGCOM)
exten => 8888,n,Macro(com)
[macro-com]
exten => s,1,Answer()
exten => s,n,NoCDR
#exten => s,n,MeetMe(\${MACRO_EXTEN},qd)
exten => s,n,ConfBridge(01)
exten => s,n,Hangup()
[macro-echo]
exten => s,1,Answer()
exten => s,n,NoCDR
exten => s,n,Echo()
exten => s,n,Hangup()