Build the future of communications.
Start Building for Free

TwiML posts

  • By Niels Swimberghe
    What's new in the Twilio helper library for ASP.NET (v7.0.0 - November 2022) What's new in the Twilio helper library for ASP.NET (v7.0.0 - November 2022)

    The Twilio helper library for ASP.NET (Twilio.AspNet) is a community-driven open-source project to make integrating Twilio with ASP.NET easier, for both ASP.NET Core and ASP.NET MVC on .NET Framework. The library helps you achieve common use cases and with the release of version 7, we're expanding the library's capabilities and improving existing features.

    Wondering what was previously introduced? You can read about v6 and prior releases here.

    What's new in Twilio.AspNet v7.0.0

    V7.0.0 is a major release of the Twilio.AspNet library because it contains breaking changes.

    Here's an overview of the changes:

    🎉 NEW FEATURES

    • You can now use the ValidateTwilioRequestFilter to validate that HTTP requests originate from Twilio. This adds validation to endpoints including Minimal APIs.
    • You can also use the new ValidateTwilioRequestMiddleware to validate Twilio requests for when you can't use the [ValidateRequest] attribute or the ValidateTwilioRequestFilter.
    • There are new overloads for the TwiMLResult constructor and …
    Read More
  • By Alan Klein
    Wie registriere ich einen SIP-Client direkt bei Twilio Wie registriere ich einen SIP-Client direkt bei Twilio

    Hallo und danke fürs Lesen! Dieser Blogpost ist eine Übersetzung von Registering a SIP Phone Directly to Twilio (and so much more...).

    Mit Twilio Programmable Voice SIP Domains, manchmal auch SIP Interfaces genannt, können Sie Sprachanrufe über einen SIP-Endpunkt tätigen und empfangen, indem Sie sich direkt bei Twilio registrieren.

    Neben der Möglichkeit, sich direkt bei Twilio zu registrieren, haben Sie die Flexibilität, den Verbindungstyp zu wählen. Dies kann das herkömmliche öffentliche Telefonnetz (engl. Public switched telephone network PSTN), ein anderes registriertes SIP-Gerät (oft als SIP-Benutzeragent oder SIP-Client bezeichnet) oder sogar ein Endpunkt des Twilio Programmable Voice SDK sein.

    Darum geht es in diesem Blogbeitrag:

    • Registrierung eines SIP-Telefons direkt bei Twilio
    • Anrufe von einem registrierten SIP-Telefon tätigen und empfangen
    • Empfohlene Designansätze
    • Zwei verschiedene Methoden für die Bereitstellung von SIP-Domain-Telefonanrufen
    • Erläuterung der Vorteile von Twilio SIP-Domains

    Um diesem Artikel zu folgen, benötigen Sie:

    Read More
  • By Niels Swimberghe
    How to generate TwiML using Strings in C# Generate TwiML using Strings in C#

    Over the decades, C# has added different ways to create a string, each with their own benefit. In this tutorial, you'll learn how to generate TwiML using the different C# string features with an ASP.NET Core Minimal API and compare it to the object oriented way of generating TwiML.

    But first, let's get you up to speed on how Twilio uses webhooks and TwiML to respond to text messages and voice calls.

    Prerequisites

    Here’s what you will need to follow along:

    Read More
  • By Niels Swimberghe
    Use Raw String Literals to generate TwiML in C# 11 Use Raw String Literals to generate TwiML in C# 11

    Over the decades, C# added different ways to create a string, each with their own benefit, and C# 11 is adding another way: Raw String Literals. There are many use cases for Raw String Literals, and one of those use cases is to generate TwiML, but more on that later. In this tutorial, you'll learn how to generate TwiML with Raw String Literals with an ASP.NET Core Minimal API.

    Prerequisites

    Here’s what you will need to follow along:

    Read More
  • By Matthew Setter
    Make Phone Calls Using PHP and Twilio Programmable Voice Make Phone Calls Using PHP and Twilio Programmable Voice

    There are so many things that you can do in PHP, including creating websites, building command-line tools, generating images, encrypting and decrypting data, and scraping websites.

    But did you know that PHP can also make phone calls? Okay, not on its own it can't, but with the help of Twilio Programmable Voice, it can! In this tutorial, you're going to learn how.

    Prerequisites

    To follow along with this tutorial you will need the following:

    Set up your environment

    The first thing you need to do is to create a project directory and change into it. To do that, run the following commands.

    mkdir twilio-voice-call
    cd twilio-voice-call
    

    Next, create a new file named .env …

    Read More
  • By Miguel Grinberg
    Make a Phone Call from a Bash Script using Twilio Programmable Voice Make a Phone Call from a Bash Script using Twilio Programmable Voice

    Twilio Programmable Voice allows you to make voice calls directly from your application or script. In this tutorial, I’ll show you how to use it to make a voice call that plays a text-to-speech message from Bash or other shell scripting languages.

    Prerequisites

    This tutorial is written for Unix shells such as Bash, Zsh, etc. If you are following the tutorial on a Microsoft Windows computer, it is recommended that you work inside the Windows Subsystem for Linux (WSL).

    Set up your environment

    In this section you are going to set up a brand …

    Read More
  • By Ashley Boucher
    How Your Nonprofit Can Accept Mobile Donations Using Twilio Copy of 04. Execboard member announcement (1200 x 630 px) (2)

    Mobile donations are one tool you can use to encourage support of your non-profit organization. Supporters can donate directly over the phone using an automated system, powered by Twilio Voice.

    In this article, you’ll be building an app that responds to incoming calls by asking callers to enter a donation amount and then their credit card information. This information will be captured by your payment processor to complete the charge.

    To start accepting mobile donations, follow along with this article.

    Prerequisites

    To get started with this tutorial, you’ll need the following:

    Read More
  • By Niels Swimberghe
    What's new in the Twilio helper library for ASP.NET (v5.73.0 - April 2022) What's new in the Twilio helper library for ASP.NET (v5.73.0 - April 2022)

    The Twilio helper library for ASP.NET (Twilio.AspNet) is a community-driven open-source project to make integrating Twilio with ASP.NET easier, for both ASP.NET Core and ASP.NET MVC on .NET Framework. The library helps you with very common use cases like:

    • Responding to Twilio webhook requests with TwiML objects from the official Twilio SDK for C# and .NET.
    • Binding data from Twilio webhook requests to strongly typed .NET objects.
    • Validating webhook requests originate from Twilio and rejecting them if not.

    As .NET and ASP.NET is evolving, the Twilio.AspNet contributors are enhancing the library to take advantage of the newest capabilities and best practices. So what's new?

    What's old in Twilio.AspNet

    Actually, before I share the shiny new additions, let me share what is already part of the library. After all, this is the first blog post to share news about the library.

    Handle Twilio webhook requests with ASP.NET

    In previous versions …

    Read More
  • By Dominik Kundel
    Twilio番号に届いたSMSを転送する方法 Twilio番号に届いたSMSを転送する方法

    この記事はDomink Kundelこちらで公開した記事(英語)を日本語化したものです。

    Twilioの電話番号から携帯電話にSMSを転送するシナリオは、多くあります。本稿では、TwiML Binとそのテンプレート機能で、着信メッセージをSMS対応の任意の電話番号に転送する方法をご紹介します。

    作業を始めるには、以下の項目が必要です。

    • Twilioのアカウント。Twilioホームページをブラウザで開き、[今すぐ無料サインアップ]ボタンをクリックするか、Twilioアカウントの作成リンクからサインアップします。このリンクを使用するとアカウントのアップグレード時に$10(米国ドル)相当分のクレジットが追加で付与されます。

    TwiMLコードを記述する

    新しいTwiML Binを作成します。

    Twilioの開発者コンソールのTwiML Binを開きます。

    Create new TwiML Binまたは+ボタンをクリックします。

    TwiML Bin設定画面

    TwiML Bin設定画面

    [FRIENDLY NAME]に「SMS転送」などの名前を入力し、[TWIML]に以下のコードを貼り付けます。

    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
      <Message to="+81{XXXXXXXXXXXX}">
        {{From}}: {{Body}}
      </Message>
    </Response>
    

    +81{XXXXXXXXXXXX}を転送先の電話番号に置き換えます。こ …

    Read More
  • By Niels Swimberghe
    How to create an inbound Phone Proxy without any code using TwiML Bins How to create an inbound Phone Proxy without any code using TwiML Bins

    You can quickly buy phone numbers from around the world using Twilio's Super Network. You can even specify area codes to buy a phone number that is local to a certain state, territory, or region. Combining that with Twilio Programmable Voice and Twilio Programmable SMS, you can quickly build a proxy phone number!

    A proxy phone number is a public phone number hiding your real phone number that you, ideally, would want to keep private. When the proxy phone number is dialed or receives an SMS, it will be forwarded to your private phone number.

    Why is this useful? Privacy; because:

    • You may not want to hand over your real phone number to marketeers, when signing up for services, etc. Instead, give out your proxy phone number and, if you desire, swap to a new proxy phone number as needed.
    • Maybe you are a streamer who takes …
    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.