From 901f0dbf469f7fabed79f5454586891f03f2f58a Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Mon, 26 Feb 2018 18:37:03 +0100 Subject: [PATCH] voice-client: duration is integer --- voice-client/files/usr/libexec/rpcd/voice.asterisk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice-client/files/usr/libexec/rpcd/voice.asterisk b/voice-client/files/usr/libexec/rpcd/voice.asterisk index e1271adf7..f435f208b 100755 --- a/voice-client/files/usr/libexec/rpcd/voice.asterisk +++ b/voice-client/files/usr/libexec/rpcd/voice.asterisk @@ -114,7 +114,7 @@ case "$1" in json_add_object "" json_add_string uniqueid "$uniqueid" json_add_string time "$timestart" - json_add_string duration $((startdate - enddate)) + json_add_int duration $((startdate - enddate)) json_add_string disposition "$(echo $line | awk -F',' '{print $(NF-3)}')" json_add_string direction "$direction" json_add_string from "$from"