首页 > 解决方案 > Twilio SMS 网关中的电话号码无效

问题描述

截屏

我正在使用 Twilio SMS 网关。我正在使用印度国家代码 +91 和我的印度电话号码。我收到一个错误,如屏幕截图所示。

这是我的代码:

<?php
require __DIR__ . '/vendor/autoload.php';
use Twilio\Rest\Client;
$account_sid = '#######################';
$auth_token = '#######################';
$twilio_number = '+91**********';
$client = new Client($account_sid, $auth_token);
$client->messages->create(
// Where to send a text message (your cell phone?)
'+91**********',
array(
    'from' => $twilio_number,
    'body' => 'I sent this message in under 10 minutes!'
)
);

?>

谁能帮忙,为什么我会收到这个错误?

标签: phptwilio-api

解决方案


如果您的项目仍处于试用模式,您需要将目标电话号码添加到您的 twillio 帐户仪表板中的已验证来电显示

https://www.twilio.com/console/phone-numbers/verified


推荐阅读