Skip to content

Instantly share code, notes, and snippets.

@hunnycode
Last active August 29, 2015 13:56
Show Gist options
  • Save hunnycode/9016546 to your computer and use it in GitHub Desktop.
Save hunnycode/9016546 to your computer and use it in GitHub Desktop.
<?php
header("content-type: text/xml");
// 発信者番号を取得します。
$tel_from = $_POST['From'];
// 録音ファイルのURLを取得します。
$recording_url = $_POST['RecordingUrl'];
?>
<Response>
<?PHP if (!empty($recording_url)): ?>
<Say language="ja-jp">録音内容を確認してください。</Say>
<Play><?PHP echo $recording_url ?></Play>
<?PHP else: ?>
<Say language="ja-jp">録音します。</Say>
<Record />
<?PHP endif ?>
</Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment