| CCXML 1.0-W3C Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">
<var name="initState" expr="'state_1'"/>
<var name="MyCallID"/>
<eventprocessor statevariable="initState">
<transition event="connection.alerting" state="state_1">
<assign name="MyCallID" expr="event$.connectionid"/>
<send data="'MyEvent'" target="session.id"/>
</transition>
<transition event="MyEvent">
<accept connectionid="MyCallID"/>
</transition>
<transition event="connection.connected" state="state_1">
<log expr="'***** CALL WAS ANSWERED *****'"/>
<dialogstart src="'ftp://[username]:[password]@[FTP server]/myRecording.wav&termdigits=*#'"
type="'application/x-recordaudio'"/>
</transition>
<transition event="error.dialog.notstarted'" state="state_1">
<log expr="'****** ERROR.DIALOGNOTSTARTED.NAME = ' + event$.name"/>
</transition>
<transition event="dialog.exit">
<log expr="'***** CALL EXITING *****'"/>
<exit/>
</transition>
<transition event="error.*">
<log expr="'Error: ' + event$.reason"/>
</transition>
</eventprocessor>
</ccxml>
| ANNOTATIONS: EXISTING POSTS |
SSA_PBSJ
|
|
| I had problems getting it to work using the example given in the syntax above. The term digit value wasn't functioning. I eventually got it to work by using the following:
src="'ftp://[uname]:[pword]@[ftpserver]/myRecording.wav?termdigits=#'" With the difference being using a question mark instead of the & as shown above. |
|
voxeoJohn
|
|
| Hi there,
Looks like you have uncovered a minor type-o in our documentation. I had to test it just to make sure and you are correct. This correct string should be as follows: src="'ftp://[uname]:[pword]@[ftpserver]/myRecording.wav?termdigits=#'" I will make sure the keepers of the 'docs' are notified of this and this is corrected in our next documentation update! Please let us know if there are any additional questions here, as we are always standing by to offer any assistance out developers may require! Regards, John D. Customer Engineer Voxeo Support |
| login |
|