Call has been on hold and total hold time

whut

Active Member
Dec 23, 2022
297
37
28
I am wanting to know a few things about a call in fusionpbx like "has this call been on hold?" and "what is the total time this call has been on hold?". I found these variables inside the CDR details, but they are always 0.

hold_accum_ms 0
hold_accum_usec 0
last_hold_epoch 0
last_hold_uepoch 0
hold_accum_seconds 0

This looks like a freeswitch issue because these variables are always zero in the freeswitch logs.

Do any of you guys and girls know how to get freeswitch to use, populate, and increment these variables?
 
Do you have these variables populated? I have many installations with multiple branches and so far I do not see any CDRs with these values != 0
 
I do yeah...

I made a test call before I replied and put the test line on hold for 13 seconds:

hold_accum_ms
13488

Makes me wonder if you're using a soft phone that is not sending the signal in correctly? That is just a shot in the dark
 
Oh! Now how/why do we not have any of these values on so many servers? Did you modify any of the autoload_config xml files to enable? I don't know how to enable.

I am using hardware phones.
 
Hey! `sofia global siptrace on` did it.

I now have these variables that include "hold"

Code:
hold_stamp     2025-03-27 16:52:50
hold_events     {{1743094370484252,1743094373098185}}
hold_accum_ms     2613
hold_accum_usec     2613933
last_hold_epoch     1743094370
last_hold_uepoch     1743094370484252
hold_accum_seconds     2

Now I need to discover if the global siptrace on will persist after a reboot.

Thank you @ksargeant
 
  • Like
Reactions: ksargeant