Skip to main content

TeXML Bin Simple Voicemail and Call Forwarding

TeXML Bin allows users to upload TeXML files to storage and use it for call flows without having to code. Developers can quickly and easily add programmable voice features into applications without having to worry about setting up application servers.

TeXML is an XML-based data structure you can use to control calls with Telnyx and is the quickest way to get started with Programmable Voice 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 start using TeXML Bin and configure a simple voicemail and call forwarding TeXML application using Telnyx’s Voice API.

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

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 Programmable Voice section on the left menu and selecting 'TeXML Bin'.

Simple Voicemail Set simple voicemail with TeXML Bin

Simple voicemail

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

Simple call forward

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

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.

Editing your TeXML Application

Editing your TeXML application

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.

On this page