.NET
ボイスビューの追加
の中で Views というサブディレクトリを作成する。 Voice.での Voice ディレクトリに index.cshtml ファイルには以下の内容が含まれている:
の中身を入れ替える。 Index.cshtml と:
@using (Html.BeginForm("MakePhoneCall", "voice", FormMethod.Post))
{
<div class="form-vertical">
<h4>Call<h4>
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.Label("To")
<div>
@Html.Editor("toNumber", new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
<div class="form-group">
@Html.Label("From")
<div>
@Html.Editor("fromNumber", new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="submit">Send</button>
</div>
</div>
</div>
}
@if(@ViewBag.Uuid != null){
<h2>Call UUID: @ViewBag.Uuid</h2>
}
.NETで通話中に音声を再生する
PSTN通話に音声を流すアプリの作り方を紹介するチュートリアル
手順
1
このチュートリアルの紹介2
Prerequisites3
.NET 音声アプリケーションの作成4
Vonageドットネットをインストールする5
音声コントローラーの追加6
メイク・コール・アクションの追加7
着信ルートを追加する8
ボイスビューの追加9
スタートアップ・ルートの設定10
ASP.NETアプリの設定11
.NETアプリの実行12
次はどうする?