[Freeswitch-users] Using session.getVariable with start_stamp, answer_stamp and nibble_total_billed return empty

Brian West brian at freeswitch.org
Mon Jan 30 15:57:48 MSK 2017


You don't want to call getvar in a loop just use the hangup hook and
session in hangup hook variables, but you shouldn't be doing billing in
this manner!

/b

On Mon, Jan 30, 2017 at 1:37 AM Donny Hardyanto <hardyanto.donny at gmail.com>
wrote:

> Hi,
>
> I need to call some web API after the call finish with parameter answered
> time stamp and nibble_total_billed. I am using Javascript
> session.getVariable to get those parameters,  but the start_stamp,
> answer_stamp, start_epoch and nibble_total_billed returned empty.
>
> How to get the start_stamp, answer_stamp and nibble_total_billed in
> Javascript scripts?
>
> Donny
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu

Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170130/ef3dfa98/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list