Author Message
ariellarraburu.gmail.com
Joined: Oct 14, 2020
Messages: 37
Offline
Hi. Is there any way to get the "Name" associated with an agent?

See attached image
  • [Thumb - AgentName.PNG]
[Disk] Download
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Online
Look at the query device name service on page 497 of the TSAPI SDK and map that back to the DMCC SDK.
https://www.devconnectprogram.com/fileMedia/download/db143c4a-3fd0-4d58-b684-4b5cf84a342f

Alternatively use system management service and query against the (display agentID xxx).
ariellarraburu.gmail.com
Joined: Oct 14, 2020
Messages: 37
Offline
JohnBiggs wrote:Look at the query device name service on page 497 of the TSAPI SDK and map that back to the DMCC SDK.
https://www.devconnectprogram.com/fileMedia/download/db143c4a-3fd0-4d58-b684-4b5cf84a342f

Alternatively use system management service and query against the (display agentID xxx).


Sorry, but I'm new to all things Avaya. I'm just getting comfortable with the sdk. Do you have any documentation or example of how to use the "system management service" from c #?
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Online
Sorry the examples in the SDK and sample code are java

https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/releases/8_1_3/index.gsp#tabs-product-downld-8

https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/sample_applications/sms_web_service/index.gsp

However, there ismethod call from .DMCC to invoke the TSAPI method (query device name) which would work for your stated need.

GetPhysicalDeviceName Method (deviceId, userState)
Namespaces ? Avaya.ApplicationEnablement.DMCC ? ServiceProvider ? GetPhysicalDeviceName(String, Object)
C#
This is experimental documentation.
Get the physical device name for the passed in device id.
Supported in: 5.2.0

Declaration Syntax
C# Visual Basic Visual C++
public int GetPhysicalDeviceName(
string deviceId,
Object userState
)
ariellarraburu.gmail.com
Joined: Oct 14, 2020
Messages: 37
Offline
JohnBiggs wrote:Sorry the examples in the SDK and sample code are java

https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/releases/8_1_3/index.gsp#tabs-product-downld-8

https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/sample_applications/sms_web_service/index.gsp

However, there ismethod call from .DMCC to invoke the TSAPI method (query device name) which would work for your stated need.

GetPhysicalDeviceName Method (deviceId, userState)
Namespaces ? Avaya.ApplicationEnablement.DMCC ? ServiceProvider ? GetPhysicalDeviceName(String, Object)
C#
This is experimental documentation.
Get the physical device name for the passed in device id.
Supported in: 5.2.0

Declaration Syntax
C# Visual Basic Visual C++
public int GetPhysicalDeviceName(
string deviceId,
Object userState
)


GetPhysicalDeviceName returns the name associated with the extension. In my case "Ariel Larraburu" is that value. I also have an agent logged in to my extension. The Name property of that agent is "Test", and that is the value I need to get.

Basically I am developing an application for a call center, where the agents log in in different extensions, the extensions do not have an associated name. When an agent logs in to any extension, I need the agent's name to link to other applications. That is the value that I cannot get.

From Dashboard:

Get Physical Device Name Response: 24
Name: Ariel Larraburu
Device Type: station
Device: 3349
Get Physical Device Information Response: 25
Device Category: station
Has Logical Element: true
Other Logical Device List Length: 1
: 499992:ARBUE0001::0 <-------- I need the name associated with this agent.
ariellarraburu.gmail.com
Joined: Oct 14, 2020
Messages: 37
Offline
Solved,

this.ServiceProvider.GetPhysicalDeviceName("499992:ARBUE0001::0", null);

Get Physical Device Name Response: 33
Name: TEst
Device Type: logicalAgent
Device: 499992

JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Online
yea, you need to give a deviceID containing the AgentID that you want the name for.
Go to:   
Mobile view