[Freeswitch-users] hanguphook arguments

Michael Jerris mike at jerris.com
Thu May 6 17:19:02 PDT 2010


global var?  you can't change the prototype of the callback fucntion.

On May 5, 2010, at 11:55 AM, Christian Damianidis wrote:

> Looking at http://wiki.freeswitch.org/wiki/Example_Hangup_hook
> I see there are some default arguments, however I want to pass in my own.
>  
> This may be some weak javascript knowledge on my part, but when I do
>  
> session.setHangupHook(on_hangup(myparam))
>  
> It executes the function (obviously as the brackets make it a function call).
>  
> Any tips on how to do this, is it possible?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100506/5a2c4671/attachment-0001.html 


More information about the FreeSWITCH-users mailing list