[Freeswitch-users] Hangup hook in js is never called [RESOLVED

Nik Middleton nik.middleton at noblesolutions.co.uk
Sat Feb 14 02:26:54 PST 2009


The JS hook does indeed work.

New to js, I hadn't declared the function prior calling it.  I can only
guess that java scripts are processed sequentially and do not throw up
errors if a call is made to a function that hasn't been processed yet

Regards,


-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Michael Collins
Sent: 13 February 2009 22:51
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Hangup hook in js is never called

> http://wiki.freeswitch.org/wiki/Example_Hangup_hook
>
>
>
> Is the code in error?
>

It might just be. I think you are better off using api_hangup_hook.
What are you trying to do on hangup? The api_hangup_hook lets you call
any API, including running a script. Here's an example that we played
with today that I haven't even put on the wiki yet. I renames the wav
file after the call is hung up.




More information about the FreeSWITCH-users mailing list