I’m using macros for some additional functionality for both legs (Bob and Alice) and I’m using Asterisk as gateway, it should stay in the middle of the call, record it and send alerts
It looks like Originate() block application until it return some status (Success, Fail or other), and after that it create another thread where Alice-extension executed, but once Originate() return and since Bob CANCEL the call his thread doesn’t process ORIGINATE_STATUS anymore but goes straight to h extension, but Alice thread keep executing logic from Alice-extension.
I need to kill Alice thread (channel) somehow if Bob’s thread (channel) is canceled