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
charge’ can be written out as one of the cdr
> fields.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> name="def">"
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
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
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
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,