serfreeman1337 / asterlink

Asterisk integration with Bitrix24 and SuiteCRM
MIT License
29 stars 18 forks source link

call logging storing time in seconds also #10

Open f1-outsourcing opened 2 years ago

f1-outsourcing commented 2 years ago

I have currently a partial working setup, that is logging calls in the activies/calls section of suitecrm. What annoyed me is that if I am testing I have to wait a minute before time is registered. At first I thought when I saw the log entry below, seconds were just not submitted, but then I noticed that de database has duration stored in two separate fields (wtf ??? wtf ??? wtf ???)

When they change it to one field using something like seconds or interval, it would be nice to update this module for it.

time="2022-06-26T19:44:14+02:00" level=trace msg="map[data:map[asterlink_call_seconds_c:17 date_end:2022-06-26 17:44:14 duration_hours:0 duration_minutes:1 status:]

Later I will link the issue to request this change in the suitecrm database here.

serfreeman1337 commented 2 years ago

"Add seconds to call duration view field" on module config page can update this field to display seconds to. But it looks like a hack, rather than solution. I think better way would be to create own field for that purpose. Will think about it for the next release.

Also this field can't be hidden, otherwise "call reminder" function will beak.