View Single Post
Posts: 29 | Thanked: 23 times | Joined on Jan 2009 @ Macedonia
#7
Originally Posted by hcm View Post
oh, one remark:what do the triggers do if a outgoing call is not answered? are start_time and end_time the same? or is end_time = 0 because the trigger never triggers? in the first case, my script would still count one minute…
For calls that were not answered, the call_duration is never updated, so the trigger doesn't fire. That means that those events will have end_time stuck at 0.
Which means that all apps that would use end_time will have to specifically check for that condition, and change to 0 all negative values they get for duration (end_time - start_time).