cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
885
Views
0
Helpful
9
Replies

Extension mobility, getting device info

venca.balak
Level 1
Level 1

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

9 Replies 9

stephan.steiner
Spotlight
Spotlight

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.

schemberg
Level 1
Level 1

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

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

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

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

nope :-(

response to your form is

Other Parser Error: Connection refused

but no firewall...where can be problem?

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:

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)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: