Hello,<br><br>I'm giving hangup-handlers a try on a new Asterisk 11.2.1 setup.<br>My plan is to use this handler to update my CDRs with values such as Asterish and Tech cause (see function HANGUP_CAUSE).<br>I want to have my custom hangup-handler be run only once and when "the second channel" hangs up.<br>
<br>At the moment, I'm issuing a couple of "channel originate Local/1@mycontext1 extension 123456789@mycontext2" commands.<br><br>I'm observing that as I'm using expressions such as Local/1@mycontext1, a Local <ZOMBIE> channel is hanged before the second channel stops ringing.<br>
When the second channel itself ends, my handler is not run anymore.<br><br><br>What would you suggest me to do ?<br>Should I delay my Set(CHANNEL(hangup_handler_wipe)= ...) statement till both channels are bridged together ?<br>
<br>Regards<br><br>