即使 SMS 已发送到该 Twilio 号码,Twilio 入站消息仍显示为“无传入消息" [英] Twilio Inbound Messages showing as 'No Incoming Messages' even though SMS has been sent to that Twilio number

查看:39
本文介绍了即使 SMS 已发送到该 Twilio 号码,Twilio 入站消息仍显示为“无传入消息"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Twilio 创建一个自动化测试,其中包括通过 SMS 为我的组织发送的一次性密码 (OTP).

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

一般流程:

  1. 用户注册,输入电话号码
  2. 用户通过短信接收 OTP(来自 Nexmo 的验证)
  3. 用户输入收到的 OTP

我的想法是让我的测试脚本输入 Twilio 电话号码,调用 Twilio SMS API(文档:https://www.twilio.com/docs/sms/api/message-resource),从消息中提取 OTP 并将其输入到应用程序中.

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.

这里的问题是我的 Twilio 控制台上没有显示没有传入消息.

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

我还将 Twilio 电话号码配置到 TwiML Bin,每当收到消息:

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

我已尝试使用马来西亚 +60 和澳大利亚 +61 Twilio 电话号码进行此操作.

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

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

我对 Nexmo 的验证不是特别熟悉,但从他们的产品页面来看,它表明验证消息将通过短代码发送.Twilio 号码无法接收来自短代码的消息.这可能是您看不到您号码的任何入站消息的原因.

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.

这篇关于即使 SMS 已发送到该 Twilio 号码,Twilio 入站消息仍显示为“无传入消息"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆