How can I display my Twilio number for inbound calls

夙愿已清 提交于 2019-12-11 21:24:58

问题


I want to display my Twilio line on my caller ID when I receive calls through this line, like Google Voice does. Does anyone know if this is possible and if so, how?

Thanks!


回答1:


Twilio evangelist here.

When you write the TwiML to place a call to a number, you can change the callerId attribute in the <Dial> TwiML tag. See the documentation here. The caller ID number has to be one you have verified with Twilio beforehand. You can verify numbers on your account portal here.

Here is an example of the TwiML you would need to write to change the caller ID:

<Response>
    <Dial callerId='+111111111111'>
        <Number>+122222222222</Number>
    </Dial>
</Response>

The number +111111111111 should be replaced with the callerId you want to appear on the phone you are ringing. I hope that helps!



来源:https://stackoverflow.com/questions/24297898/how-can-i-display-my-twilio-number-for-inbound-calls

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!