자동 응답기를 만들려고합니다. Nexmo를 사용하고 있습니다.Voicexml : <record> 제출 음성 메시지 잘림
나는 두 숫자가 : 하나 개의 프랑스어 번호 및
내 프랑스어 번호 전화
, 내 음성 메시지가 내 서버에 하나의 미국 수 (캘리포니아) 저장을하고 나는 그것을들을 수 있습니다. 그러나 미국 번호 (US Number)로 전화를 걸면 내 프롬프트를들을 수 있지만 저장된 오디오 메시지는 올바르게 저장되지 않습니다. 왜, 어떤 생각인지 모르겠다.phone.php
<?php
// accept both query string and post
$request = array_merge($_GET, $_POST);
error_log('got a call from: ' . $request['nexmo_caller_id']);
// make the XML short tag friendly
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<vxml version = "2.1">
<form>
<record name="message" beep="true" maxtime="60s" dtmfterm="true">
<audio src="./welcome.wav"/>
</record>
<catch event="connection.disconnect.hangup">
<submit next="./recphone.php" enctype="multipart/form-data" method="post"/>
</catch>
</form>
</vxml>
recphone.php
<?php
if(!isset($_FILES['message'])){
return; //not a post from our script
}
switch($_FILES['message']['error']){
case UPLOAD_ERR_OK:
move_uploaded_file($_FILES['message']['tmp_name'], './recordings/' . $_FILES['message']['name']);
$prompt = 'Thanks, your message has been saved.';
break;
default:
$prompt = 'Sorry, we could not save your message.';
}
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<vxml version="2.1">
<form>
<block>
<prompt><?php echo $prompt ?></prompt>
</block>
</form>
</vxml>
https://github.com/guillaumeteillet/ivr-guillaume-teillet가 나는 오디오 파일이 생성되는 것을 의미하지만, 그것은 단지 약간의 소음, 내 메시지의없는 내용입니다. 프랑스어 번호에 1) 프랑스 : 프랑스어 번호 2) Skype를 작동 : 여기 내 테스트입니다 번호 미국 4) Skype를 FAIL : 번호 미국) 미국 3 FAIL 를 FAIL하지만 호출하는 경우 내 VoiceXML 파일 voxeo.com과 함께 작동 ... 나는이 번호를 가지고 : 19093431653, 그것은 음성/SMS 번호. 나는 이미 nexmo에게 메시지를 보냈고 그들은 내 문제를 조사하고있다. – Guillaume