Created
November 9, 2011 19:08
-
-
Save johntdyer/1352554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ccxml xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml" version="1.0"> | |
<meta name="author" content="John Dyer"/> | |
<meta name="maintainer" content="jdyer@voxeo.com"/> | |
<var name="conn_id"/> | |
<var name="dialog_id"/> | |
<var name="my_var"/> | |
<var name="caller_id"/> | |
<var name="called_id"/> | |
<eventprocessor> | |
<transition event="connection.alerting"> | |
<assign name="application.called_id" expr="event$.connection.local"/> | |
<assign name="application.caller_id" expr="event$.connection.remote"/> | |
<assign name="conn_id" expr="event$.connectionid"/> | |
<accept connectionid="conn_id"/> | |
</transition> | |
<transition event="connection.connected"> | |
<log expr="'*** called_id = ' + application.called_id"/> | |
<log expr="'*** caller_id = ' + application.caller_id"/> | |
<log expr="'**** STARTING DIALOG TO CONNECTION ID ' + conn_id"/> | |
<var name="caller_id" expr="application.caller_id"/> | |
<var name="called_id" expr="application.called_id"/> | |
<dialogstart src="'http://staging.ivr.spectruminc.info/vxml.aspx'" type="'application/voicexml+xml'" connectionid="conn_id" dialogid="dialog_id" namelist="caller_id called_id"/> | |
</transition> | |
<transition event="dialog.exit"> | |
<log expr="'**** DIALOG COMPLETE'"/> | |
<exit/> | |
</transition> | |
<transition event="error.*"> | |
<log expr="'**** ERROR - REASON: ' + event$.reason"/> | |
<exit/> | |
</transition> | |
<transition event="connection.disconnected"> | |
<!-- send to unconditionally end a runaway session --> | |
<send name="'user.kill.unconditional'" target="session.id" delay="'60s'"/> | |
</transition> | |
<transition event="user.kill.unconditional"> | |
<log expr="'**** UNCONDITIONAL KILL - EXITING SESSION'"/> | |
<exit/> | |
</transition> | |
<transition event="connection.failed"> | |
<log expr="'**** CONNECTION FAILED - REASON: ' + event$.reason"/> | |
<exit/> | |
</transition> | |
</eventprocessor> | |
</ccxml> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment