简体   繁体   English

Laravel 8 Nexmo 使用 nexmo.sms_from 动态配置发送到国际号码

[英]Laravel 8 Nexmo sending to international numbers with nexmo.sms_from dynamic config

I'm using version 2.5.1 of the nexmo-notification-channel which I see is now known as the vonage-notification-channel.我正在使用 2.5.1 版的 nexmo-notification-channel,我看到它现在被称为 vonage-notification-channel。 I'm based in the UK and have customers globally, I have set my sms_from to be the following:我位于英国,在全球拥有客户,我已将我的 sms_from 设置为以下内容:


'nexmo' => [
    'sms_from' => 'DomainMonit',
]

A change happened on 1st March 2022 beyond my control whereby sending to US numbers now requires the use of a toll-free number as described here. 2022 年 3 月 1 日发生了我无法控制的变化,现在发送到美国号码需要使用此处所述的免费电话号码。

Currently, my sms_from works perfectly fine for sending to UK based numbers, but, I'm going to need to buy a toll-free number, and somehow configure the sms_from to use the toll-free number for specific US customers (I have a column in my database I can utilise to get country), how can I change the sms_from dynamically to support this?目前,我的 sms_from 非常适合发送到英国号码,但是,我需要购买一个免费电话号码,并以某种方式配置 sms_from 以将免费电话号码用于特定的美国客户(我有一个我可以利用数据库中的列来获取国家/地区),如何动态更改 sms_from 以支持此功能?

All SMS sent to the US must originate from either a US pre-approved long number, registered toll-free, 10 DLC, or short code that is associated with your Vonage account.发送到美国的所有 SMS 必须来自美国预先批准的长号码、注册的免费电话、10 DLC 或与您的 Vonage 帐户关联的短代码。 Alpha Sender IDs are not supported.不支持 Alpha 发件人 ID。

I'm using: laravel/nexmo-notification-channel 2.5.1我正在使用: laravel/nexmo-notification-channel 2.5.1

Just for clarification - can you let me know if you are actually using the nexmo-notification-channel or the vonage-notification-channel?只是为了澄清 - 如果您实际使用的是 nexmo-notification-channel 或 vonage-notification-channel,您能告诉我吗?

Because the difference is quite important in that they use different versions of the underlying Core Vonage library.因为差异非常重要,因为它们使用不同版本的底层 Core Vonage 库。

Apologies for the answer- I can't use comment because of rep.为答案道歉-由于代表我不能使用评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM