【发布时间】:2021-07-09 11:19:55
【问题描述】:
我们有一个包含许多用户(店主)的订单状态系统。所有人都由我自己分配了 Nexmo 编号——我们拥有的编号——并且都链接到我自己的应用程序,该应用程序连接到我们的数据库,存储来自我们所有商店的所有订单信息。每个用户都会将他们的电话号码发布给他们的客户,或者将他们链接到他们自己的 VOIP 系统中,以便根据请求转移到他们分配的 Nexmo 号码。我们的代码将查看拨打的号码('to')和来自呼叫者 ID 的号码('from'),以确定从我们的数据库向用户查询哪些记录。
这是我的 Laravel 代码。它一直停止工作。一些用户在呼叫开始时什么也听不到,其他用户只听到第一部分。此后,按键提示适用于所有用户,只有初始语音和流无法正常工作。知道突然有什么问题吗?
$store = $this->st_manager->find_record_by_nexmo_num(Input::get('to'));
$store_name = $store['store_name'];
$from = $_GET['from'];
$store_phone = "1" . $store['store_phone'];
if ($from == $store_phone) {
$link_to_audio = "https://example.com/press_pound_with_no_caller_id.mp3";
} else {
$link_to_audio = "https://example.com/press_pound_with_caller_id.mp3";
}
return [
[
'action' => 'talk',
'voiceName' => 'Matthew',
'level' => '1',
'bargeIn' => 'true',
'text' => "Welcome to the $store_name automated order status system",
],
[
'action' => 'stream',
'bargeIn' => 'true',
'level' => '1',
'streamUrl' => ["$link_to_audio"],
],
[
'action' => 'input',
'bargeIn' => 'true',
'eventUrl' => [
route('main.nexmo.event') . '?from=' . Input::get('from') . '&to=' . Input::get(
'to'
)
],
'timeOut' => 150,
'submitOnHash' => true,
'maxDigits' => 11,
]
]; ```
【问题讨论】:
-
嘿,你能不能打个电话给支持,让他们仔细看看你的应用程序和它的日志?代码对我来说看起来不错。
-
过去 3 天我一直在跟踪他们。
-
我看看
标签: vonage