[asterisk] 簡單功能示例




群播
extension.conf
exten => 7777,1,Dial(SIP/2002&SIP/2003)

輪播
extension.conf
exten => _2003,1,Answer
exten => _2003,2,Dial(SIP/${EXTEN},10,t)
exten => _2003,3,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?:4:5)
exten => _2003,4,Followme(${EXTEN})
exten => _2003,5,VoiceMail(u${EXTEN})
exten => _2003,6,Hangup

followme.conf:
[2003]
context => default
number => 2002,10
number => 2004,10

會議室
需要"DAHDI"
meetme.conf
conf => 6300,1234

extension.conf
exten => 8888,1,Answer()
exten => 8888,2,MeetMe(6300,rM,1234)

※rM設定了當僅有一人在會議室,播放音樂

電話選單(IVR)
extension.conf
[myphones]
exten => 911,1,Goto(IVR,s,1)
exten => 2001,1,Dial(SIP/2001)

[IVR]
exten => s,1,Answer(500)
   same => n(loop),Background(press-1&or&press-2)
   same => n,WaitExten()

exten => 1,1,Playback(you-entered)
   same => n,SayNumber(1)
   same => n,Goto(s,loop)

exten => 2,1,Playback(you-entered)
   same => n,SayNumber(2)
   same => n,Goto(myphones,2001,1)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料