[jitsi-dev] Closing previous call windows on new outgoing call



we're using Jitsi in a enterprise environment for outgoing calls only.
We're creating calls via command line calls from a separate program.

A different kind of single call policy would be very convienent: every
time an outgoing call is created the previous call should be hung up
and so the call window closed automatically.

I haven't found any way to get the feature going with a standard
installation and tried to create it myself but I had problems
implementing it.

Do you know an easy way to create such a feature and could you perhaps
give me a little nudge in the right direction?