Author Topic: Outbound call report by Agent number problem  (Read 4719 times)

fredsi

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
    • Email
Outbound call report by Agent number problem
« on: April 12, 2010, 19:57:19 »
Hi,

I tried to setup outbound call queue on my Elastix system. If I use queuedial, which will report outbound calls by extension, it works fine. but when I tried to use queuedial-loggedon (I have copied from this forum), I always here "Agents logged off". Here is the line under [queuedial-loggedon]
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${AGENTBYCALLERID_${CALLERID(num)}})
from the asterisk console I saw this:
    -- Executing [1991NXXNXXXXXX@queuedial-loggedon:3] Set("Local/1991NXXNXXXXXX@queuedial-loggedon-4052,2", "QDIALER_AGENT=Agent/") in new stack
in which, q-199 is outbound queue, and 1NXXNXXXXX is the phone number I dialed. It didn't get the agent ID as expected. By the way, I did logged in, and I changed status to pause cause I don't want receive inbound calls while I dialed out.

Please help. Thanks.

Fred

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Outbound call report by Agent number problem
« Reply #1 on: April 13, 2010, 16:06:33 »
That's because your agent code is not set - you don't use AGENTCALLBACKLOGIN.
 
Code: [Select]
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${CALLERID(num)})
Should work....

fredsi

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
    • Email
Re: Outbound call report by Agent number problem
« Reply #2 on: April 13, 2010, 23:40:19 »
Thank you.

I see it's the same as under [queuedial], and this logs extension number but not login ID. see below:

04/13 - 14:29:17     1xxxxxxxxxx      199 Outbound      0:04        1:01       0      Agent      agent/4004     1           1

in which 4004 is the extension number, and my login ID 6002 is not logged. How can I fix that?

Sincerely,

Fred

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Outbound call report by Agent number problem
« Reply #3 on: April 14, 2010, 11:41:41 »
At the moment, unless you have a way in the dialplan to get the agent code from the extension number, I think this is not feasible. Will be fixed with the new version with hotdesking.


fredsi

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
    • Email
Re: Outbound call report by Agent number problem
« Reply #4 on: April 15, 2010, 19:42:04 »
I copied this from the post by Zerabox, topic "please help" on 7/9/2009. here is part of his script:

[queuedial-loggedon]
; This piece of dialplan will let only logged on agents dial out
exten => _XXX.,1,Set(QDIALER_QUEUE=q-${EXTEN:0:3})
exten => _XXX.,n,Set(QDIALER_NUMBER=${EXTEN:3})
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${AGENTBYCALLERID_${CALLERID(num)}})
......

I don't know why his script doesn't work for me, as I posted, the last line above didn't catch the actual Agent ID, that's why it always say "Agents logged off". Any idea? Thanks.

Fred

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Outbound call report by Agent number problem
« Reply #5 on: April 16, 2010, 10:43:29 »
This is because they likely were using AGENTCALBACKLOGIN to log in members (that sets the variable you are looking for) while the more-recent ADDMEMBER entries do not.