cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
534
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Mike Robinson on 24-06-2009 01:54:27 PM
What is the correct configuration for a Subdialog Invoke when using a VXML load balancer?
Do I need to make sure that I force the subdialog application to execute on the same server as the calling application and select "true" for the Local Application Parameter?  Or do I use the virtual IP in the Subdialog URI parameter and set the Local Application parameter to "false"?
I've tried various combinations and most seem to error out with a bad fetch or bad URI.  I have been able to make it work before, but I am unsure now of the combination I had to make it work, so I am just looking for some guidance on how it should be setup.
Thanks.

Subject: RE: Subdialogs with Load Balancing
Replied by: Janine Graves on 24-06-2009 04:16:11 PM
Hi Dave,
To invoke the subdialog, you should set LocalURI to True and set the URI to /CVP/Server?application=appName  You should also pass the call ID that is passed in from ICM (otherwise reporting will be screwed up) as follows:  /CVP/Server?application=appName&callid={Data.Session.callid}
 
Regards, Janine
www.TrainingTheExperts.com
 
 

Subject: RE: Subdialogs with Load Balancing
Replied by: Mike Robinson on 24-06-2009 05:58:07 PM
Thanks Janine.
 
I was trying this for the URI:
http://<virtual ip>:7000/CVP/Server?application=appName&callid={Data.Session.callid}
 
I changed it to:
/CVP/Server?application=appName&callid={Data.Session.callid}
 
I'm still getting errors in the global error logger:
SERVER ERROR: bad_url. URI: /CVP/Server
 
Follow up question:
Can I use the normal Subdialog Start/Return in the second application or do I need to use the CVP Start/Return elements?  According to the element documentation, you can use the non-CVP ones if the application will never be directly called by ICM - which is true for this app.  Only the first application is called by ICM with the subdialog app is only called by the first application.

Subject: RE: Subdialogs with Load Balancing
Replied by: Janine Graves on 24-06-2009 07:54:02 PM
/CVP/Server?application=appname should work, I've done it many times. BUT, the app you're trying to invoke must be deployed on the same Vxml Server (if you run the /VxmlServer/admin/status.bat script, make sure you see the name of the application appear in the list, otherwise, run the deployApp.bat script).
 
There are few other caveats: 1)make sure that you have at least one audio element in the main application before trying to use the SubdialogInvoke block. 2)It's fine to use the normal Subdialog Start/Return blocks in the subdialog app. 3)The subdialog return element MUST return at least one return parameter (name=value format) otherwise you'll get an error.
 
Regards, Janine

Subject: RE: Subdialogs with Load Balancing
Replied by: Mike Robinson on 01-07-2009 09:29:26 PM
In my case there was a 4th caveat:
I had to remove the callid parameter from the Subdialog URI temporarily.
 
Summary:
Application that performed Subdialog Invoke would timeout waiting for the subdialog to return.  The global error logger contained:
SERVER ERROR: bad_url. URI: /CVP/Server
 
Steps to resolve were:
1) Modify Subdialog Invoke URI to -> /CVP/Server?application=MyApp  (removed "&callid={Data.Session.callid}")
2) Deploy
3) Execute test call - ran successfully (subdialog MyApp did not receive callid)
4) Modify Subdialog Invoke URI to -> /CVP/Server?application=MyApp&callid={Data.Session.callid}
5) Deploy
6) Execute test call - ran successfully and subdialog recieved callid


 
I have no idea why this happened - if anyone has ideas I'd like to hear it :-).
 
Thanks Janine and Dave Womer.
 

Subject: RE: Subdialogs with Load Balancing
Replied by: Janine Graves on 01-07-2009 09:59:10 PM
Mike,
Once in class a student entered a Carriage Return after their URI '/CVP/Server?application=test&callid={Data.Session.callid}' - and that caused an error like you saw. It was VERY hard to find that error, but if you look VERY carefully in the Studio Settings window, you could see a little rectangle after the closing brace.  When one enters the URI from the text box that appears when one presses the '...' button next to the URI setting, it's easy to enter a Carriage Return after entering your URI, and it won't be visible from the Text Box, but it makes all the difference.
 
Glad you got it working!
Janine
 

Subject: RE: Subdialogs with Load Balancing
Replied by: Mike Robinson on 02-07-2009 03:38:32 PM
I found an old script that had the same problem - turns out there was a space after the last bracket.  I think I copied and pasted the URI, so that must be how it got there.
Lesson learned!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links