65.9K
CodeProject is changing. Read more.
Home

Configuring and Recording Voice with Cisco and ASP.NET (VXML)

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.53/5 (9 votes)

May 31, 2006

viewsIcon

24931

How to configure and record voice with Cisco and ASP.NET, using VXML.

Introduction

This article explains how configure a Cisco device and record voice on an HTTP server.

Using the code

Shown here is a sample configuration for a Cisco device which is voice enabled on one port:

.
.
.
call application voice vxml flash:1:/http_rec.vxml
!

voice-port 0/0
 supervisory disconnect dualtone mid-call
 supervisory answer dualtone
 pre-dial-delay 2
 no battery-reversal
 input gain 14
 output attenuation -6
 echo-cancel coverage 32
 timeouts interdigit 2
 timeouts call-disconnect 1
 timeouts wait-release 3
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 100 pots
 application vxml
 incoming called-number .
 direct-inward-dial
 port 0/0
!
.
.
.

Now, create a VXML file for the Voice application (http_rec.vxml):

After that, you should create an ASP.NET project and add a record.aspx file to this project. I the code-behind, add this code in the Page_Load method:

Request.Files["myrec"].SaveAs(@"first.au");

Points of Interest

If you want to learn more about VXML, read: Cisco VoiceXML Programmer’s Guide.

History

  • 21/05/2006: A simple voice recording on an HTTP server with a Cisco device.