on 01-25-2014 10:35 AM
Janine Graves:Can you turn on Vxml Debug logging and see whether the gateway is sending the hangup event to vxml server when it occurs? Or whether it's holding it until vxml server sends the next audio?
Hemal Mehta:I looked at the code. What is the business logic behind this. I do not see you calling a webservice, making some backend call etc. Just waiting for 16 secs, checking if the total time elapsed is not 60s. So why not just play the audio of 60s duration or if you need to split the audio to total 60s.
Unless there is some other backend processing happening, what is the point of going in this loop. Are you playing any fetchaudio while you are trying to make this wait in the decision element ? Depending on your business logic there may be a better way to do this.
Don't get into the thread business, unless you really know what you are doing, you can bring down your webserver down if you have tonnes of calls spawning threads
and you do not manage this correctly.
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: