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?