cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
375
Views
0
Helpful
1
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Shadan Saniepour Esfahani on 14-01-2010 06:31:50 PM
Greetings
<font face="Calibri, Verdana, Helvetica, Arial">
 
</font>
I am trying to use CUPI to provision callhandlers on CUC.

On the CUPI confluence, I see a sample URL that can be used for POST to create users:
/vmrest/users?templateAlias=voicemailusertemplate"><a>http://<connection-server>/vmrest/users?templateAlias=voicemailusertemplate</a>] <<a>http:///</a>]>

How should I use this for callhandlers? I used the following but it does not work:

<a>http:///</a>]</font></a><a>http://<connection-server>/vmrest/handlers/callhandlers</a>]<connection-server>/vmrest/handlers/callhandlers</a>
I got this error:
Failure runHTTPCommandPost (execute)java.io.IOException: Server returned HTTP response code: 400 for URL: <a>https://10.88.147.247/vmrest/handlers/callhandlers</a>]



Really appreciate your help!
Best regards
Shadan

Subject: RE: Using CUPI for creating callhandlers
Replied by: David Wanagel on 14-01-2010 09:23:49 PM
an HTTP 400 error will also return with some content as ErrorDetails (you can look at the ErrorDetails.xsd to get an idea).  The error messages in that content should clarify what the problem is.

Subject: RE: Using CUPI for creating callhandlers
Replied by: Shadan Saniepour Esfahani on 14-01-2010 10:10:52 PM
This is the error content:
response message = Bad Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><co
de>INVALID_PARAMETER</code><message>Callhandler template templateObjectId is req
uired</message></errors></ErrorDetails>
 
Does this mean I have to include a parameter called templateObjectId? This parameter is not among the parameters on the confluence (http://zed.cisco.com/confluence/display/CUC/Resource+Definitions#ResourceDefinitions-Callhandler).

Is this a new one?
Thank you and best regards
Shadan

Subject: RE: New Message from Shadan Saniepour Esfahani in Cisco Unity Connection Pr
Replied by: Matthew Penning on 14-01-2010 11:22:29 PM
Hi - CUPI requires a call handler template be specified when creating a
new call handler.

You'll need to add a parameter such as this:

?templateObjectId={objectid}

By default there is a call handler template installed, you can find it
here:

/vmrest/callhandlertemplates

~ Matt

________________________________

From: Cisco Developer Community Forums
[mailto:cdicuser@developer.cisco.com]
Sent: Thursday, January 14, 2010 2:11 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Shadan Saniepour Esfahani in Cisco Unity
Connection Provisioning Interface (CUPI) - CUPI Questions: RE: Using
CUPI for creating callhandlers


Shadan Saniepour Esfahani has created a new message in the forum "CUPI
Questions":
--------------------------------------------------------------
This is the error content:
response message = Bad Request
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><ErrorDetails><errors><co
de>INVALID_PARAMETER</code><message>Callhandler template
templateObjectId is req
uired</message></errors></ErrorDetails>

Does this mean I have to include a parameter called templateObjectId?
This parameter is not among the parameters on the confluence
(http://zed.cisco.com/confluence/display/CUC/Resource+Definitions#Resour
ceDefinitions-Callhandler]).

Is this a new one?
Thank you and best regards
Shadan
--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/cupi/forums/-/message_boards/message/189
7651>
or simply reply to this email.

Subject: RE: New Message from Shadan Saniepour Esfahani in Cisco Unity Connection Pr
Replied by: Shadan Saniepour Esfahani on 19-01-2010 10:08:07 PM
Thanks Matthew!
Comments
Nikolay.Ralchev
Level 1
Level 1

Hello guys.

I have managed to create a call handler in Unity using this method.

1. I fetch the call handler template object ID using this request

GET https://<connection-server>/vmrest/callhandlertemplates 

Check the response and look for <ObjectId>6b17cde8-0934-43ff-8cd7-8c0df04c96c2</ObjectId>  ( the id in red is from my lab) 

2. Copy the object id from the response above and use it for the next POST request which creates the desired call handler

3. PUT https://<connection-server>/vmrest/handlers/callhandlers?templateObjectId=6b17cde8-0934-43ff-8cd7-8c0df04c96c2

For the sake of testing, I useda  simple call handler body in JSON format:

 

{
    "DisplayName": "Texoma1"
}
4. If all is ok you will get a 201 response from Unity with the new call handler object id. 
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:

Quick Links