Asternic Call Stats - Transfer Statistic


(Wzkds) #1

Anyone have a guide to successfully get the transfer statistic to log? Trying to use asternic to log the transfer statistics. Looking specifically to get an amount of transfer that happen from one queue to another. I see my problem that its not logging it into the queue_log file for these and is also logging it as a local which can problems from what i’ve read in their user guide.

/var/log/asterisk/queue_log

…|MANAGER|3005|Local/505@from-queue/n|ADDMEMBER|

Asterisk 13.23.1
Asternic Version: 2.2.4


(Sergio Lobera) #2

Hi @wzkds how are you?
Did you try with this guide ? https://www.asternic.net/docs/userguide.php#Transfers5

In order for Transfers to be logged, you must use queue members with native devices (like SIP/1234) instead of the proxy Local channel, and you must also perform the transfer using the builtin transfer feature codes and not the transfer button on your phone, as in the later case, the most usual outcome is again a missing TRANSFER event in queue_log.

You can change queue member types in FreePBX by prepending an ‘S’ for SIP before the agent number in the queue configuration. However that change might break some other functionality/features for queue handling, so use it with extra care.


(Lorne Gaetz) #3

FreePBX queues work exclusively using agents on Local channel. Changing that behavior (if it even can be changed) may allow the transfer stat to be logged, but will break other things.


(Wzkds) #4

Thanks guys, I do see that the agents are tracked in /var/log/asterisk/queuelog as LOCAL:
For example:
|MANAGER|3005|Local/487@from-queue/n|ADDMEMBER|

Any idea how one would go about changing the channel to SIP? I don’t fully follow the explanation of pretending an S for SIP before the agent number in the queue configuration. Does that mean in the queue module, under agents, instead of 478, put S478? I don’t see how that would even work at all.


(Lorne Gaetz) #5

Yes, that’s what it means. Here is what normal queue agents look like:

10*CLI> queue show 703
703 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 60s
   Members:
      Aastra (Local/6013@from-queue/n from hint:6013@ext-local) with penalty 20 (ringinuse enabled) (Not in use) has taken no calls yet
      Mitel (Local/6007@from-queue/n from hint:6007@ext-local) with penalty 10 (ringinuse enabled) (Not in use) has taken no calls yet
   No Callers

But if you define with prefixes:

image

Then the agents are generated dfiferently:

10*CLI> queue show 703
703 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 60s
   Members:
      PJSIP/6013 with penalty 20 (ringinuse enabled) (Not in use) has taken no calls yet
      SIP/6007 with penalty 10 (ringinuse enabled) (Not in use) has taken no calls yet
   No Callers