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

Submit Expression

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
johnmoore330
Posts: 2
Joined: Mon Dec 21, 2015 4:52 pm

Submit Expression

Post by johnmoore330 »

i have a dynamically generated script that validates with the validator however when it runs a symantec error is returned. I suspect that the issue has to do with the submit and evaluating the expression that generates the posted URL. Upon dialing in, I am prompted for and enter my user and password then hear the please wait. The gateway script also performs a submit but with a get using the same expr= syntax and does not fail. My best guess is that it is related to the nomatch/noinput but unsure best alternative for syntax as this worked in another vendors 2.1 configuration.

I have wireshark and can see that inboundLogin is never passed. I also have debugger set at entry points and the post is also never seen (pretty obvious if WS doesn't see it).

other than the addition of the ;jsessionid= to the URL's the script is as follows

<?xml version="1.0" encoding="UTF-8"?>







<vxml version="2.0">



<var name="sessionId" expr="session.id" />
<var name="parentSessionId" expr="session.id" />
<var name="outboundId" expr="1" />









<var name="callBackHost" expr="'https://fqdn.of.my.domain'" />




<var name="CSRFToken" expr="'f10a536e-39f2-4d75-8222-152d618267a2'" />





<property name="fetchtimeout" value="60s" />
<property name="inputmodes" value="dtmf" />
<property name="timeout" value="60s" />
<property name="termtimeout" value="0s" />
<property name="interdigittimeout" value="2s" />
<property name="termchar" value="#" />


<catch event="connection.disconnect.hangup">
<log expr="'********** connection.disconnect.hangup: record hangup, disconnect session'"/>
<log expr="'********** outboundId ' + outboundId + ' **********'" />
<if cond="outboundId == undefined">
<submit expr="callBackHost + '/ivr/init/hangup'" method="get" namelist="sessionId" />
<else/>
<log expr="'********** Detected VXML hang up event for outbound line, relying on CCXML. **********'" />
</if>
<exit />
</catch>
<catch event="error.telephone.disconnect">
<log expr="'********** error.telephone.disconnect: record hangup, disconnect session'"/>
<submit expr="callBackHost + '/ivr/init/disconnect'" method="get" namelist="sessionId" />
<exit />
</catch>
<catch event="cancel">
<log expr="'********** cancel: record hangup, disconnect session'"/>
<submit expr="callBackHost + '/ivr/init/cancel'" method="get" namelist="sessionId" />
<exit />
</catch>









<form>


<block>
<prompt>

Welcome to T S G DEVELOPMENT GERM Work force tele-staff.
</prompt>
</block>

<field name="userId" type="digits">
<prompt>
<break time="700ms" />
Enter your ID and press the pound key
</prompt>

<catch event="noinput">
I'm sorry, I didn't hear anything
<reprompt/>
</catch>
<catch event="nomatch">
Option not found, please try again.
<reprompt/>
</catch>
</field>

<field name="password" type="digits">
<prompt>
<break time="700ms" />
Enter your PIN and press the pound key
</prompt>

<catch event="noinput">
I'm sorry, I didn't hear anything
<reprompt/>
</catch>
<catch event="nomatch">
Option not found, please try again.
<reprompt/>
</catch>
</field>

<filled namelist="userId password" mode="all">
<goto nextitem="messageAndSubmit" />
</filled>












<field name="messageAndSubmit">
<property name="timeout" value="0s"/>
<prompt>
Please Wait.
</prompt>


<noinput>
<submit expr="callBackHost+'/ivr/init/inboundLogin'" method="post" namelist="CSRFToken sessionId userId password" />
</noinput>

<nomatch>
<submit expr="callBackHost+'/ivr/init/inboundLogin'" method="post" namelist="CSRFToken sessionId userId password" />
</nomatch>
</field>

</form>

</vxml>

johnmoore330
Posts: 2
Joined: Mon Dec 21, 2015 4:52 pm

Re: Submit Expression

Post by johnmoore330 »

after reworking the vxml, the solution that evolved was that that theessageAndSubmit field was removed and the containing prompt and submit were moved to the filled area.

admin
Site Admin
Posts: 35
Joined: Thu May 29, 2003 3:12 pm

Re: Submit Expression

Post by admin »

Hi,

It looks like you were able to find a solution, but please feel free to let us know if you have any further questions we can help you with.

Regards,
Plum Support

Post Reply