接收传真的我的控制器代码:
$twimlResponse = new \SimpleXMLElement("<Response></Response>");
$recieveEl = $twimlResponse->addChild('Receive');
$recieveEl->addAttribute('action', '/api/fax/received/file');
return response($twimlResponse->asXML(), 200)
->header('Content-Type', 'text/xml');
输入由上述代码定义的传入网络摘要
<?xml version="1.0"?>
<Response>
<Receive action="/api/fax/received/file"/>
</Response>
Twilio错误日志(警告消息)
Msg: XML Validation warning
line: 2
parserMessage: Invalid content was found starting with element 'Receive'. One of '{Play
ErrorCode:12200
cols:79
LogLevel:WARN
url:http://......./api/fax/incoming
https://www.twilio.com/docs/api/fax/quickstart#allow-twilio-to-talk-to-your-web-application