« Back to CVP - All Versions

VXML: cisco-data element behaviour

Combination View Flat View Tree View
Threads [ Previous | Next ]
 
Hello,
 
I'm writing a VXML application which does two HTTP POST calls to a Generic Handler writen in C#.
In the VXML script I'm calling the same URL twice, but the second time with more parameters.
The weird thing is that the second time the call is executed the values of the parameters are double and are comma seperated.
 
I have this configured under an incoming dial-peer as a service.
 
Cisco configuration:
 
http client cache refresh 1
ivr prompt streamed http
vxml version 2.0
 
dial-peer voice 2000 voip
service vxmlapplication
 
Why is this happening?
 
Thanks,
 
Grant
 
 
 
<form>
    <block>
      <var name="parameterA" expr="session.telephone.dnis"/>
      <var name="parameterB"  expr="session.telephone.ani"/>
      <var name="parameterC" expr="Hello" />
      <cisco-data src="http://10.0.0.1/handler.ashx"
            name="result"
            method="post"
            maxage="0"
            namelist="parameterA parameterB">
      </cisco-data>
      <var name="index" expr="result.indexOf('|')" />
      <var name="defaultVoiceFile" expr="result.substr(0, index)"/>
      <var name="firstVoiceFile" expr="result.substr(index+1, result.length)"/>
      <prompt>
        <audio expr="defaultVoiceFile" />
      </prompt>
      <prompt>
        <audio expr="firstVoiceFile" />
      </prompt>
      <cisco-data src="http://10.0.0.1/handler.ashx"
            name="result"
            method="post"
            maxage="0"
            namelist="parameterA parameterB parameterC">
      </cisco-data>
    </block>
  </form>