<p dir="ltr">Answering myself : export and nolocal to do it. <br>
</p>
<div class="gmail_quote">On Feb 9, 2016 7:42 AM, "ik" <<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hello, </p>
<p dir="ltr">I'm trying to use hangup api hook for leg b, while leg a is still connected and transferred to do other tasks. </p>
<p dir="ltr">The hook only triggers when leg a disconnected, not when leg b. </p>
<p dir="ltr">I found this question on Google, but no answer that works. </p>
<p dir="ltr">So how can I execute API (curl in this case) when leg b is disconnected? </p>
<p dir="ltr">Thank you, </p>
<p dir="ltr">Ido</p>
</blockquote></div>