Im trying to get phone name (SEP...) of device, in which is logged some EM user. With standard user this is no problem (axl getPhone) but how to do this on EM phone? I know userId or phonenumber, so how to do that, can anyone help, pls?
ps, i tried EMservices, but it still responses 500 :-((
EM phone? A phone is a phone.
If an extension mobility user is logged into a phone, then the loginUserId field will contain the userid of the currently logged in user.
And as far as the EM Service goes.. you'd have to post your full request.
Many thanks for quick response! I don't agree with that getPhone returns loginUserId on phone with extension mobility user logged. It returns error message (but the same axl calling on phone without EM user logged it works correct).
It returns "A syntax error has occurred.", code -201. Full xml output (and request) are attached.
you can use the EM API to get this information (userDeviceQuery):
it will return SEP00... if sucessful. You will find more information in the EM API service documentation.
Thanks for reply, but this i s the way i do, i'm sending the same query you wrote via POST to http://CM/emservice/EMServiceServlet:
and it returns absolutely another user (see attachement) with no info about phone :-(. And the most amazing thing - after returning this it breaks up with exception:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://x.y.z.w/emservice/EMServiceServlet
maybe some problem with authorization? Im sending Request property Authorization: Basic with BASE64 encoded cmAdmin:passwd and in query im using emuserid + emuserpwd
I can't belive, that you are requesting the EM API, it looks like AXL, because the return is "/axl:getUserResponse", your request seems to be "getUserRequest". But that has nothing to do with EM.
I suggest you start with a html file (I attached one, you just have to put in your credential and so on).
After that I would start with AXL doing the same.
Thanks, i'll try to!
Now i'm experimenting with RisList and it looks like that you are right about LoginUserId, when there is logged EM user, it returns his login and when there is no EM user logged in, it returns nil, hooray, step closer to problem solution :-)
To what url are you posting the em request? The port number has been changed between version 4 and version 5.. you get the error 0 if you send the request to the same url
On CCM 4 it's
http://" + callManager + "/emservice/EMServiceServlet
on CCM 5+ it's
http://" + callManager + ":8080/emservice/EMServiceServlet
i'm using the second one.
i catch a traffic with exception from CUCM, here it is: