The event call_ended from wazo-calld should have an attribute showing the direction of the call that was hungup.
This allows external applications to know if the call that was hungup was a call received or placed, without having to keep this information in memory.