MeetMeAdmin kick all not working


Using Asterisk version

I am using MeetMe to bridge two calls together, which can be SIP or PRI calls.
(I cannot use Dial for some other reasons)
I need to Hangup one call if the other gets disconnected.
So what I do is Originate a local call to an extension and monitor the conference from there.
If the no. of participants falls below 1, I kickout all participants usin MeetMeAdmin(conf_no, K).
The problem is that the kick all command seems to do nothing.
the CLI command “meetme kick xxxx all” works though
I don’t know if this is a generic bug or just the way I am trying to use it.


;start the monitoring extension. The channel just waits for a long time
exten =>Originate(Local/${CONF_NO}@monitor-conf,app,Wait,10000)
;originate call to the party I want to bridge
exten =>Originate(DAHDI/${NUMTODIAL},exten,outbound-call,${CONF_NO},1)
;Join the conf
exten => MeetMe(${CONF_NO},1qC)
;Do other things after this

exten => _X.,n,Set(MON_TIME=5)
exten => _X.,n,Answer()
exten => _X.,n,While($[${MON_TIME} != 0])
exten => _X.,n,Wait(${MON_TIME})
exten => _X.,n,MeetmeCount(${EXTEN},CONF_COUNT)
exten => _X.,n,Set(MON_TIME=${IF( $[ ${CONF_COUNT} > 1] ? 1 : 0)})
exten => _X.,n,EndWhile()
exten => _X.,n,MeetMeAdmin(${EXTEN}, “K”) -------> The processing reaches this point but nothing happens
exten => _X.,n,Hangup()

exten => _X.,n,MeetMe(${EXTEN},1qC)
exten => _X.,n,Hangup() --------> I expect to come here when kicked out of conf. But don’t

Please help.