Search code examples
twiliophone-call

Forward a call to a conference call number with hashtag and extension using Twilio


I have set up a phone number on Twilio that is forwarding a call successfully. Now I want to set up something like Webex as the target number where it's necessary to send extension digits and hashtags (in order to choose the right conference ID, in this example with Webex).

I couldn't get this set up in Twilio, all attempts via Studio Flow or with custom Functions didn't work out.

I guess my actual question at this time would be: is that even possible? Can voice calls be forwarded in that way? By now I doubt it but I'm struggling to google my way to a confirmation.


Solution

  • Twilio developer evangelist here.

    You can send digits to the call using the <Number> element within a <Dial>.

    <Number> has the sendDigits attribute which you can use to send DTMF tones to the call. You can add w for a 0.5s delay and then the numbers. For example:

    <?xml version="1.0" encoding="UTF-8"?>
    <Response>
        <Dial>
            <Number sendDigits="wwww1928">
                415-123-4567
            </Number>
        </Dial>
    </Response>
    

    will wait 2 seconds (4 * 0.5s) and then dial 1928.

    Let me know if this helps at all.