How to do something/run script after meetme conference room?

After a meeting room is empty, i want to launch a script to send the recording of the conference to some people. Is there something which can trigger it? Something like monitor_exec?

any help?

is it possible to run a bash script from c++? I plan to modify meetme source directly.

Isn’t asterisk in C? Anyways, it is “System()” is both.