[Opalvoip-svn] SF.net SVN: opalvoip:[24832] ptlib/trunk/src/ptclib/vxml.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2010-10-26 07:06:57
|
Revision: 24832 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=24832&view=rev Author: rjongbloed Date: 2010-10-26 07:06:51 +0000 (Tue, 26 Oct 2010) Log Message: ----------- Fixed issue with audio in VXML transfer, only worked of there was no white space in VXML node. Modified Paths: -------------- ptlib/trunk/src/ptclib/vxml.cxx Modified: ptlib/trunk/src/ptclib/vxml.cxx =================================================================== --- ptlib/trunk/src/ptclib/vxml.cxx 2010-10-26 05:57:21 UTC (rev 24831) +++ ptlib/trunk/src/ptclib/vxml.cxx 2010-10-26 07:06:51 UTC (rev 24832) @@ -2150,11 +2150,14 @@ { PXMLElement* element = (PXMLElement *) currentNode; if (element->HasSubObjects()) { - currentNode = element->GetElement(element->GetSize() - 1); - ProcessNode(); - // If queued up something to play, wait for it finish before we do the transfer. - while (IsPlaying() && !m_abortVXML) - waitForEvent.Wait(); + // Process internal nodes before we do the transfer. + for (PINDEX i = 0; i < element->GetSize(); ++i) { + currentNode = element->GetElement(i); + ProcessNode(); + // If queued up something to play, wait for it finish. + while (IsPlaying() && !m_abortVXML) + waitForEvent.Wait(); + } } bool bridged = (element->GetAttribute("bridge") *= "true"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |