That won’t work unless I’m mistaken.  Well it will if the call is answered, but if it fails, the lua script will not be called.  So if the result is BUSY, the script won’t be called.

 

Regards,

 


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Matthew Fong
Sent: 02 May 2009 22:22
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Hang-up event - Alternative?

 

You can always have your lua script fire a custom event on api_hangup...this will only send the data you specify in your event.

On Sat, May 2, 2009 at 1:36 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk> wrote:

Hi Guys,

 

Is there an alternative to the hang-up event that doesn’t send quite as much data?  This event is HUGE!

 

All I’m looking for this the result of the call, duration, dialed number and the ability to pass variables.  The hang-up event does all of this I know, but I also get everything including the stock market reports (just kidding)

 

Right now I’m using custom events for successful calls and the BACKGROUND_JOB for call fails as my application is running an lua script on call answer, but this doesn’t get called if the call fails

 

 

Regards

 

 


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org