I am locked as far as using zaptel or dahdi is concerned, so i have to do it using zaptel.<div><br></div><div>I start reader first, which does not show any output unless it finds any other than 0xff which is idle line state.</div>
<div><br></div><div>lets say instead of an infinite for loop in the write code, i use for loop of 10 iterations which execute write 10 times. So i should receive 10 &quot;A&quot; on the receive side, But its almost always less than 10, usually 5 or 6 or sometimes 3 even.</div>
<div><br></div><div>i&#39;ve looked into patloop test, i think its doing exactly the same thing as i am in the code. </div><div><br></div><div>I had a question, do i need to set the channel to &quot;Linear&quot; or &quot;HDLC&quot; for this functionality ??</div>
<div><br></div><div>BR.</div><div>Ali<br><br><div class="gmail_quote">On Sat, Jul 3, 2010 at 5:45 PM, Tzafrir Cohen <span dir="ltr">&lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sat, Jul 03, 2010 at 05:01:28PM +0500, Muhammad Ali wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to send custom data over zap channel. for that i have to kill<br>
&gt; asterisk so the channels arent busy anymore.<br>
&gt;<br>
&gt; I am using /dev/zap/channel interface to access channels for reading and<br>
&gt; writing. The problem i am experiencing is that the number of bytes<br>
&gt; transmitted is not equal to number of received bytes. i am unable to<br>
&gt; identify whether it is a problem at transmission end or the reception end.<br>
<br>
</div>A. Please use DAHDI. DAHDI is the latest version of Zaptel. Zaptel is<br>
not actively maintained anymore.<br>
<br>
Also, take a look at patgen / pattest / patlooptest. Although they use<br>
odd buffer sizes to increase the chance of catching errors, they<br>
basically send a simple data stream over a zaptel/dahdi channel.<br>
<br>
Anyway, what is the exact output you get from using that program? Who do<br>
you start first: the writer or the reader?<br>
<br>
--<br>
               Tzafrir Cohen<br>
icq#16849755              <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
+972-50-7952406           mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a>  <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
</font><div><div></div><div class="h5">   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>ALi...<br>(علی)<br><a href="http://m-ali.deviantart.com">http://m-ali.deviantart.com</a><br><br>
</div>