<br><br><div class="gmail_quote">On Fri, Mar 30, 2012 at 9:37 AM, Bob McCarthy <span dir="ltr"><<a href="mailto:bob.mccarthy@experient.com">bob.mccarthy@experient.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">I am having trouble getting a hangup hook to execute after
an api originate.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">bgapi expand originate
{api_hangup_hook=confhanguphook.lua,session_in_hangup_hook=true}sofia/internal/2001@${switchvox}
&conference(25bce61d-fb32-44d7-8d99-7ceafc599f22@sla)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I get into the conference just fine but the script does not
execute when I hang up. Any Idea's of what I am doing wrong?</p></div></div></blockquote><br>I have an idea: how about actually calling 'lua' and not just the name of your script? ;)<br><br>bgapi expand originate
{api_hangup_hook='lua confhanguphook.lua',session_in_hangup_hook=true}sofia/internal/2001@${switchvox}
&conference(25bce61d-fb32-44d7-8d99-7ceafc599f22@sla)<br><br>-MC<br></div>