MeetMe conference hangup script

Hi All,

I am very new to asterisk and need some help. I have conference calls setup and working. I am looking to have a script run each time a user leaves a conference. Can this be accomplished with MEETME_EXIT_CONTEXT? I was under the impression that I could do this with something like:

[code]exten => 1234,1,Answer()
same => n,Set(MEETME_EXIT_CONTEXT=999)
same => n,MeetMe(1234,r)
same => n,Hangup()

exten => 999,1,System(/home/username/Documents/script_to_run.sh)[/code]

However it seems that the script is never called. Also, is there an asterisk function which I can call to determine who is on a conference call at any time? I know there is a function which counts the number of users, but I want the identity of the users.

Thank you for your help.

I’m not familar with that variable, but I would expect the 999 to be a context name:

[999]

You’ve gotta call MeetMe with the X option if you want to use that channel variable, and it only works for single digit extensions.