TeXML Bin Simple Voicemail and Call Forwarding

TeXML is an XML-based data structure you can use to control calls with Telnyx and is the quickest way to get started with Call Control using a simple .xml file, allowing you to specify call instructions in your file using commands called verbs and nouns. TeXML Translator starts at the top of your TeXML file and executes your TeXML commands sequentially in the order they are arranged in the file.

In this guide, you'll learn how to setup a simple voicemail and call forwarding TeXML application using Telnyx Call Control.

This tutorial assumes you've already set up your developer account and environment and you know how to send commands and receive webhooks using Call Control.

Let's get started:

Step 1: Create your XML

In order to create XML documents, you can use the new TeXML editor in the Mission Control Portal. You'll find the TeXML editor by navigating to the Call Control section on the left menu and selecting 'TeXML Bin'.

Simple Voicemail Set simple voicemail with TeXML Bin

Simple Voicemail

Copy
Copied
    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
       <Say>Thank you for calling YYZ co. Please leave a message.</Say>
       <Record playBeep="true" finishOnKey="*9" />
    </Response>

Note: After pasting the above content, Kindly check and remove any new line added

Simple Call Forward

Copy
Copied
    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
       <Dial>
      <Sip>[email protected]</Sip>
      <Sip>[email protected]</Sip>
      <Sip>[email protected]</Sip>
       </Dial>
    </Response>

Note: After pasting the above content, Kindly check and remove any new line added

Step 2: Set up your XML application in Mission Control

You can set up your XML application using the url provided in the TeXML bin editor.

Note, this features is only available at our anchorsite in Ashburn, VA, so your application will need to be anchored to this site.

Editing your TeXML Application

Editing your TeXML Application

Set your Anchorsite

Set your Anchorsite to Ashburn, VA

Step 3: Test your Application

Test your application by:

  1. Assigning a phone number to the application

Assigning a number to an application

Assigning a number to an application

  1. Dialing the number from the PSTN and leave a message
  2. Retrieving your voicemail

Retrieving your Voicemail

Retrieving your Voicemail

And that's it! If you have any questions about this tutorial or any of our products, reach out to our support team through the chat in the bottom right hand corner.