bigbluebutton-Github/bbb-images/centos-install-files/asterisk-extensions.conf

44 lines
1.3 KiB
Plaintext

;
; BigBlueButton: Setup sample conference
[bigbluebutton]
exten => s,1,Goto(start-dialplan,s,1)
exten => s,n,Hangup
[start-dialplan]
exten => s,1,Set(TRIES=1)
exten => s,n,Wait(2)
exten => s,n,Answer
exten => s,n,Goto(prompt,s,1)
[prompt]
exten => s,1,Read(CONF_NUM,conf-getconfno,6,,3,10)
exten => s,n,Goto(bbb-conference,s,1)
[bbb-voip]
exten => _XXXX.,1,MeetMe(${EXTEN},cdMsT)
[bbb-conference]
exten => _XXXX.,1,Agi(agi://localhost/findConference?conference=${EXTEN})
exten => _XXXX.,n,GotoIf($[${EXTEN} = ${CONFERENCE_FOUND}]?valid:invalid)
exten => _XXXX.,n(valid),Playback(conf-placeintoconf)
exten => _XXXX.,n,MeetMe(${CONFERENCE_FOUND},cdMsT)
exten => _XXXX.,n(invalid),Goto(handle-invalid-conference,s,1)
[handle-invalid-conference]
exten => s,1,Playback(conf-invalid)
exten => s,n,GotoIf($[${TRIES} < 3]?try-again:do-not-try-again)
exten => s,n(try-again),Set(TRIES=$[${TRIES} + 1])
exten => s,n,Goto(prompt,s,1)
exten => s,n(do-not-try-again),Hangup
[echo-test]
;
; Create an extension, 600, for evaluating echo latency.
;
exten => 600,1,Answer ; Do the echo test
exten => 600,n,Playback(demo-echotest) ; Let them know what's going on
exten => 600,n,Echo ; Do the echo test
exten => 600,n,Playback(demo-echodone) ; Let them know it's over
exten => 600,n,Goto(s,6) ; Start over