Queue cmd with option B

Hi

I want to know if the agent who took the call was the first called one
in rrmemory mode.

For this I use

same = n,Set(__memberState=UNKNOWN)
same = Set(__memberRange=0)
same = n,Queue(${myQueue},B(checkMemberStatus,s,1)ctF(set-
INC_STOP,s,1),${myTimeout},set-INC_START)
same = n,Set(__myRetry=$[${myRetry}+1])

and

[checkMemberStatus]
;
exten = s,1,Set(__memberRange=$[${memberRange}+1])
same = n,ExecIf($[“x${myRetry}” = “x1” | “x${memberState}” =
“xUNKNOWN”]?Set(__memberState=first):Set(__memberState=member))
same = n,Return

Problem is that the subroutine checkMemberStatus is only called for the
first agent but not on next ones.

Is this the the normal behavior? How can I know if the agent who took
the call is the first one from rrmemory and took the call on the very
first time he was called?

Thanks for any hint


Daniel


Daniel

I found a solution by using b option insteed of B and setting variables
in DB using CHANNEL(callid) as key

Regards


Daniel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.