andrew_hoffi
andrew_hoffi

Reputation: 11

Twilio dial number with extra digits

Is it possible to dial the extra digits used with <gather> on the initial call, in affect bypassing the need to request the user to press numbers whilst in the call.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Gather action="handle-response.php" timeout="5" method="GET" numDigits="2">
        <Say>Enter your number</Say>
    </Gather>
    <!-- If customer doesn't input anything, prompt and try again. -->
    <Say>Sorry, I didn't get your response.</Say>
</Response>

So calling [YOURNUMBER]1234 the result would pass handle-response.php?From=X&To=X&Digits=1234

Upvotes: 1

Views: 223

Answers (1)

TwHello Inc
TwHello Inc

Reputation: 601

This is not possible. The answer is found by looking at the call logs in your Twilio account. As a test, I attempted dialing extra digits when calling one of my Twilio phone numbers and saw no indication that the extra digits were forwarded in any of the request parameters.

Upvotes: 1

Related Questions