📖
API Documentation
  • About
  • Version History
  • Introduction
    • Account Setup
    • Platform Features
    • Mid Call Divert/Mid Call Conference
    • Call Whisper
    • Conferencing
    • Percentage Distribution Algorthm
    • Call Queueing
    • Call Recording
    • Outbound Call
    • IVR Voicemail Retrieval Telephone Service
    • IVR Service Switcher Telephone Service
    • Web Service Security
    • Web Service Definition Language
      • Using a development environment other than the .NET Platform
    • Web Service Error Handling
    • Real-Time Multi-leg Call Data Records
      • Pseudo Code
      • Real-Time Multi-Leg CDR Call Types
    • Status Code Table
    • Default Audio
    • Development Guidelines
      • Development LAB Platform Test Harness
    • Post Call
    • DTMF Controlling Party
    • Data Rentention Policy
    • API Availability
    • Dynamic Call Agent (DCA)
      • Status Code Table
      • Call Outcome Table
      • Call Status Table
      • IVR Dynamic Call Agent Service
      • Apology Modes
    • JSON API
    • Emails
      • Custom Email Settings
      • Not Receiving Emails
      • Global Email Variables
      • Using Custom Service Variables within your emails
      • Email Content Type
      • Email Address HTML encoding
    • TimeZone Offset Setting
      • TimeZone Offset Table
      • Daylight Saving Time Changes
    • Public IP Addresses
    • Default Email Settings
    • Scheduled Call Feature
      • How to create a Scheduled Call request
      • What CLI be presented to the called parties
      • How to check the progress of a Scheduled Call request
      • How to retrieve the call statistics for my Scheduled Calls
      • How to delete a queued Scheduled Call request
      • How many simultaneous Scheduled Calls can be in progress
      • How many Scheduled Call requests can be created
  • Service Creation
    • Node XML structure
    • Service XML structure
    • Custom Service Variables
    • Variable Scope
    • Node Security
    • Graphical Representation of a Sample Service
    • Sample Service XML
    • Sub Plans
    • Sub Plan Example XML
  • Web Service Authentication
  • Service Audio
  • Node Reference
    • Start
    • Page 1
  • Security Methods
  • Service Management Methods
  • Audio Management Methods
  • General Methods
  • File Management Methods
  • Real-Time Data Methods
  • Service Number Activation Methods
  • Number Group Methods
  • Account Methods
  • Payphone Barring
  • Dynamic Call Agent Methods
  • Tiff to Fax Methods
  • Call Barring Methods
  • Platform Logging Methods
  • Platform Logging
  • Data Tables
  • Scheduled Call
  • External Number Management Methods
  • Phone Book Management Methods
  • Origin List Management Methods
  • Private SIP Management Methods
  • Bulk Configuration
  • Appendix
Powered by GitBook
On this page

Was this helpful?

  1. Service Creation

Custom Service Variables

Custom Service Variables can be defined and used within a Service call flow. The variables are available to the whole Service XML including any sub plans.

These values can persist for the duration of the call or can be defined as global to persist the values for all calls to the service. If a Custom Service Variable has not been assigned a value prior to its use within the service flow or its assignment within the service flow is not valid, the DefaultValue attribute value will be used.

The CustomServiceVariables section must be placed inside the Service node under the Version element.

The name attribute must be unique within the list of variables, and it must begin with the “@” character. The name attribute can be up to a maximum of 100 characters.

The DefaultValue attribute value is mandatory. The value specified will be used to validate against the property values where the variable has been used.

Example

<CustomServiceVariables>
  <Variable Name="@Destination" DefaultValue="020123456789" Description="" Scope="Global" />
  <Variable Name="@Enabled" DefaultValue="true" Description="" Scope="Call" />
  <Variable Name="@BranchNodeID" DefaultValue="20" Description="" Scope="Call" />
</CustomServiceVariables>

Custom Service Variables can be used for the:

Mandatory Property value attributes

<MandatoryProperties>
    <Property Name="DestinationNumber" Value="@Destination"/>
    <Property Name="RingDuration" Value="30"/>
</MandatoryProperties>

Optional Settings Property value attributes.

 <Option Name="RestrictCLI">
   <Properties>
     <Property Name="Enabled" Value="@Enabled"/>
   </Properties>
 </Option>

Branch NodeID attribute values.

<Branches>
  <Branch Name="Continue" NodeID="@BranchNodeID"/>
</Branches>

Within the text of the Body and Subject in a node custom email settings.

<Property Name="Subject" Value="Call was made to @Destination"/>
<Property Name="Body" Value="Hi @Name, this is the email body"/>

Custom Service Variables can be assigned a value within a call flow by using:-

· The DTMF Capture node to assign a value captured by a caller via the telephone keypad.

· The response data returned from a Send Post node.

· The Set Variable node.

PreviousService XML structureNextVariable Scope

Last updated 2 months ago

Was this helpful?