Hi everyone,
I am trying to make it possible for users to increase and decrease the room by pressing “#”. The problem is that it first joins the new room and then leaves it. Do you know why?"
extensions.conf file
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
[default]
exten => mysipnumber,1,Answer()
same => n,Set(CHANNEL(language)=sv)
same => n,NoOp(Caller ID: ${CALLERID(num)})
same => n,GotoIf($[“${CALLERID(num)}” = “anonymous”]?reject_anonymous)
same => n,GotoIf($[“${CALLERID(num):0:2}” = “00”]?reject_numbers)
same => n,Set(room=1)
same => n,SayDigits(${room})
same => n,ConfBridge(${room})
same => n,Hangup()
; Rejecting numbers
same => n(reject_anonymous),Playback(you_are_not_authorized)
same => n,Hangup()
same => n(reject_numbers),Playback(you_are_not_authorized_2)
same => n,Hangup()
[dtmf]
exten => #,1,NoOp(Moving to next room)
same => n,Set(room=${INC(room)})
same => n,SayDigits(${room})
same => n,ConfBridge(${room})
exten => *,1,NoOp(Moving to previous room)
same => n(decrement),Set(room=${DEC(room)})
same => n,SayDigits(${room})
same => n,ConfBridge(${room})
confbridge.conf file
[default_menu]
type=menu
#=dialplan_exec(dtmf,#,1)
=dialplan_exec(dtmf,,1)