We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Continue porcessing recording after hangup

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jbrohan
Posts: 19
Joined: Mon Nov 19, 2007 10:17 am
Location: Montreal Canada
Contact:

Continue porcessing recording after hangup

Post by jbrohan »

Sorry about your hacker. Glad to see you back online.
Do you have an example to catch a user hangup. I want to allow the user to hang up the phone while he is making a recording and still save the recording.
Thanks
John
John Brohan National Instruments LabVIEW expert in Montreal
Traders Micro "We connect all sorts of things to computers"
telemedicine applications
www.woundfollowup.com

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Continue IVR recording after user hangup

Post by support »

Hi,

Here is a quick IVR code example that should catch a recording when a user hangs up:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

<form>
     <record name="msg" beep="true" maxtime="10s"
       finalsilence="4000ms" dtmfterm="true" type="audio/x-wav">
       <prompt timeout="5s">
         Record a message after the beep.
       </prompt>
       <noinput>
         I didn't hear anything, please try again.
       </noinput>
       <catch event="connection.disconnect.hangup">
         <submit next="save.php" namelist="msg" method="post"/>
       </catch>
     </record>
</form>
</vxml>
However, keep in mind that the IVR script you are submitting to cannot have any IVR audio prompts in it since this will cause the max disconnect count to be exceeded.

Hope this helps.

Regards,
Plum Support
Last edited by support on Tue Feb 16, 2010 12:58 pm, edited 4 times in total.

Post Reply