Extension mobility, getting device info

Unanswered Question
Apr 3rd, 2008
User Badges:


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?

Many thanks!

ps, i tried EMservices, but it still responses 500 :-((

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
stephan.steiner Thu, 04/03/2008 - 08:28
User Badges:
  • Silver, 250 points or more

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.

venca.balak Fri, 04/04/2008 - 00:21
User Badges:

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.

schemberg Fri, 04/04/2008 - 00:16
User Badges:


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.



venca.balak Fri, 04/04/2008 - 00:34
User Badges:


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

schemberg Fri, 04/04/2008 - 00:51
User Badges:


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.



venca.balak Fri, 04/04/2008 - 01:00
User Badges:

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 :-)

venca.balak Fri, 04/04/2008 - 01:07
User Badges:

nope :-(

response to your form is

Other Parser Error: Connection refused

but no firewall...where can be problem?

stephan.steiner Mon, 04/07/2008 - 05:33
User Badges:
  • Silver, 250 points or more

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

venca.balak Tue, 04/15/2008 - 06:34
User Badges:

i'm using the second one.

i catch a traffic with exception from CUCM, here it is:






sun.reflect.GeneratedMethodAccessor766.invoke(Unknown Source)




java.security.AccessController.doPrivileged(Native Method)





This Discussion