Page 1 of 1

Continue porcessing recording after hangup

Posted: Wed Nov 28, 2007 5:47 pm
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

Continue IVR recording after user hangup

Posted: Thu Nov 29, 2007 10:44 am
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