04-25-2017 02:39 PM
Hi,
I need to get the agent id that the supervisor selected for monitor. How can I get the agent id?
Thanks.
Danny
Solved! Go to Solution.
04-28-2017 09:33 AM
Hi Danny,
In that if statement from above, get the list of participants in that dialog. Check if there are two. If there are, get the two mediaAddresses and eliminate the supervisor's extension.
That should do it (theoretically).
Thanx,
Denise
04-28-2017 09:34 AM
One more thing, if there aren't two participants, just throw the event away and move on until you get two.
04-28-2017 11:05 AM
Hi Denise,
Finally, I am able to grab the agent's call variable from supervisor.
BTW: the dialog count is always 1 so that was not good. If the callType is SUPERVISOR_MONITOR then there is a getToAddress() that is the agent's extension. The _processCall function was called a few time so had to check if the user.getState() is "ALERTING" then only request agent's call variables using signalR.
Now it is working..
Thanks.
04-28-2017 11:09 AM
You are right that the toAddress is the agent's extension. I don't know why I didn't think of that
Great to hear that it is working for you now.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide