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

error.semantic When calling a Subdialog

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
rquant
Posts: 16
Joined: Tue Apr 19, 2011 1:12 pm

error.semantic When calling a Subdialog

Post by rquant »

I am having issues with my vxml application. I am trying to pass subdialog parameters but receive an error event:

Code: Select all

received event: error.semantic: 
received event: error.semantic.ecmascript:
This is my form where I call the <subdialog>

Code: Select all

  

     <var name="sessionId" />
     <var name="ani" />
     <var name="dnis" />
     <var name="applicationCode" />
<form id="StartCall">
        <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'StartCall'" />
         </block>
        <subdialog name="StartCallSub" src="../Shared/StartCall_Main.vxml">
            <param name="sessionId" expr="SessionId" />
            <param name="ani" expr="Ani" />
            <param name="dnis" expr="Dnis" />
            <param name="applicationCode" expr="ApplicationCode" />
        <filled>
                <assign name="Company" expr="StartCallSub.Company" />
                <goto next="#Welcome" />
            </filled>
        </subdialog>
    </form>
this is my subdialog being called:

Code: Select all

<form id="Start">
        <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'Start'" />

            <!-- Declare variables that will be passed in from the calling point as parameters -->
            <var name="sessionId" />
            <var name="ani" />
            <var name="dnis" />
            <var name="applicationCode" />

            <log expr="'SessionId: ' + sessionId" />
            <log expr="'ANI: ' + ani" />
            <log expr="'DNIS: ' + dnis" />
            <log expr="'Application Code: ' + applicationCode" />

             <log expr="'+++++++++++++++++++++++++' + VxmlPage" />
            <goto next="#StartCall" />
      </block>
    </form>
Any suggestions...

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

Re: error.semantic When calling a Subdialog

Post by support »

Hi,

You will need to declare the variable being submitted via the param tag within the form, not the block.

Code: Select all

<form id="Start">
	  <!-- Declare variables that will be passed in from the calling point as parameters -->
	  <var name="sessionId" />
	  <var name="ani" />
	  <var name="dnis" />
	  <var name="applicationCode" />
	<block>
This should fix the error.semantic you were experiencing.

Regards,
Plum Support

Post Reply