From 55262453d41ac5409aefa15ec7be8cbff60fb88f Mon Sep 17 00:00:00 2001
From: Ben Bradford <32498928+bradfordben@users.noreply.github.com>
Date: Wed, 3 Apr 2019 13:19:33 -0700
Subject: [PATCH] PISTON-731: Changed duration_seconds in cdr to int from
 string to match (#5650)

all other 'seconds' value types
---
 applications/ecallmgr/src/ecallmgr_call_events.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/ecallmgr/src/ecallmgr_call_events.erl b/applications/ecallmgr/src/ecallmgr_call_events.erl
index 550f3fe75b9..b71433d03ff 100644
--- a/applications/ecallmgr/src/ecallmgr_call_events.erl
+++ b/applications/ecallmgr/src/ecallmgr_call_events.erl
@@ -707,7 +707,7 @@ specific_call_event_props(<<"CHANNEL_DESTROY">>, _, Props) ->
     ,{<<"From-Uri">>, props:get_value(<<"variable_sip_from_uri">>, Props)}
     ,{<<"Remote-SDP">>, props:get_value(<<"variable_switch_r_sdp">>, Props)}
     ,{<<"Local-SDP">>, props:get_value(<<"variable_rtp_local_sdp_str">>, Props)}
-    ,{<<"Duration-Seconds">>, props:get_value(<<"variable_duration">>, Props)}
+    ,{<<"Duration-Seconds">>, props:get_integer_value(<<"variable_duration">>, Props)}
     ,{<<"Billing-Seconds">>, get_billing_seconds(Props)}
     ,{<<"Ringing-Seconds">>, get_ringing_seconds(Props)}
     ,{<<"User-Agent">>, props:get_value(<<"variable_sip_user_agent">>, Props)}