02-15-2017 08:39 AM
Hi,
I want to create a Routing Rule with "Send Call to Call Handler" using CUPI.
The request I use is :
POST /vmrest/routingrules HTTP/1.1
Accept: application/json
Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjpjaXNjb3Jlbm5lcw==
User-Agent: Jakarta Commons-HttpClient/3.0
Host: 10.20.2.223:8443
Cookie: $Version=0; JSESSIONID=F511D502909770999BDF5FA3A37ACA9B; $Path=/vmrest/
Cookie: $Version=0; JSESSIONIDSSO=5873D22DCB59FC3E740C187043CB2EE2; $Path=/
Cookie: $Version=0; REQUEST_TOKEN_KEY=-2667875700315158213; $Path=/
Content-Length: 319
Content-Type: application/json; charset=UTF-8
{"DisplayName":"testbug20060ter","Type":"1","State":"0","UseDefaultLanguage":"false","UseCallLanguage":"false","LanguageCode":"1025","RouteAction":"0","RouteTargetConversation":"PHGreeting","RouteTargetHandlerObjectId":"894acf6e-d271-41cf-af48-65e01e89e22b","SearchSpaceObjectId":"9f847fa5-095f-4281-a8d7-73c9faa112b7"}"
HTTP/1.1 201 Created
Set-Cookie: REQUEST_TOKEN_KEY=-2667875700315158213; Path=/; Secure; HttpOnly
X-Frame-Options: SAMEORIGIN
Content-Type: application/json
Transfer-Encoding: chunked
Date: Wed, 15 Feb 2017 16:26:52 GMT
Server:
/vmrest/routingrules/d2664c39-03a1-45c9-a9b8-7d548fa4f94c
But when I look to the created Routing Rule on Unity Connection Administration Interface, there is no radio button selected for "Send Call to":
What is wrong with my request ?
Thank you,
Fabien
Solved! Go to Solution.
02-21-2017 07:41 AM
When I set the value "2" to "RouteAction", it works.
02-21-2017 07:41 AM
When I set the value "2" to "RouteAction", it works.
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: