<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Playing WAV File in Dialogic Boards</title>
	<atom:link href="http://www.ivrsworld.com/dialogic-tip/playing-wav-file-in-dialogic-boards/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ivrsworld.com/dialogic-tip/playing-wav-file-in-dialogic-boards/</link>
	<description>IVR, Interactive Voice Response System, CTI Applications</description>
	<lastBuildDate>Fri, 10 Feb 2012 09:06:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Pijush</title>
		<link>http://www.ivrsworld.com/dialogic-tip/playing-wav-file-in-dialogic-boards/#comment-215</link>
		<dc:creator>Pijush</dc:creator>
		<pubDate>Sun, 26 Sep 2010 05:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ivrsworld.com/?p=278#comment-215</guid>
		<description>I&#039;m using linux version of the demo application. My application shows audio play successfully but i didn&#039;t hear any sound. here is code:

		int net, voice;
		if (gc_GetNetworkH(pline-&gt;ldev, &amp;net) == GC_SUCCESS) {
		}
		if (gc_GetVoiceH(pline-&gt;ldev, &amp;voice) == GC_SUCCESS) {
		}

		if (dx_adjsv(voice, SV_VOLUMETBL, SV_ABSPOS, SV_ADD4DB) == -1) {
			printf(&quot;\nUnable to increase volume level.\n&quot;);
		}

		DX_IOTT iott;
		DV_TPT tpt;
		DX_XPB xpb;

		xpb.wFileFormat = FILE_FORMAT_VOX;
		xpb.wDataFormat = DATA_FORMAT_DIALOGIC_ADPCM;
		xpb.nSamplesPerSec = DRT_8KHZ;
		xpb.wBitsPerSample = 4;

		dx_clrtpt(&amp;tpt, 1);
		tpt.tp_type = IO_EOT;
		tpt.tp_termno = DX_MAXDTMF;
		tpt.tp_length = 10;
		tpt.tp_flags = TF_MAXDTMF;

		if (dx_clrdigbuf(voice) == -1) {
			printf(&quot;\nDigit Buffer Clear Error\n&quot;);
		}

		iott.io_type = IO_DEV &#124; IO_EOT;
		iott.io_bufp = 0;
		iott.io_offset = 0;
		iott.io_length = -1;
		iott.io_fhandle = open(&quot;file.vox&quot;, O_RDONLY);

		SC_TSINFO sc_tsinfo;
		long scts;
		sc_tsinfo.sc_numts = 1;
		sc_tsinfo.sc_tsarrayp = &amp;scts;

		if (dx_getxmitslot(voice, &amp;sc_tsinfo) == -1) {
			printf(&quot;\nError at dx_getxmitslot() function: %s\n&quot;, ATDV_ERRMSGP(
					voice));
			initiate_exit();
			exitdemo(1);
		} else {
			printf(&quot;\ndx_getxmitslot() function passed.\n&quot;);
		}

		sc_tsinfo.sc_numts = 1;
		sc_tsinfo.sc_tsarrayp = &amp;scts;

		if (gc_GetXmitSlot(pline-&gt;ldev, &amp;sc_tsinfo) == -1) {
			printf(&quot;\nError at gc_GetXmitSlot() function: %s\n&quot;, ATDV_ERRMSGP(
					voice));
			initiate_exit();
			exitdemo(1);
		} else {
			printf(&quot;\n gc_GetXmitSlot() function passed.\n&quot;);
		}

		if (gc_Listen(pline-&gt;ldev, &amp;sc_tsinfo, EV_SYNC) == GC_SUCCESS) {
			printf(&quot;\ngc_Listen() function passed.\n&quot;);

			if (dx_listen(voice, &amp;sc_tsinfo) == GC_SUCCESS) {
				printf(&quot;\ndx_listen() function passed.\n&quot;);

				if (dx_playiottdata(voice, &amp;iott, &amp;tpt, &amp;xpb, EV_SYNC)
						!= GC_SUCCESS) {
					printf(
							&quot;\nPLaying critical error dx_playiottdata() function %s\n&quot;,
							ATDV_ERRMSGP(voice));
					initiate_exit();
					exitdemo(1);
				} else {
					printf(&quot;\ndx_playiottdata() function passed.\n&quot;);
					printf(&quot;\nPlaying done....\n&quot;);
				}
			} else {
				printf(&quot;\ndx_listen() function failed....\n&quot;);
				initiate_exit();
				exitdemo(1);
			}

		} else {
			printf(&quot;\ngc_listen() function failed.\n&quot;);
			initiate_exit();
			exitdemo(1);
		}

		if (gc_UnListen(pline-&gt;ldev, EV_SYNC) == GC_SUCCESS) {
			printf(&quot;\n gc_unlisten() success.\n&quot;);
		}

		if (dx_unlisten(voice) == GC_SUCCESS) {
			printf(&quot;\n dx_unlisten() success.\n&quot;);
			initiate_exit();
			exitdemo(1);
		}

Please help me.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using linux version of the demo application. My application shows audio play successfully but i didn&#8217;t hear any sound. here is code:</p>
<p>		int net, voice;<br />
		if (gc_GetNetworkH(pline-&gt;ldev, &amp;net) == GC_SUCCESS) {<br />
		}<br />
		if (gc_GetVoiceH(pline-&gt;ldev, &amp;voice) == GC_SUCCESS) {<br />
		}</p>
<p>		if (dx_adjsv(voice, SV_VOLUMETBL, SV_ABSPOS, SV_ADD4DB) == -1) {<br />
			printf(&#8220;\nUnable to increase volume level.\n&#8221;);<br />
		}</p>
<p>		DX_IOTT iott;<br />
		DV_TPT tpt;<br />
		DX_XPB xpb;</p>
<p>		xpb.wFileFormat = FILE_FORMAT_VOX;<br />
		xpb.wDataFormat = DATA_FORMAT_DIALOGIC_ADPCM;<br />
		xpb.nSamplesPerSec = DRT_8KHZ;<br />
		xpb.wBitsPerSample = 4;</p>
<p>		dx_clrtpt(&amp;tpt, 1);<br />
		tpt.tp_type = IO_EOT;<br />
		tpt.tp_termno = DX_MAXDTMF;<br />
		tpt.tp_length = 10;<br />
		tpt.tp_flags = TF_MAXDTMF;</p>
<p>		if (dx_clrdigbuf(voice) == -1) {<br />
			printf(&#8220;\nDigit Buffer Clear Error\n&#8221;);<br />
		}</p>
<p>		iott.io_type = IO_DEV | IO_EOT;<br />
		iott.io_bufp = 0;<br />
		iott.io_offset = 0;<br />
		iott.io_length = -1;<br />
		iott.io_fhandle = open(&#8220;file.vox&#8221;, O_RDONLY);</p>
<p>		SC_TSINFO sc_tsinfo;<br />
		long scts;<br />
		sc_tsinfo.sc_numts = 1;<br />
		sc_tsinfo.sc_tsarrayp = &amp;scts;</p>
<p>		if (dx_getxmitslot(voice, &amp;sc_tsinfo) == -1) {<br />
			printf(&#8220;\nError at dx_getxmitslot() function: %s\n&#8221;, ATDV_ERRMSGP(<br />
					voice));<br />
			initiate_exit();<br />
			exitdemo(1);<br />
		} else {<br />
			printf(&#8220;\ndx_getxmitslot() function passed.\n&#8221;);<br />
		}</p>
<p>		sc_tsinfo.sc_numts = 1;<br />
		sc_tsinfo.sc_tsarrayp = &amp;scts;</p>
<p>		if (gc_GetXmitSlot(pline-&gt;ldev, &amp;sc_tsinfo) == -1) {<br />
			printf(&#8220;\nError at gc_GetXmitSlot() function: %s\n&#8221;, ATDV_ERRMSGP(<br />
					voice));<br />
			initiate_exit();<br />
			exitdemo(1);<br />
		} else {<br />
			printf(&#8220;\n gc_GetXmitSlot() function passed.\n&#8221;);<br />
		}</p>
<p>		if (gc_Listen(pline-&gt;ldev, &amp;sc_tsinfo, EV_SYNC) == GC_SUCCESS) {<br />
			printf(&#8220;\ngc_Listen() function passed.\n&#8221;);</p>
<p>			if (dx_listen(voice, &amp;sc_tsinfo) == GC_SUCCESS) {<br />
				printf(&#8220;\ndx_listen() function passed.\n&#8221;);</p>
<p>				if (dx_playiottdata(voice, &amp;iott, &amp;tpt, &amp;xpb, EV_SYNC)<br />
						!= GC_SUCCESS) {<br />
					printf(<br />
							&#8220;\nPLaying critical error dx_playiottdata() function %s\n&#8221;,<br />
							ATDV_ERRMSGP(voice));<br />
					initiate_exit();<br />
					exitdemo(1);<br />
				} else {<br />
					printf(&#8220;\ndx_playiottdata() function passed.\n&#8221;);<br />
					printf(&#8220;\nPlaying done&#8230;.\n&#8221;);<br />
				}<br />
			} else {<br />
				printf(&#8220;\ndx_listen() function failed&#8230;.\n&#8221;);<br />
				initiate_exit();<br />
				exitdemo(1);<br />
			}</p>
<p>		} else {<br />
			printf(&#8220;\ngc_listen() function failed.\n&#8221;);<br />
			initiate_exit();<br />
			exitdemo(1);<br />
		}</p>
<p>		if (gc_UnListen(pline-&gt;ldev, EV_SYNC) == GC_SUCCESS) {<br />
			printf(&#8220;\n gc_unlisten() success.\n&#8221;);<br />
		}</p>
<p>		if (dx_unlisten(voice) == GC_SUCCESS) {<br />
			printf(&#8220;\n dx_unlisten() success.\n&#8221;);<br />
			initiate_exit();<br />
			exitdemo(1);<br />
		}</p>
<p>Please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaron</title>
		<link>http://www.ivrsworld.com/dialogic-tip/playing-wav-file-in-dialogic-boards/#comment-214</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Fri, 18 Dec 2009 15:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ivrsworld.com/?p=278#comment-214</guid>
		<description>hi

Any one know how to Terminate Play on Receiving any DTMF tone but keeping the digit in the digit buffer?

regards
aaron</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>Any one know how to Terminate Play on Receiving any DTMF tone but keeping the digit in the digit buffer?</p>
<p>regards<br />
aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uttam Pegu</title>
		<link>http://www.ivrsworld.com/dialogic-tip/playing-wav-file-in-dialogic-boards/#comment-213</link>
		<dc:creator>Uttam Pegu</dc:creator>
		<pubDate>Mon, 20 Apr 2009 06:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ivrsworld.com/?p=278#comment-213</guid>
		<description>Dear Shailendra,
   Thank you for your feedback.

Regards

Uttam Pegu</description>
		<content:encoded><![CDATA[<p>Dear Shailendra,<br />
   Thank you for your feedback.</p>
<p>Regards</p>
<p>Uttam Pegu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shailendra</title>
		<link>http://www.ivrsworld.com/dialogic-tip/playing-wav-file-in-dialogic-boards/#comment-212</link>
		<dc:creator>shailendra</dc:creator>
		<pubDate>Fri, 17 Apr 2009 12:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ivrsworld.com/?p=278#comment-212</guid>
		<description>Thanks buddy...
This is working....</description>
		<content:encoded><![CDATA[<p>Thanks buddy&#8230;<br />
This is working&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

