Questions and answers about IVR programming for Plum DEV
Moderators: admin , support
baber
Posts: 3 Joined: Mon Feb 04, 2008 1:06 am
Post
by baber » Mon Feb 04, 2008 3:07 am
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:
Post
by support » Mon Feb 04, 2008 10:28 am
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 » Wed Feb 06, 2008 6:57 am
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:
Post
by support » Wed Feb 06, 2008 11:15 am
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 » Thu Feb 07, 2008 1:57 am
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:
Post
by support » Thu Feb 07, 2008 11:29 am
Hi,
Nothing has changed within the IVR platform nor should anything have changed when you got your account renewed.
Regards,
Plum Support