転送通話記録をサーバーに送信する方法を誰か説明できますか? Nexmoを使用しています。
これが私がanswer_url
パラメータのために持っているものです:
<vxml version = "2.1">
<form id="CallTransfer">
<block>
<prompt>Hello</prompt>
</block>
<transfer name="MyCall" dest="tel:+'.$number.'" bridge="true" connecttimeout="20s"/>
<record name="recording" beep="false" finalsilence="3s" maxtime="240s">
<catch event="connection.disconnect.hangup">
<submit next="http://'.$_SERVER['SERVER_NAME'].'/api/save_call/'.$history_id.'" method="post" namelist="recording" enctype="multipart/form-data"/>
</catch>
<filled>
<submit next="http://'.$_SERVER['SERVER_NAME'].'/api/save_call/'.$history_id.'" method="post" namelist="recording" enctype="multipart/form-data"/>
</filled>
</record>
</form>
</vxml>
しかし、空の $_FILES 配列を に送信します/api/save_call
。
また、質問があります。最初に abonent が電話に出たときに開始し、2 番目に電話が切れたときに終了する通話記録を取得することは可能ですか?