<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Someone mentioned the following issue (below) on
the users list back in October (on Asterisk 1.6.0-beta9 & Dahdi
2.0.x)</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm seeing it now on 1.6.0.3 and Dahdi
2.1.x.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The original poster (Jim Duda) made a one-line
change in chan_dahdi.c which fixed the problem for him </FONT></DIV>
<DIV><FONT face=Arial size=2>I made the same 1-line change in chan_dahdi.c in
asterisk 1.6.0.3, recompiled, and the issue was fixed for me as well.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jim seems like a very talented developer but new to
Asterisk & he didn't have the time to follow up and submit the patch.
I'd like to present the issue here in this forum with the fix. I've never
posted a bug before, so I though I'd post it here in high-level terms for a
sanity check. If it's a bona-fide bug, I'll take it to the next
level. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The one-line fix is listed below, but
unfortunately</FONT><FONT face=Arial size=2> I'm not good enough yet to
understand the theory of this fix (and whether it's brilliant and elegant or a
total kludge).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for looking at this and thanks in advance
for your directives.</FONT></DIV>
<DIV><FONT face=Arial size=2>-Karl Fife</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ISSUE:</FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk 1.6.0.3 & Dahdi 2.1.x (for
me)</FONT></DIV>
<DIV><FONT face=Arial size=2>Asterisk 1.6.0-beta9 &
Dahdi</FONT><FONT face=Arial size=2> 2.0.x (originally for
Jim)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>AFTER a system reboot, If I attempt to dial from a
device attached to an FXS port on my TDM800P (only after a reboot), I get
the following error:</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[Jan 10 04:23:05] WARNING[2975]: app_dial.c:1502
dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 -
Unknown)<BR> == Everyone is busy/congested at this time
(1:0/0/1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>BUT after the </FONT><FONT face=Arial size=2>first
INBOUND call to the device on that FXS port, I the issue disappears and the
device/port continues to work normally until the next reboot.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>NOTES:</FONT></DIV>
<DIV><FONT face=Arial size=2>Restarting Dahdi and/or reloading chan_dahdi does
not cause the issue to reappear</FONT></DIV>
<DIV><FONT face=Arial size=2>Restarting Asterisk does not cause the issue to
reappear</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ONE-LINE FIX ----</FONT></DIV>
<DIV>On line 8730</DIV>
<DIV><FONT face=Arial size=2>of chan_dahdi.c</FONT></DIV>
<DIV>replace a "return 0" with return "1".<BR></DIV>
<DIV>if (par.rxisoffhook)<BR>return 1;<BR>else<BR>- return 0;<BR>+ return
1;<BR></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>