Page 1 of 1

Parameter is not posting properly to the next url

Posted: Mon Feb 04, 2008 3:07 am
by baber
Here is my vxml code

Code: Select all

<vxml version="2.0">
<var name="pincode" expr="0"/>
−
	<form>
−
	<block>
<audio src="http://audio.plumgroup.com/root/95227943/95227943_1.wav"/>
</block>
−
	<field name="pin" type="digits?length=4">
−
	<prompt>
<audio src="http://audio.plumgroup.com/root/95227943/95227943_2.wav"/>
</prompt>
−
	
−
	<filled>
<assign name="pincode" expr="pin"/>
<var name="calledID" expr="session.telephone.ani"/>
<var name="ReferenceNumber" expr="9000000390"/>
<submit next="http://66.135.33.9/IVRScriptDEV/MFSIVRProcessing.aspx" method="post" namelist="pincode calledID ReferenceNumber"/>
</filled>
</field>
</form>
</vxml>

now the problem is that in MFSIVRProcessing.aspx i did not get ReferenceNumber properly
MessageRef = Request["ReferenceNumber"].ToString();

but in MessageRef i am not getting the value "9000000390" and instead of this value i get 90000000512.0000 which obviously throw exception while i try to convert it in to long kindly help me out on this matter

IVR link for an ASP example

Posted: Mon Feb 04, 2008 10:28 am
by support
Hi Baber,

I would recommend looking here for an ASP example as we do not have anyone inhouse who has ASP expertise: http://support.plumvoice.com/viewtopic.php?t=849

From that IVR post, I would recommend changing this line:

Code: Select all

MessageRef = Request["ReferenceNumber"].ToString(); 
to this line:

Code: Select all

MessageRef = Request.Form("ReferenceNumber")
Hope this helps.

Regards,
Plum Support

Posted: Wed Feb 06, 2008 6:57 am
by baber
I had changed the statement and it did not solve my problem, 9000000512.000000 value in ReferenceNumber is still there wherever the real value is 9000000313.

IVR code fix for floating variable

Posted: Wed Feb 06, 2008 11:15 am
by support
Hi,

I would recommend changing this line of your IVR code:

Code: Select all

<var name="ReferenceNumber" expr="9000000390"/> 
to this line of IVR code:

Code: Select all

<var name="ReferenceNumber" expr="'9000000390'"/> 
Without the single quotes around your number, it gets treated like a float variable, which explains why you get 90000000512.0000.

Regards,
Plum Support

Posted: Thu Feb 07, 2008 1:57 am
by baber
that is smart ,yes it works really well thank you for that. Could you explain me a fact that i didn't change my code,the same code works couple of days ago,after renewing our account this problem starts to arise. please share me your ideas about that.

Regards

No changes occur when you renew IVR account

Posted: Thu Feb 07, 2008 11:29 am
by support
Hi,

Nothing has changed within the IVR platform nor should anything have changed when you got your account renewed.

Regards,
Plum Support