SMS Services or WTI : how can i retrieve the agent of a device

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • avc863553355074
    Member
    • Sep 2024
    • 4

    SMS Services or WTI : how can i retrieve the agent of a device

    Hi,

    I want to know what agent is logged in on a particular device?
    I can use WTI to getagentstate (and pass device id), but then i don't get information about what agent is logged in on the device.

    Other than that, i only can think of sms service and get all staffed agents and lookup extension in that list, but that's a costly operation.

    Are there more performant alternatives please?
  • flynn1
    Brainiac
    .
    • Jun 2011
    • 82

    #2
    In this example, 50503 is a station and 50700 is the agent logged into it:

    Sending WTI request /api/fe/v1/GetPhysicalDeviceInformation
    Code:
    {"device": "50503:CM181:0.0.0.0:8"}
    ======== Incoming WTI Response =============
    
    {"GetPhysicalDeviceInformationResponse": {
            "deviceCategory": "station",
            "otherLogicalDeviceList": {"deviceID": "50700:CM181::0"},
            "hasLogicalElement": true
    }}
    It also works in reverse (put in the Agent's number and get back the station ID).

    Martin​

    Comment

    Loading