CUC Forums

« Back to CUPI Questions

Using CUPI for creating callhandlers

Combination View Flat View Tree View
Threads [ Previous | Next ]
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

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.

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

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.

Thanks Matthew!