Inbound Call Control
Introduction
Call Flow XML:
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>Last updated