Last active
August 29, 2015 13:56
-
-
Save hunnycode/9016546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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