Asterisk Confbridge with admins

I have the following :-

exten => 7177585,1,Answer
exten => 7177585,n,Set(CONFBRIDGE_JOIN_SOUND=en/beep)
exten => 7177585,n,Set(CONFBRIDGE_LEAVE_SOUND=en/beep)
exten => 7177585,n,Wait(1)
exten => 7177585,n,Authenticate(/etc/asterisk/password,ma)
exten => 7177585,n,GotoIf($["${CDR(accountcode)}" = “5001”]?stduser)
exten => 7177585,n,GotoIf($["${CDR(accountcode)}" = “5101”]?superuser)
exten => 7177585,n(stduser),ConfBridge(8001,cswM)
exten => 7177585,n,Goto(finish)
exten => 7177585,n(superuser),ConfBridge(8001,casAM)
exten => 7177585,n,(finish)Playback(vm-goodbye)
exten => 7177585,n,Hangup


What I’m trying to do is have standard users that get moh when entering the conference with a message saying waiting for the leader, then when the leader joins everybody goes into conference.

What happens is the first user gets the message and moh, but when a 2nd standard user joins, the moh stops even though the conference isn’t started yet. When the superuser joins, everybody goes into conference.
When the leader leaves, both the joined parties get told the leader has left and both get moh back.
If just a superuser joins then the conference is quiet (no moh).

Any Ideas ?

Did you find a fix to your problrm? I’m thinking of doing somthing similar.

No unfortunately I didn’t find a solution. All I did was tidy it up a bit so it was easier to call for different numbers :-

exten => s,1,Answer
exten => s,n,Set(CONFBRIDGE_JOIN_SOUND=en/beep)
exten => s,n,Set(CONFBRIDGE_LEAVE_SOUND=en/beep)
exten => s,n,Wait(1)
exten => s,n,Authenticate(/etc/asterisk/password,ma)
exten => s,n,GotoIf($["${CDR(accountcode)}" = “5001”]?stduser)
exten => s,n,GotoIf($["${CDR(accountcode)}" = “5101”]?superuser)
exten => s,n(stduser),ConfBridge(8001,cswM)
exten => s,n,Goto(finish)
exten => s,n(superuser),ConfBridge(8001,casAM)
exten => s,n,(finish)Playback(vm-goodbye)
exten => s,n,Hangup


; Voipon - Conference
exten => 7177585,1,Macro(conference)