Oh! Not this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CallManager.aspx.cs" Inherits="VoiceSite.CallManager" %>
<ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">
</ccxml>
But this:
CCXML.CCXMLControl control1 = new CCXML.CCXMLControl( );
control1.Controls.Add( new CCXML.Transition( CCXML.CCXMLEvents.Alerting , "evt" , "init" ) );
System.IO.StringWriter sw = new System.IO.StringWriter( );
control1.RenderControl( new HtmlTextWriter( sw ) );
which results in
<ccxml version="1.0">
<eventhandler>
<transition name="evt" state="’init’" event="connection.CONNECTION_ALERTING"></transition>
</eventhandler>
</ccxml>
A work in progress. :)