Opentact
  • Opentact Introduction
  • KEY CONCEPTS
    • Basic Concept
      • Voice Capability
        • Managing Inbound Calls
      • SMS Capability
      • Number Capability
    • Phone Number
      • Voice Enablement
      • SMS Enablement
      • TN Profile
        • Blacklist Caller ID
        • Whitelist Caller ID
    • SIP Control APP
      • Specify Remote Call Control URL
      • Specify Dialplan XML
    • SIP Trunking
    • Messaging
      • Quick Start Guide
      • Prepare Phone Numbers for SMS
    • SIP Connection
      • Associate SIP Connection with Phone Number
    • SIP Domain
      • Send Outbound Call with SIP Domain
      • Receive Inbound Call to SIP User
        • Web Call
        • Zoiper SIP Client
    • SIP Users
      • Create a SIPUser
      • Create a SIPUserInvite
    • Telecom Data
  • Opentact API Documentation
    • Opentact API Integration
      • API Environment
      • Opentact API keys
      • Passing Authentication
      • Authentication API
        • Example API Call
        • Authentiction with Gmail
    • TN Profile
      • Add and Remove Blacklist to TN Profile
        • Example API Call
      • Add and Remove Whitelist to TN Profile
        • Example API Call
    • Phone Number
      • Order Phone Number
        • Example API Usage
      • Release a Number
        • Example API Usage
      • Get all Purchased Numbers
      • Number Search
        • Example API Usage
    • SIP Connection
      • Remove Number from SIP Connection
      • Get Number for a SIP Connection
      • Update SIP Connections
      • Create SIP Conenctions
      • Delete SIP Connections
      • List SIP Connections
      • Assign Number to a SIP Connection
    • Messaging
      • Enable SMS on Numbers
      • Disable SMS on Number
      • Send SMS with Pool
      • Send SMS with Number
      • Receiving SMS
      • Retrieve Message Detail Records
      • Receiving Messaging Events
    • Log Retrieval
      • Retrieve Call Log
      • Retrieve SMS Log
    • Calling
      • Bridge two calls
      • Make Single Call
      • Make Bulk Call
        • Example API Call
    • SIP Domain
      • Create SIP Domain
      • Create SIP User
      • Deleting SIP User
      • Modify SIP User
    • Websocket Event Subscription
      • Create Subscription
      • Remove Subscription
      • Get Subscribed Events
        • Example API Call
  • Websocket Events
    • Event Websocket
    • Websocket Authentication
      • How to Authenticate to WSS
      • Authentication Response
      • Explanation of JSON response
    • Event Definition
      • Call Initiated
        • Example Event
      • Call Ringing
        • Example Event
      • Call Live
        • Example Event
      • Callflow
        • Example Event
      • Call Hangup
        • Example Event
      • Call Destroyed
        • Example Event
      • Call Bridged
        • Example Event
      • Call Answered
        • Example Event
      • Account events
        • Example Event
      • SMS events
        • Example Event
      • TN events
        • Example Event
      • Record Events
        • Example Event
      • Transcript
        • Example Event
      • General Event Fields
      • Example Event
  • Opentact XML
    • Overview
    • <Call/>
    • <Callback/>
    • <Geo/>
    • <Scheduler/>
    • <Play/>
    • <Say/>
    • <Hangup/>
    • <Pause/>
    • <Record/>
    • </Dial>
    • </Gather>
    • <Answer/>
    • <Hold/>
    • <Tone/>
    • <Error/>
    • <Default/>
    • <Meta/>
    • <Curl/>
  • How to build your Opentact Application
    • Introduction
    • Inbound Call Control
    • Opentact Events
    • Call Flow Control
      • Specify CallFlow for TN
        • Dynamic Call Flow XML
        • Basic Workflow
      • Handle Inbound Call
    • Send and Receive SMS
      • Life Cycle of SMS Delivery
      • Real-time SMS over Websocket
      • Send SMS via Restful API
    • Send and Receive SIP Calls
      • Create SIP User
      • Make Calls Between SIP User
      • Receive Calls as SIP User
  • Regulatory Compliance
    • 10DLC FAQs
    • Stir Shaken
  • SIP Trunking
    • Use Opentact for SIP Trunking
  • Webhook Event
    • Introduction
    • Test Webhook with Opentact
    • Event Definition
Powered by GitBook
On this page

Was this helpful?

  1. Opentact XML

<Pause/>

Introduction to <Pause/> Tag in Opentact XML

The <Pause/> tag in Opentact XML introduces a valuable mechanism for inserting pauses within a call flow, providing developers with precise control over the timing of call-related actions. This tag allows users to temporarily suspend the call for a specified duration, enhancing the flexibility of call handling. Let's explore the key features and usage examples of the <Pause/> tag:

Basic Usage:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <!-- The <Pause/> tag with a default length of 1 second -->
    <Pause/>
    <!-- Further call flow actions can follow here -->
</Response>

In this example, the <Pause/> tag is utilized with the default length of 1 second. It introduces a brief pause within the call flow, offering a momentary break before proceeding to subsequent actions.

Custom Pause Duration:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <!-- The <Pause/> tag with a custom length of 5 seconds -->
    <Pause length="5000"/>
    <!-- Subsequent call flow actions -->
</Response>

Here, the <Pause/> tag is configured with a custom length of 5 seconds, extending the duration of the pause to accommodate specific requirements.

Dynamic Pauses with DTMF Input:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Say>Leave a message after the tone or enter a # to stop recording</Say>
    <Record>
        <!-- Inserting a dynamic pause with a length of 60 seconds -->
        <Pause length="60000" dtmf_stop="#"/>
    </Record>
    <!-- Additional call flow actions -->
</Response>

In this scenario, the <Pause/> tag is incorporated within a recording operation, allowing callers to interact during the pause. The pause will last for 60 seconds unless the caller enters the specified DTMF code ("#"), enabling dynamic control over the call duration.

Additional Details:

  • The length attribute allows users to specify the duration of the pause in milliseconds. The default length is 1000 milliseconds (1 second).

  • The dtmf_stop attribute provides the option to halt the pause prematurely upon receiving specific DTMF input from the caller.

The <Pause/> tag provides a nuanced approach to managing call timing, offering versatility for creating engaging and interactive call flows tailored to specific scenarios.

Previous<Hangup/>Next<Record/>

Last updated 1 year ago

Was this helpful?