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

CUPI - How to create a Routing Rule with "send call to Call Handler"

fabien.bonic
Level 5
Level 5

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

Location: https://10.20.2.223:8443/vmrest/routingrules/vmrest/routingrules/d2664c39-03a1-45c9-a9b8-7d548fa4f94c

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

bug20060.jpg

What is wrong with my request ?

Thank you,

Fabien

1 Accepted Solution

Accepted Solutions

fabien.bonic
Level 5
Level 5

When I set the value "2" to "RouteAction", it works.

View solution in original post

1 Reply 1

fabien.bonic
Level 5
Level 5

When I set the value "2" to "RouteAction", it works.

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: