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

Problems with the record tag.

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jcanter
Posts: 47
Joined: Thu Jun 19, 2003 8:54 am

Problems with the record tag.

Post by jcanter »

I am having problems recoding audio with the record tag.

The following code:

Code: Select all

  <!--
  ## #####################################################################
  ## FORM: recorddva
  ##
  ## Record the new DVA.
  ##
  ## ######################################################################
  --> 
  <form id="recorddva">
     <block>
       <assign name="recordPath" expr="GB_recordPath"/>
       <assign name="fileName" expr="dvaID+'.wav'"/>
       <log>
         fileName: <value expr="fileName"/>
       </log>
     </block>
     <record name="callerrecording" beep="true" type="audio/basic" finalsilence="4000ms">
      <property name="bargein"    value="false"/>
      <property name="inputmodes" value="voice dtmf"/>
      <audio expr="basePath+'main.recorddva.wav'">
        After the beep, please record your message.
      </audio>
      <filled>
        <audio expr="basePath+'main.recorddva.recorded.wav'">
          You recorded:
        </audio>
        <value expr="callerrecording"/>
      </filled>
    </record>
Almost immdiatley cuts off the prompt to record and produces the following error:
VXI::DoOuterJump(#recorddva)
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::FindDialog(recorddva)
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::FormInit()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::FormInit - Done
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::DoInnerJump()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::CollectPhase - 2
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::block_element()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::execute_content()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::executable_element - 0
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] EVENT: VXI::assign_element(name="recordPath" expr = "GB_recordPath"
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::executable_element - 0
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] EVENT: VXI::assign_element(name="fileName" expr = "dvaID+'.wav'"
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::executable_element - 28
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [label] LOCAL: fileName: undefined.wav
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::DoInnerJump()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::CollectPhase - 44
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::record_element()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] EVENT: VXI::queue_prompts()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: VXI::PlayPrompt()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] DEBUG: PromptManager::Queue()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Queueing audio
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: bargein set to false
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: INPUTMODES set to "DTMF VOICE"
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Constructing a PVXpromptSourceURL object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Merging properties VXIMap with ref VXIMap
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Opening VXIinet connection to dvas/main.recorddva.wav
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [inet] EVENT: Attempting to fetch http://localhost/apps/dva/dvas/main.recorddva.wav
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Audio segment from the URL dvas/main.recorddva.wav added to prompt queue
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Stripping WAV header
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Stripping WAV header -- starting with RIFF header
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Stripping WAV header -- moving on to analyzing file encoding
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Stripping WAV header -- starting into the data chunk of size 42000
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: WAV file is linear 16-bit
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Converted and copied audio source of size 21000 to queue
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Audio data from audio source object successfully added to prompt queue
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Destructing a PVXpromptSourceURL object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Closing VXIinet connection
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: In OSBpromptPlay()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Waiting for old audio to finish in OSBpromptPlay()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Clearing the last play file from the PVXpromptQueue object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Previously playing audio (if any) has finished
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: impl->queue->cutqueuefile() in OSBpromptPlay()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Cutting the queue file of size 21000
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Renaming queue file: /tmp/fileobIb7Y
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Initializing PVXpromptQueue object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Opening a file descriptor for the play file
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: File descriptor for play file opened
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] DEBUG: dx_play(dxxxB2C4, iott, tpt, EV_ASYNC) Success
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Newly queued prompts are now being played
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Queueing audio
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: bargein set to true
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Constructing a PVXpromptSourceURL object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Merging properties VXIMap with ref VXIMap
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Opening VXIinet connection to resources/beep.ulaw
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [inet] EVENT: Attempting to fetch file:///usr/local/plumvp/resources/beep.ulaw
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Audio segment from the URL resources/beep.ulaw added to prompt queue
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Converted and copied audio source of size 1600 to queue
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Audio data from audio source object successfully added to prompt queue
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Destructing a PVXpromptSourceURL object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Closing VXIinet connection
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] EVENT: PromptManager::Play()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: In OSBpromptWait()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Waiting for any playing audio to finish in Wait()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: ec_stream(dxxxB2C4, EV_ASYNC) Failed
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: ec_stream error Function not supported
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: impl->queue->clearlastplay() in OSBpromptWait
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Clearing the last play file from the PVXpromptQueue object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Deleting play file: /tmp/fileobIb7Y
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Closing the file descriptor for the last play file
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Clearing last stream in OSBpromptWait
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Previously playing audio (if any) has finished
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: In OSBpromptPlay()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Waiting for old audio to finish in OSBpromptPlay()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: ec_stream(dxxxB2C4, EV_ASYNC) Failed
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: ec_stream error Function not supported
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Clearing the last play file from the PVXpromptQueue object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Previously playing audio (if any) has finished
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: impl->queue->cutqueuefile() in OSBpromptPlay()
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Cutting the queue file of size 1600
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Renaming queue file: /tmp/fileYMiBja
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: > Initializing PVXpromptQueue object
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: Opening a file descriptor for the play file
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] DEBUG: File descriptor for play file opened
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: dx_play(dxxxB2C4, iott, tpt, EV_ASYNC) Failed
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: dx_play error Device busy
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [prompt] EVENT: Newly queued prompts are now being played
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: ec_stream(dxxxB2C4, EV_ASYNC) Failed
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [dlg] ERROR: ec_stream error Function not supported
Fri 21 Oct 2005 03:56:15 PM EDT (000031;007;1129924194) [vxi] ERROR: errno: 209 message Fatal exception

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

contact Plum support to have technician resolve IVR problem

Post by support »

Hello,

The IVR error you are seeing is a result of the dialogic card not being properly configured on your IVR system. The ec_record function relies on the spcsp.fwl firmware file to enable bargein triggered echo cancelled recordings. You will need to edit the /usr/dialogic/cfg/dialogic.cfg file or contact Plum Support at support@plumvoice.com to have one of our technicians resolve the IVR problem (please be sure to include your customer id in the subject line of your email to support to ensure a timely response). Hope this helps.

Regards,
Plum Support
Last edited by support on Thu Feb 25, 2010 3:07 pm, edited 3 times in total.

jcanter
Posts: 47
Joined: Thu Jun 19, 2003 8:54 am

Post by jcanter »

I already had dialogic configured that way:

[Genload - All Boards]
LogFile=genload.log
BusType=SCBus
SCBusClockMaster=AUTOMATIC
SCBusClockMasterSource=AUTOMATIC
PCMEncoding=ULAW

[Genload - PCI ID 0] /* Dual T1/E1 PCI HD */
FirmwareFile=spcsp.fwl
ParameterFile=US_240.prm

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

IVR support will assist with configuration issues

Post by support »

Hello,

When the dialogic init.d service is starting up and loading the firmware are you seeing any IVR errors? This is often the case when you have the PCI ID set to a different ID than the board. If you have mismatched IDs the board will load the default no CSP firmware file. If this does not work or is ot the IVR issue you should contact IVR support directly at support@plumvoice.com and include your customer ID in the subject line. They will be able to further assist you with these kinds of configuration issues.

Regards,
Plum Support
Last edited by support on Thu Feb 25, 2010 3:08 pm, edited 2 times in total.

jcanter
Posts: 47
Joined: Thu Jun 19, 2003 8:54 am

Post by jcanter »

support wrote:Hello,

When the dialogic init.d service is starting up and loading the firmware are you seeing any errors? This is often the case when you have the PCI ID set to a different ID than the board. If you have mismatched IDs the board will load the default no CSP firmware file. If this does not work or is not the issue you should contact support directly at support@plumgroup.com and include your customer ID in the subject line. They will be able to further assist you with these kinds of configuration issues.

Regards,
Plum Support
That was the problem. Thanks.

Post Reply