« Back to VXML-API

Date Time with VXML

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
 
I want to use different prompts and transfer audio files depending on the actual time.
(different audio on night and on day)
 
I found a sample config with:

<object name="dtfield" classid="datetime">
.....
 
but the vxml gives me an error. I can´t find a docuimentation or a tutorial for cisco routers.
 
Has anyone experience with this toipc ?
 
regards
Patrick
 
 
 

OK,
 
This could be a solution. JavaScript could be useful :
 
<pre><?xml version="1.0"?>
<vxml version="2.1"
xmlns="http://www.w3.org/2001/vxml">

<var name="utc_month" />
<var name="utc_day" />
<var name="utc_year" />

<script>
<![CDATA[
// explicitly declare d using var
var d = new Date();
// store the month
utc_month = d.getUTCMonth();
// store the day of the month
utc_day = d.getUTCDate();
// store the year including the century
utc_year = d.getUTCFullYear();
]]>
</script>
</vxml>



Can I use C# or ASP.NET to generate a vxml File for the Cisco Router ?

Regards
Patrick



</pre>