ONRELEASE

Processes the end of a call, specifically for emailing a voicemail or sending call data to a database or a website.

Supported Script Types

Generic Email Chat Phone Voicemail Work Item

Properties

CauseCode
The name of the variable that stores the cause code. Cause codes are numeric values that are sent by the phone carrier in case of an error. If nothing is entered, the variable will default to p1.
CallResult
N/A

Branches

Default
The Default branch condition will always be used.

Tips and Tricks

  • ONRELEASE is an event.
  • When a caller, agent, or HANGUP action hangs up the phone, the contact is released and the script is terminated.
  • When a caller, agent, or HANGUP action hangs up the phone, and there is an ONRELEASE event in the script, the script will not terminate immediately, but will continue until there are no more actions that follow, or a STOP or HANGUP action is executed.
  • Media - specific actions (i.e., PLAY, MENU, RECORD, etc.) are not allowed after the ONRELEASE event. The RUNSUB and RUNSCRIPT actions should not be placed after the ONRELEASE action.
  • To process a phone call contact, NICE inContact will use a Voice port. After a call has been released (i.e., completed), NICE inContact will use an Other port (if one is available) to handle end of call processing. If there is not an Other port available, NICE inContact will continue to use the Voice port.
  • For troubleshooting purposes, when you run the debugger within Studio, the SS7 cause codes will auto populate the _CALLRESULT, _CAUSECODE, and _CAUSECODECATEGORYID to indicate the reason a call was released.
  • There can be only one ONRELEASE event in a script.