Bug Vanquisher

14 December 2008

CCXML Meets ASP.NET

Filed under: Dev inside! — Tanveer Badar @ 12:50 AM

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. :)

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: