| CCXML Voxeo 1.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- NOTE THAT WE *MUST* DECLARE THE xmlns ATTRIBUTE -->
<ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">
</ccxml>
<?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0">
<var name="state0" expr="'init'"/>
<eventhandler statevariable="state0">
<transition event="call.CALL_INVALID" name="evt">
<exit/>
</transition>
<transition event="error.*" name="evt">
<log expr="'an error has occurred (' + evt.error + ')'"/>
<exit/>
</transition>
</eventhandler>
</ccxml>
<?xml version="1.0" encoding="UTF-8"?>
<!-- NOTE THAT WE *MUST* DECLARE THE xmlns ATTRIBUTE -->
<ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">
<var name="state0" expr="'init'"/>
<eventhandler statevariable="state0">
<transition state="'init'" event="ccxml.loaded">
</transition>
<transition event="call.CALL_INVALID" name="evt">
<exit/>
</transition>
<transition event="error.*" name="evt">
<log expr="'an error has occurred (' + evt.error + ')'"/>
<exit/>
</transition>
</eventhandler>
</ccxml>
<transition> handlers for the "connection.CONNECTION_CONNECTED" and "connection.CONNECTION_FAILED" events. This will allow us detect that the call has worked or failed. If it has failed, then we go on ahead and exit.
<?xml version="1.0" encoding="UTF-8"?>
<!-- NOTE THAT WE *MUST* DECLARE THE xmlns ATTRIBUTE -->
<ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">
<var name="state0" expr="'init'"/>
<eventhandler statevariable="state0">
<transition state="'init'" event="ccxml.loaded">
<assign name="state0" expr="'dialing'"/>
<createcall dest="'8315551234'"/>
</transition>
<transition state="'dialing'" event="connection.CONNECTION_CONNECTED">
</transition>
<transition state="'dialing'" event="connection.CONNECTION_FAILED">
<log expr="'Failed making outbound call'"/>
<exit/>
</transition>
<transition event="call.CALL_INVALID" name="evt">
<exit/>
</transition>
<transition event="error.*" name="evt">
<exit/>
</transition>
</eventhandler>
</ccxml>
<dialogstart> tag that we all know and love. We are also going to add a <transition> for the "dialog.exit" event that we know is coming. You can use any old document for the VoiceXML script. We will let you figure out what you want to use today.
<?xml version="1.0" encoding="UTF-8"?>
<!-- NOTE THAT WE *MUST* DECLARE THE xmlns ATTRIBUTE -->
<ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">
<var name="state0" expr="'init'"/>
<eventhandler statevariable="state0">
<transition state="'init'" event="ccxml.loaded">
<assign name="state0" expr="'dialing'"/>
<createcall dest="'8315551234'"/>
</transition>
<transition state="'dialing'" event="connection.CONNECTION_CONNECTED">
<assign name="state0" expr="'connected'"/>
<dialogstart src="'hello.vxml'" type="'application/xml+vxml;platform=motorola'" />
</transition>
<transition state="'dialing'" event="connection.CONNECTION_FAILED">
<log expr="'Failed making outbound call'"/>
<exit/>
</transition>
<transition state="'connected'" event="dialog.exit">
<log expr="'Thats all for now folks.'"/>
<exit/>
</transition>
<transition event="call.CALL_INVALID" name="evt">
<voxeo:sendemail to="'yourEmail@there.com'"
from="'myApp@here.com'"
type="'debug'"
body=" 'call.CALL_INVALID detected ! ' "/>
<exit/>
</transition>
<transition event="error.*" name="evt">
<log expr="'an error has occurred (' + evt.error + ')'"/>
<voxeo:sendemail to="'yourEmail@there.com'"
from="'myApp@here.com'"
type="'debug'"
body=" 'generic error detected ! ' "/>
<exit/>
</transition>
</eventhandler>
</ccxml>
| ANNOTATIONS: EXISTING POSTS |
voicequilt_prod
|
|
| What querystring parameters are passed by your outbound call servers in the request for the application's StartURL? | |
MattHenry
|
|
|
Hi there, Any parameters that you tack on to the initial request will be passed to the application itself. For instance, if your token request looks like this: http://session.voxeo.net/CCXML.start?tokenid=abc123&var1=foo&var2=bar ..and your start URL looks like this: http://myserver.com/myApp.php The the document that will be loaded is: http://myserver.com/myApp.php?var1=foo&var2=bar Does this answer your question? If not, just let us know. ~Matt |
|
steve.sax
|
|
| Greetings from the Voxeo Support team,
Did you still require assistance with this issue? We are happy to assist you, should you require, but if you feel that no further technical advice is required from us, do let me know, and I will close this ticket out. Regards, Steve Sax |
|
steve.sax
|
|
|
Greetings from the Voxeo Support team, We hope that you have received a sufficient response to your technical support inquiry. We assume that no further technical assistance is required, and as such, we are closing this ticket thread. If this judgement is in error, we invite you to reopen this ticket, and describe what additional help we can provide. Cheers, Steve Sax |
|
badlad
|
|
| Is there a way I can get the Voxeo session id put on the query string? I would like to pull it off in our start url just to help with debugging.
Bryan |
|
kallatclient
|
|
| Hi,
I plan to use CCXML to develop a web based conferencing application. The idea is the user enters two telephone numbers on a web page and clicks a submit button. Our web application triggers a CCXML token based application which makes two separate calls and joins them together. My question is, can i interrupt a running CCXML application from an http request? similar to the way we trigger a CCXML app. via http request. Can i control the execution of a running CCXML conference app. from an http server? An example scenario is two people are connected through a conference and credit balance of one person run's out. Now the server wishes to disconnect the application. How do i do that? Please explain. regards, Fayyaz Khan Lodhi |
| login |
|