[Freeswitch-users] Using session.getVariable with start_stamp, answer_stamp and nibble_total_billed return empty
Donny Hardyanto
hardyanto.donny at gmail.com
Tue Jan 31 13:21:48 MSK 2017
Ok, I guess using mod_json_cdr will do the trick. Point the url to to
ActionHero action to consume.
Thanks Brian.
Donny
On Mon, Jan 30, 2017 at 7:57 PM, Brian West <brian at freeswitch.org> wrote:
> 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 <+1%20918-420-9001> | *F:*+19184209002
> <+1%20918-420-9002> | *M:*+1918424WEST (9378)
> *Skype:*briankwest
>
> _________________________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170131/8f8d3cf1/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list