cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1605
Views
0
Helpful
1
Replies

Authentication Error using EMAPI

Hi,

We are developing an integration using EMAPI and we're not getting the expected response from the CUCM.

This is the message for login:

<Request><Appinfo><Appid>myapp</Appid><Appcertificate>123456</Appcertificate></Appinfo><Login><Devicename>SEP1008FFFF1000</Devicename><Userid>myuser</Userid><Deviceprofile>myprofile</Deviceprofile><Exclusiveduration><Time>60</Time></Exclusiveduration></Login></Request>

We encode UTF-8 this request and the a response that is nor a success or a failure. This is the returning message:

<?xml version ="1.0" encoding="utf-8"?>

<CiscoIPPhoneInput>

<Title>Please Login </Title>

<Prompt>Please Login</Prompt>

<URL>http://192.168.227.90:8080/emapp/EMAppServlet?device=SEP1008FFFF1000&amp;EMCC=true</URL>

<InputItem>

<DisplayName>UserID</DisplayName>

<QueryStringParam>userid</QueryStringParam>

<InputFlags>A</InputFlags>

<DefaultValue></DefaultValue>

</InputItem>

<InputItem>

<DisplayName>PIN</DisplayName>

<QueryStringParam>seq</QueryStringParam>

<InputFlags>NP</InputFlags>

</InputItem>

</CiscoIPPhoneInput>

What should we do? We have tried to run the Sample App as is and get the same error.


CUCM version is 11

Thank you,

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

It looks like you might be sending the request to the E/M web app that the phones use to perform E/M operations - make sure you are sending API requests to the URLs noted here:

https://developer.cisco.com/media/EMAPI_Developer_Guide/_toc370817200.html

https://ucmanager:8443/emservice/EMServiceServlet (secure)

or

http://ucmanager:8080/emservice/EMServiceServlet (insecure)