Inbound Call Control
Introduction
Opentact offers versatile solutions for controlling inbound calls through two distinct methods: Call Flow XML and Call Control API. This section provides an overview of the Call Flow XML, a powerful tool for defining XML documents that intricately manage the flow of inbound calls.
Call Flow XML:
Static or Dynamic Hosting: Call Flow XML can be either hosted as a static document within Opentact or dynamically provided through a Call Flow webhook URL.
Interactive Manipulation with <Gather>: Within the Call Flow XML, Opentact introduces interactive manipulation using the <Gather>
tag. This feature prompts the callee to input a DTMF key. Once received, Opentact triggers a RESTful API specified by you, and based on the API's return, a new Call Flow XML is generated, tailoring the call flow to the specific user input.
Example Call Flow XML:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Thank you for calling Opentact.</Say>
<Record />
<Gather numDigits="1" attempts="2" timeout="10000" finishOnKey="*">
<Say>Now please enter a 1 for man, 2 for woman.</Say>
<Switch>
<Case dtmf="1">
<Say>Hi, man</Say>
<Callback url="https://webhook.site/8b27856b-b16b-4933-8be2-befcd24932f6"/>
</Case>
<Case dtmf="2">
<Say>Hi, woman</Say>
<Dial>
<Sip>[email protected]:9000</Sip>
</Dial>
</Case>
<Default>
<Say>Hi, nobody</Say>
<Callback method="post" url="https://webhook.site/8b27856b-b16b-4933-8be2-befcd24932f6" />
</Default>
<Error>
<Say>No DTMF Code entered.</Say>
</Error>
</Switch>
</Gather>
<Hangup />
</Response>
In this example, Opentact dynamically fetches a new Call Flow XML based on the received DTMF input, offering a tailored call experience. Explore the possibilities of interactive call control with Opentact's Call Flow XML.
Last updated
Was this helpful?