[Freeswitch-users] Setting Hangup Hook on api originate

Bob McCarthy bob.mccarthy at experient.com
Sat Mar 31 03:24:01 MSD 2012


I just love it when it is simple :) thanks Michael .

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Collins
Sent: Friday, March 30, 2012 2:00 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Setting Hangup Hook on api originate

 

 

On Fri, Mar 30, 2012 at 9:37 AM, Bob McCarthy <bob.mccarthy at experient.com>
wrote:

I am having trouble getting a hangup hook to execute after an api originate.

 

bgapi expand originate
{api_hangup_hook=confhanguphook.lua,session_in_hangup_hook=true}sofia/intern
al/2001@${switchvox} &conference(25bce61d-fb32-44d7-8d99-7ceafc599f22 at sla)

 

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?


I have an idea: how about actually calling 'lua' and not just the name of
your script? ;)

bgapi expand originate {api_hangup_hook='lua
confhanguphook.lua',session_in_hangup_hook=true}sofia/internal/2001@${switch
vox} &conference(25bce61d-fb32-44d7-8d99-7ceafc599f22 at sla)

-MC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120330/9057c8b2/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list