| CallXML 2.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8"?>
<callxml version="2.0">
<call value="tel:1112223333"
maxtime="60"
voxeo-cpa-maxsilence="1"
voxeo-cpa-maxtime="4"
voxeo-cpa-runtime="20"
voxeo-cpa-maskstop="human, machine, beep"
voxeo-cpa-maskevent="human, machine, beep"/>
<onanswer next="#waitBlock">
<log value="*** Call has been answered ***" />
</onanswer>
<block label="waitBlock">
<wait value="60"/>
<exit/>
</block>
<oncparesult type="human">
<log value="*** HUMAN DETECTED ***"/>
<exit/>
</oncparesult>
<oncparesult type="machine">
<log value="*** MACHINE DETECTED ***"/>
<exit/>
</oncparesult>
<oncparesult type="beep">
<log value="*** BEEP DETECTED ***"/>
<exit/>
</oncparesult>
<oncparesult type="unknown">
<log value="*** CPA RUNTIME EXPIIRED ***"/>
<exit/>
</oncparesult>
<onerror>
<log value="*** $session.lasterror; ***"/>
<text>
A naughty error has occured.
This application will now gracefully bow out.
</text>
</onerror>
</callxml>
<?xml version="1.0" encoding="UTF-8"?>
<callxml version="2.0">
<call value="tel:1112223333"
maxtime="60"
voxeo-cpa-maxsilence="1"
voxeo-cpa-maxtime="4"
voxeo-cpa-runtime="300"
voxeo-cpa-maskstop=""
voxeo-cpa-maskevent="machine, beep"/>
<onanswer next="#waitBlock">
<log value="*** Call has been answered ***" />
</onanswer>
<block label="waitBlock">
<wait value="60"/>
<exit/>
</block>
<block label="playMessage" repeat="2" next="#messageComplete">
<playaudio value="message.wav"/>
</block>
<block label="messageComplete">
<log value="*** MESSAGE COMPLETE / EXIT ***"/>
<exit/>
</block>
<oncparesult type="human" next="#playMessage">
<log value="*** HUMAN DETECTED ***"/>
</oncparesult>
<oncparesult type="machine" next="#playMessage">
<log value="*** MACHINE DETECTED ***"/>
</oncparesult>
<oncparesult type="beep" next="#playMessage">
<log value="*** BEEP DETECTED ***"/>
</oncparesult>
<oncparesult type="unknown">
<log value="*** CPA RUNTIME EXPIIRED ***"/>
<exit/>
</oncparesult>
<onerror>
<log value="*** $session.lasterror; ***"/>
<text>
A naughty error has occured.
This application will now gracefully bow out.
</text>
</onerror>
</callxml>
| ANNOTATIONS: EXISTING POSTS |
grevs
|
|
| The cpa values seem really low for the .php example
I was only able to achieve success in this example by using the suggested values from earlier in the example: <call value="14165551212" voxeo-cpa-version="2.0" voxeo-cpa-runtime="15000ms" voxeo-cpa-maxtime="5000ms" voxeo-cpa-maxsilence="1200ms" voxeo-cpa-maskevent="human,machine,beep,faxtone" voxeo-cpa-maskstop="human,machine,beep,faxtone" /> |
|
Michael.Book
|
|
| Howdy "grevs,"
My apologies for the confusion. This is simply a typo that will be fixed as quickly as possible. The values should actually read something like: voxeo-cpa-runtime="15000ms" voxeo-cpa-maxtime="4000ms" voxeo-cpa-maxsilence="1200ms" Although, I personally use the following values for my CPA enabled applications: voxeo-cpa-runtime="20000ms" voxeo-cpa-maxtime="4000ms" voxeo-cpa-maxsilence="1000ms" Cheers, ~ Michael |
|
telnform_prod
|
|
| oncparesult tags are missing the type property
example: <oncparesult type="human"/> This may be something that is different depending on specific circumstances, but it was causing errors for me. Also <onanswer> should have a next=""...I know it's just a sample, but it's nice to just copy, paste and test. And "human" is missing from mask-event (following the text description above) |
|
mikethompson
|
|
| Hey there,
Thanks for pointing out the issue. I have notified the keepers of the documentation and it has been placed in their queue to be corrected. Thanks again, Mike Thompson Voxeo Extreme Support |
| login |
|