问题描述
我需要将当前呼叫转移到另一个号码,我仍然无法成功。
我正在尝试使用 twiML 转接电话。
public function ForwardingCall($call_sid,$to_number)
{
$callInstance = $twilioClient->calls($call_sid)
->update([
'url' => route('api.webphone.routeCall',$to_number),//url to method below
'method' => 'POST'
]);
return $callInstance;
}
public function routeCall($to_number)
{
$xml = "<Response><Dial>{$to_number}</Dial></Response>";
return response()->xml($xml);
}
当我尝试执行它时,调用已完成且未转移
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)