Extension mobility, getting device info

Unanswered Question
Apr 3rd, 2008

Hi!

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
stephan.steiner Thu, 04/03/2008 - 08:28

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

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.

Attachment: 
schemberg Fri, 04/04/2008 - 00:16

Hi,

you can use the EM API to get this information (userDeviceQuery):

emproxyuserid

password

userid

it will return SEP00... if sucessful. You will find more information in the EM API service documentation.

Regards

Axel

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

Hi!

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:

em-vbalakhesloem-vbalak

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

Attachment: 
schemberg Fri, 04/04/2008 - 00:51

Hi,

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.

Regards

Axel

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

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

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

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

i'm using the second one.

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

java.lang.String.(String.java:144)

com.cisco.emservice.EMServiceServlet.processRequest(EMServiceServlet.java:203)

com.cisco.emservice.EMServiceServlet.doPost(EMServiceServlet.java:313)

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

sun.reflect.GeneratedMethodAccessor766.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)

java.security.AccessController.doPrivileged(Native Method)

javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

Actions

This Discussion