« Back to VXML-API

APPLICATION vxml aspx

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
Can anyone tell me...
 
Is it possible to configure an aspx URL on the router for vxml applications ?
For example:
 
application
 service test http://1.1.1.1/test.aspx
 
The ASPX File gives a vxml doc back. But does the Router understand this ?
 
thx
Patrick

Hi Patrick,
 
Router cant understand .aspx files.It wont get registered while loading the script
Thanks
Vijay
 

RE: APPLICATION vxml aspx
Answer
4/20/10 3:39 PM as a reply to Vijay Prasad Neelamegam.
Hi Vijay,
 
Thx for your answer. But is it possible to implement this URL?

http://server.com/test.vxml?number=5455.

 
Regards
Patrick

Hi Patrick,
 
It is not possible to implement the mentioned URL for loading the application. As the router would be able to interpret the application until the .vxml portion alone. Beyound that giving the ? mark is like the help command being issued in the router. 
 


ASG_3845(config-app)#service test http://server.com/testre.vxml?
WORD 


 
Thanks,
Anusha

But you could o some type of redirect based on the calling or called number if that's what you are trying to accomplish.

Patrick,
 
Oddly enough, you can only load .TCL and .VXML files into a service command in the IOS.  HOWEVER, if you use a hybrid TCL/vXML you can use "leg vxmldialog" that will go to a ASPX or any other document type.
 
Alternatively, you can set your server to interpret VXML as an ASPX document.  Then you just put your ASPX commands directly into the VXML, of course it won't really be dynamic becuase the IOS will load the ASPX'd VMLX file once and save it in memory.
 
Probably the best way for  you might be to load a simple .VXML document that simply does a <GOTO next="dynamic.aspx?dnis=XXXXXX">
 
Travis

RE: APPLICATION vxml aspx
vxml aspx questionmark
Answer
6/7/10 11:44 PM as a reply to Patrick Hartl.
Hi Patrick,
 
What you are asking is possible. Someone was not thinking at Cisco when they implemented the http/vxml parser in IOS. The IOS code relies on the name of the file in the http-request/response to determine if the code is vxml or not. This all dispite the content-type the IOS http client is willing to accept and you should be returning as well.
 
To have your .net application return vxml and have the IOS code understand the results all you should do is to trick the parser to think the file is a .vxml file (filename). Use the following URL for example:
 
application
  service MyVxmlAspxApp http://webserver/app1/menu.aspx?param1=value1&realfilename/menu.vxml
 
The querystring-parameter realfilename/menu.vxml without parameter tricks IOS in thinking the actual file being requested is VXML. Stupid, but true, unfortinately.
 
About the ? in the line of code... just press CTRL-V before typing the ? and IOS will allow you to continue with the parameters of the URL.
 
Besides all of this, always return a valid content-type in the response. Ex.: Response.ClearHeaders(); Response.Content-Type="application/vxml";
 
Regards,
Eik Tamminga