Question

I have a following TwiML file :

<?xml version="1.0" encoding="UTF-8" ?>
 <Response>     
   <Say> Your call is going to transfer the Receptionist </Say>
     <Dial maxLength="180">
        <Number> 442-333-7271 </Number>
        <Gather numDigits = "9" action = "_actionURL" method="GET">
        <Say> Please press 9 </Say>
    </Gather>
    </Dial> 

According to above code i want to redirect the flow to _actionURL if receiver press 9 in between of call.

How should i do it?

Était-ce utile?

La solution

Try:

<?xml version="1.0" encoding="UTF-8" ?>
 <Response>     
  <Gather numDigits = "9" action = "_actionURL" method="GET">
   <Say> Your call is going to transfer the Receptionist, please press 9 to go somewhere else </Say>
   <Dial maxLength="180">442-333-7271</Dial>
  </Gather>
 </Response>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top