Twilio Inbound Messages showing as 'No Incoming Messages' even though SMS has been sent to that Twilio number

风流意气都作罢 提交于 2019-12-14 03:09:25

问题


I'm trying to use Twilio to create an automated test which includes a one-time-password (OTP) sent via SMS for my organization.

General Flow:

  1. User signs up, inputting phone number
  2. User receives OTP (from Nexmo's Verify) via SMS
  3. User inputs the OTP received

The idea for me to automate this is to have my test script inputting the Twilio phone number, calling the Twilio SMS API (doc: https://www.twilio.com/docs/sms/api/message-resource), extracting the OTP from the message and inputting it into the application.

The issue here is that no incoming messages are being shown on my Twilio console.

I have also configured the Twilio phone number to a TwiML Bin, whenever a message is received:

<?xml version="1.0" encoding="UTF-8"?>
<Response></Response>

I have tried this with both Malaysian +60 and Australian +61 Twilio phone numbers.


回答1:


Twilio developer evangelist here.

I'm not particularly familiar with Nexmo's Verify, but from a look at their product pages it suggests that verification messages will be sent from a short code. Twilio numbers cannot receive messages from short codes. This is likely why you can't see any inbound messages for your number.



来源:https://stackoverflow.com/questions/54123942/twilio-inbound-messages-showing-as-no-incoming-messages-even-though-sms-has-be

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