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

<record> is truncated

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
tparker
Posts: 6
Joined: Wed May 16, 2007 9:57 am
Location: Montana

<record> is truncated

Post by tparker »

I cannot get a recording longer than about 8 seconds no matter how long I set maxtime or finalsilence. I have tried maxtime = "30000" and finalsilence = "3s" in addition to other combinations of lengths (see below for my current settings). I get the same result from several different testers using land lines, cell phones, from different parts of the country, so it's not just my testing phone. Code is below:

<form id="yes">
<record name="wave" beep="true" maxtime="30s" finalsilence="maxtime" type="audio/x-wav">
<prompt>
<voice name="crystal">
Please leave a message.
</voice>
</prompt>
<filled>

<submit next="http://domain.com/response.lasso"
method="post" namelist="wave" enctype="multipart/form-data"/>
</filled>

</record>

</form>

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

Call log needed for IVR developers to determine problem

Post by support »

Hi,

Can you post an IVR call log of when it is not working? This information would help us better assess your IVR problem.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 2:21 pm, edited 2 times in total.

tparker
Posts: 6
Joined: Wed May 16, 2007 9:57 am
Location: Montana

Post by tparker »

Here is the end of the call log where the caller can leave a message. Seems the units are wrong for maxtime: what is the correct way to specify maxtime if I want a maxtime = 30 seconds? (Note: I subsitituted "domain" for my domain below.)

--------------

Sun 05 Aug 2007 05:42:02 PM EDT:

dtmf input: 1
Found grammar match
hypothesis #0: 1 (0.9990)
VXI::queue_prompts()
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak><voice name="crystal"><speak>
Please leave a message.
</speak></voice></speak>
---------
bargein set to true
Cache Miss: file:///usr/local/plumvp/resources/beep.ulaw
Attempting to fetch file:///usr/local/plumvp/resources/beep.ulaw
Audio segment from the URL resources/beep.ulaw added to prompt queue
PropertyList::ConvertTimeToMilliseconds - Invalid units in value "maxtime".
PromptManager::Play()
Newly queued prompts are now being played


Sun 05 Aug 2007 05:42:09 PM EDT:

DocumentParser::FetchDocument(http://domain/response.lasso)
Posting binary content "wave" of size 30382 and type "audio/x-wav"
Posted form data is multipart encoded
Attempting to fetch http://domain/response.lasso
Click here to view saved VoiceXML script
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak><voice name="crystal"><speak>
Thank you. Goodbye.
</speak></voice></speak>
---------
Newly queued prompts are now being played


Sun 05 Aug 2007 05:42:12 PM EDT:

received event: connection.disconnect.hangup
Disconnect
Disconnecting On Channel 78
VXI::exit_element()
Call End Event
Ending session
Ending Session On Channel 78

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

IVR code to record message for 30s

Post by support »

Hi,

We replaced your section of IVR code:

Code: Select all

<record name="wave" beep="true" maxtime="30s" finalsilence="maxtime" type="audio/x-wav"> 
with this:

Code: Select all

<record name="wave" beep="true" maxtime="30s" finalsilence="30s" type="audio/x-wav">
After this change, we were able to get your IVR code working to <record> a message for 30 seconds. Let us know if this helps.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 2:22 pm, edited 3 times in total.

tparker
Posts: 6
Joined: Wed May 16, 2007 9:57 am
Location: Montana

Post by tparker »

Thank you. This worked.

pacview
Posts: 8
Joined: Tue Sep 26, 2006 12:09 pm

Record finalsilence="Xs" where X = maxtime works f

Post by pacview »

Thanks for the post. When we made both finalsilence and maxtime to "15s" then it started recording for 15 seconds always. Good workaround!

Post Reply