Haven't tried with new 1.4 branch of Asterisk/Zaptel, but in 1.2, if correctly configured, there was no need to "Wait(x)" to let zaptel to get the CID on analog lines: it was zaptel itself to not let the call go through the dialplan until the second ring. I think it shoud be something like:
<br><br>usecallerid=yes<br>callerid=asreceived<br><br>in zapata.conf for relevant channels.<br><br>Hope this helps...<br><br>Regards<br><br>picciux<br><br><div><span class="gmail_quote">2007/8/16, Matthew Harrell &lt;<a href="mailto:lists-sender-6a8aaf@bittwiddlers.com">
lists-sender-6a8aaf@bittwiddlers.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Thanks.&nbsp;&nbsp;I was hoping there might be a way to detect whether the CID
<br>routine was done or not.&nbsp;&nbsp;I&#39;ve still seen occasions where it wasn&#39;t available<br>for callers that I know had it.&nbsp;&nbsp;Maybe my phone service is just a little<br>slow sometimes<br><br><br>&gt; Wait(2) is what I do.
<br>&gt;<br>&gt; Matthew Harrell wrote:<br>&gt;&gt;&gt;&gt; First, it seems I have to have a 2 - 3 second wait before the AGI call in<br>&gt;&gt;&gt;&gt; order to get valid CID data.&nbsp;&nbsp;Usually 2 seconds suffices for this one setup
<br>&gt;&gt;&gt;&gt; but during that time the caller has had two rings before the local extension<br>&gt;&gt;&gt;&gt; has even begun to ring.&nbsp;&nbsp;Is there something I am doing wrong that causes it<br>&gt;&gt;&gt;&gt; to take so long to get the CID?
<br>&gt;&gt;&gt; CallerID info is sent between the first and second ring.<br>&gt;&gt;<br>&gt;&gt; Well that would explain that problem, wouldn&#39;t it?&nbsp;&nbsp;Is there a proper way<br>&gt;&gt; to wait for the CID data to be filled in if available or is Wait(2) my best
<br>&gt;&gt; option?<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a>
<br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br>--<br>&nbsp;&nbsp;Matthew Harrell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Never underestimate the power of<br>&nbsp;&nbsp;Bit Twiddlers, Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; very stupid people in large groups.<br>&nbsp;&nbsp;<a href="mailto:mharrell@bittwiddlers.com">
mharrell@bittwiddlers.com</a><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list
<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>