; Conference line stuff
;
[meeting]
; invitee for web-scheduled meeting
exten => 2600,1,Goto(confline,s,1)

[confline]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Background(enter-conf-call-number)

exten => i,1,Playback(conf-invalid)
exten => i,n,Goto(s,3)

exten => t,1,Goto(s,3)

; Participants always dial a 7-digit conference number, optionally followed
; by the #-sign
exten => _XXXXXXX,1,Wait(1)
exten => _XXXXXXX,n,MeetMe(${EXTEN}|MPxwsvn)
exten => _XXXXXXX,3,Goto(s,3)
exten => _XXXXXXX#,1,Goto(${EXTEN:-8:7},1) ; emulates "StripLSD(1)"

; Conference administrators dial an 11-digit number, the first 7 digits of
; which are the conference number, followed by a 4-digit pin. Optionally,
; follow the number with a #-sign
exten => _XXXXXXXXXXX,1,Wait(1)
exten => _XXXXXXXXXXX,n,MeetMe(${EXTEN:0:7}|MAnasxv|${EXTEN:-4:4})
exten => _XXXXXXXXXXX,n,Goto(s,3)
exten => _XXXXXXXXXXX#,1,Goto(${EXTEN:-12:11},1) ; emulates "StripLSD(1)"
