2017-03-02 39 views
2

我可以用twilio发送额外的数据与采集的数字。我试图达到的目的是,如果有人发送说HELP的文本,我们会打电话给支持团队,并要求他们我们已收到短信,如果他们想要通话然后按1,如果他们按1,我们将能够拨打我们收到短信的电话号码。Twilio后收集的数字与其他细节

我检查twilio例子,它发送的收集数字的POST,可我交的更多详细信息,所以一个电话将在此处进行

<Response> 
    <Gather numDigits="1" action="callback.php" method="POST">//I would like to send phone number to be called in this post request 
     <Say>We have received a text for help ,to speak with the person press 1. </Say> 
    </Gather> 
</Response> 

回答

2

Twilio布道者。

可以传递更多的数据作为操作URL查询字符串参数:

<Response> 
    <Gather numDigits="1" action="callback.php?phone=15555555555" method="POST"> 
     <Say>We have received a text for help ,to speak with the person press 1.</Say> 
    </Gather> 
</Response> 

希望有所帮助。

+0

谢谢,解决了这个问题 –