Re: [Freeswitch-users] Javascript, Hanguphooks, CDRs and User Variables.

2009-03-31 Thread Michael S Collins
On Mar 31, 2009, at 5:59 AM, Anthony Minessale wrote: > if you set the channel variable 'session_in_hangup_hook=true' early > in the call, the session will be present in your script. > Very cool. I will get this chan var documented on the wiki right away. -MC

Re: [Freeswitch-users] Javascript, Hanguphooks, CDRs and User Variables.

2009-03-31 Thread Anthony Minessale
charge’ can be written out as one of the cdr > fields. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name="def">"

Re: [Freeswitch-users] Javascript, Hanguphooks, CDRs and User Variables.

2009-03-31 Thread Keith Laaks
ble 'charge' to the value in 'value'. Then using the config below, 'charge' can be written out as one of the cdr fields. "${accountcode}","${billsec}","${charge}",&quo

Re: [Freeswitch-users] Javascript, Hanguphooks, CDRs and User Variables.

2009-03-30 Thread Anthony Minessale
in your script called via api_hangup_hook: var env = request.dumpENV("text"); consoleLog("info", env); all those vars are there for you, you can get the individually with var hval = request.getHeader("some_header"); 2009/3/30 Keith Laaks > Hi, > > > > I have an application where my Javascri

Re: [Freeswitch-users] Javascript, Hanguphooks, CDRs and User Variables.

2009-03-30 Thread Michael Collins
Are logging both a- and b-legs? Just curious what your setup is. -MC 2009/3/30 Keith Laaks > Hi, > > > > I have an application where my Javascript hanguphook code calculates a > value (e.g. the cost of the call which can only be calculated post hangup) > and I need to have that value appear as

[Freeswitch-users] Javascript, Hanguphooks, CDRs and User Variables.

2009-03-30 Thread Keith Laaks
Hi, I have an application where my Javascript hanguphook code calculates a value (e.g. the cost of the call which can only be calculated post hangup) and I need to have that value appear as a field in the cdrs. As the 'session' object is no longer available for javascript logic post hangup,