为什么我没有收到我购买的 twilio 号码的消息?

why i m not receiving message with my twilio number which i bought?

当收到来自我的 twilio 帐户的消息时。 我收到了不同号码的消息,比如 400012 或 641011 这样的 但不是我用来发送消息的 twilio 号码在我收到消息时没有显示在我的收件箱中

我可以做些什么,以便每当有人从我的 twilio 号码收到消息时,收件箱中显示的号码也是 twilio 号码吗?

 var client = new twilio.RestClient(twilio_account_sid, twilio_auth_token);

            client.messages.create({
                body: msg,
                to: to,  // Text this number
                from: twilio_number // From a valid Twilio number
            }, function(err, message) {
                if(err) {
                    console.error(err.message);
                }else{
                    console.log("here send sms ... ... ...");
                }
            });

我的代码和上面一样简单

此处为 Twilio 开发人员布道师。

从 Twilio 号码向某些国家/地区发送消息时存在一些限制。印度特别严格,不会让你保留原来的号码。用户仍然可以向您的 Twilio 号码发送消息,他们只会从您共享的短号码接收消息。

您可以在 this support article and by checking out the SMS guidelines for India 中阅读有关向印度发送消息的限制。

您需要发送到的其他国家/地区的限制会有所不同。例如,in Malaysia your long code phone number is preserved. Check out the restrictions for your countries here: https://www.twilio.com/sms/guidelines

如果有帮助请告诉我。