The different types of greetings available for every user and call handler are:

The different types of greetings available for every user and call handler are:

Line 40:

Line 37:

* Holiday

* Holiday

+

== Accessing Greetings ==

Each greeting can be accessed through the following various GET requests:

Each greeting can be accessed through the following various GET requests:

Line 52:

Line 50:

</pre>

</pre>

-

TimeExpires is the field that determines whether a greeting is enabled or disabled. To enable a greeting, TimeExpires needs to be set to a future date, which is the date on which the greeting will expire (be disabled). To disable a greeting, simply set TimeExpires to a date in the past. Also, if TimeExpires is set to null that means it is enabled indefinitely (currently CUPI offers no ability to set this field to null).

+

== Enabling or Disabling Greetings ==

+

The TimeExpires field determines whether a greeting is enabled or disabled. To enable a greeting, TimeExpires needs to be set to a future date, which is the date on which the greeting will expire (be disabled). To disable a greeting, simply set TimeExpires to a date in the past. Also, if TimeExpires is set to null that means it is enabled indefinitely (currently CUPI offers no ability to set this field to null).

TimeExpires is always calculated as GMT. Any time zone conversion is the responsibility of the client.

TimeExpires is always calculated as GMT. Any time zone conversion is the responsibility of the client.

Line 74:

Line 73:

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

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

<Greeting>

<Greeting>

-

<TimeExpires>1970-01-01 00:00:00.0</TimeExpires>

+

<TimeExpires>1972-01-01 00:00:00.0</TimeExpires>

</Greeting>

</Greeting>

+

</pre>

+

+

== Using the CUTI to record greetings via the Phone ==

+

+

Greetings can be updated using recorded wave files or by using the Phone interface via the CUTI.

Greeting Types

The different types of greetings available for every user and call handler are:

Alternate

Busy

Error

Internal

Off Hours

Standard

Holiday

Accessing Greetings

Each greeting can be accessed through the following various GET requests:

GET /vmrest/user/greetings/Alternate
GET /vmrest/user/greetings/Busy
GET /vmrest/user/greetings/Error
GET /vmrest/user/greetings/Internal
GET /vmrest/user/greetings/Off%20Hours
GET /vmrest/user/greetings/Standard
GET /vmrest/user/greetings/Holiday

Enabling or Disabling Greetings

The TimeExpires field determines whether a greeting is enabled or disabled. To enable a greeting, TimeExpires needs to be set to a future date, which is the date on which the greeting will expire (be disabled). To disable a greeting, simply set TimeExpires to a date in the past. Also, if TimeExpires is set to null that means it is enabled indefinitely (currently CUPI offers no ability to set this field to null).

TimeExpires is always calculated as GMT. Any time zone conversion is the responsibility of the client.

To enable the Holiday greeting until March 9th 2020, you would use the following PUT request:

a) The record operation in Step-1 returns XML/JSON output containing the details of the recorded file.
b) Send a PUT request on the URL
/vmrest/user/greetings/{greeting type}/greetingstreamfiles/{language}
with the XML/JSON returned in the step above.

The Put request will update the Greetings. The update of a Greetings wave file is similar whether a audio wave file is being used or the audio is a CallControl XML/JSON schema.