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

Parameter is not posting properly to the next url

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
baber
Posts: 3
Joined: Mon Feb 04, 2008 1:06 am

Parameter is not posting properly to the next url

Post 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
Baber Waqas

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

IVR link for an ASP example

Post 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
Last edited by support on Fri Feb 19, 2010 11:26 am, edited 3 times in total.

baber
Posts: 3
Joined: Mon Feb 04, 2008 1:06 am

Post 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.
Baber Waqas

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

IVR code fix for floating variable

Post 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
Last edited by support on Fri Feb 19, 2010 11:27 am, edited 2 times in total.

baber
Posts: 3
Joined: Mon Feb 04, 2008 1:06 am

Post 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
Baber Waqas

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

No changes occur when you renew IVR account

Post by support »

Hi,

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

Regards,
Plum Support

Post Reply