fs_cli | show calls | answer timestamp
Hello All! I use fs_cli api for interraction with FS from my application. Now I wish get current active calls (api show calls) and calculate current duration. "show calls" output many fields, but timestamp represent call originate time and no one field with timestamp represent b_leg answer time (SIP 200 OK message) So, any idea (easy implementation) to obtain SIP 200 OK timestamp or current call duration since 200 OK received? Dmitry
Dmitry, If you're trying to calculate billing information in this manner you're doing it wrong, that is not how you should be doing it. We've already told you to investigate mod_nibblebill Thanks, On Thu, Sep 10, 2015 at 1:12 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello All!
I use fs_cli api for interraction with FS from my application.
Now I wish get current active calls (api show calls) and calculate current duration.
"show calls" output many fields, but timestamp represent call originate time and no one field with timestamp represent b_leg answer time (SIP 200 OK message)
So, any idea (easy implementation) to obtain SIP 200 OK timestamp or current call duration since 200 OK received?
Dmitry
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@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@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com 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) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Thank you Brian, I check nibblebill. This takes a long time to implement in my case. On 09/10/2015 10:26 PM, Brian West wrote:
Dmitry, If you're trying to calculate billing information in this manner you're doing it wrong, that is not how you should be doing it. We've already told you to investigate mod_nibblebill
Thanks,
On Thu, Sep 10, 2015 at 1:12 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello All!
I use fs_cli api for interraction with FS from my application.
Now I wish get current active calls (api show calls) and calculate current duration.
"show calls" output many fields, but timestamp represent call originate time and no one field with timestamp represent b_leg answer time (SIP 200 OK message)
So, any idea (easy implementation) to obtain SIP 200 OK timestamp or current call duration since 200 OK received?
Dmitry
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
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) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Brian West
-
Dmitry Mordovin