hanguphook arguments
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?
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?
participants (2)
-
Christian Damianidis
-
Michael Jerris