Kick users from conference after leader leaves

The default app will kick all the users after the admin leader leaves. I wrote a conf bridge that uses call files to have user phones call into the conf then break into speakerphone. The problem is when the leader leaves it keeps the users phones connected. If a phone dials 600 it is being marked as admin I can even use 3 in the admin menu to kick the last user. Does anyone know why the dialing users “601” are not kicked when 600 leaves?

It is an issue with the user. If I dial 600 my admin phone goes into conf 501. If I dial 501 from another phone and hang up the phone I dial 600 from it does disconnect the user. but my script using 601 to dial into 501 does not disconnect the user

`[ext-meetme]

include => ext-meetme-custom
exten => STARTMEETME,1,MeetMe(${MEETME_ROOMNUM},${MEETME_OPTS},${PIN})
exten => STARTMEETME,n,Hangup
PTS
exten => h,1,Hangup
exten => 600,1,Set(MEETME_ROOMNUM=501)
exten => 600,n,GotoIf($["${DIALSTATUS}" = “ANSWER”]?READPIN)
PTS
exten => 600,n,Answer
exten => 600,n,Wait(1)
exten => 600,n,Set(PINCOUNT=0)
exten => 600,n,Set(CONFBRIDGE(user,admin)=yes)
exten => 600,n(ADMIN),Set(CONFBRIDGE(user,marked)=yes)
exten => 600,n,Set(MENU_PROFILE=admin_menu)
exten => 600,n,SIPAddHeader(Alert Info:Ring Answer)
exten => 600,n,System(cp /var/spool/asterisk/paging/.call /tmp/)
exten => 600,n,System(mv /tmp/
.call /var/spool/asterisk/outgoing)

exten => 600,n,Set(CONFBRIDGE(user,marked)=yes)
exten => 600,n,Set(CONFBRIDGE(user,admin)=yes)
exten => 600,n,Set(CONFBRIDGE(user,wait_marked)=yes)
exten => 600,n,Set(CONFBRIDGE(user,quiet)=yes)
exten => 600,n,Goto(STARTMEETME,1)
exten => 600,n,hint,Meetme:237

exten => 601,1,Set(MEETME_ROOMNUM=501)

exten => 601,n,Set(CONFBRIDGE(user,wait_marked)=yes)
exten => 601,n,Set(CONFBRIDGE(user,end_marked)=yes))
exten => 601,n,Set(CONFBRIDGE(user,dsp_drop_silence)=yes)
exten => 601,n,Set(CONFBRIDGE(user,talk_detection_events)=yes)
exten => 601,n,Set(MENU_PROFILE=user_menu)
exten => 601,n,Set(CONFBRIDGE(user,template)=default_user)

exten => 601,n,Goto(STARTMEETME,1)
exten => h,1,Hanup()`

It does work if I change my .call file to Extension 501 instead of 601 but I have to put in a user password. Is there anyway to have the call file enter the password for the user?

channel: local/237
Callerid: 237
MaxRetries: 0
RetryTime: 90
WaitTime: 5
Context: from-internal

#Set: SIPADDHEADER=(Alert-Info:PJSIP_HEADER(add,Alert-Info)=info=Auto Answer)
#Set: SIPADDHEADER=(Alert-Info:Auto Answer)
#Set: SIPADDHEADER=(Alert-Info:ring-answer)
#Set: SIPADDHEADER=(Call-Info: \;answer-after=0)
#Set: SIPADDHEADER=(_SIPURI_OPTIONS=intercom=true)

Extension: 501

I think it’s working this kicks out a user after the last leader leaves
exten => 601,n,Set(CONFBRIDGE(user,end_marked)=yes)

I think becuase I had this it was over riding the end_marked
exten => 601,n,Set(CONFBRIDGE(user,template)=default_user)