I think if we had an option to enter/run command line when a call is started and a seperate option with a different command on call ending. This would give uses such as on a media server or by controlling another devices respond for inbound call notifications.
On incomming call notication/ring run…
On incoming call ends run …