<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It&#8217;s not the DAHDI driver; it&#8217;s
the POTS service you are (presumably) using.&nbsp; The DAHDI driver works fine with
PRI/E1 interfaces, but POTS requires &#8220;human&#8221; knowledge (it can&#8217;t
tell if a line is ringing/answered, etc).&nbsp;&nbsp; The only &#8220;reasonable&#8221;
solution I can suggest for this scenario is a polarity/silence detect to keep
you from processing many minutes of silence and other garbage.&nbsp; LoopStart
instead of KewlStart has been suggested in some instances (possibly applicable
to you since you are non-US).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Mariano Lecuona<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, October 26, 2009
2:59 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] DAHDI
not detecting RINGING Status on the Channel</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=apple-style-span><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>I am using an 8 port tdm card and
also I implemented a dialer using a</span></font></span><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'><br>
<span class=apple-style-span>.call file generator. As you know on the .call you
specify the channel to</span><br>
<span class=apple-style-span>call and then the contex/extension/priority to let
dial plan continue when</span><br>
<span class=apple-style-span>the call is bridge.</span><br>
<span class=apple-style-span>My actual problem is that when the call process
starts, asterisk (DAHDI)</span><br>
<span class=apple-style-span>sets the channel as answered when the truth is
that on the other side the</span><br>
<span class=apple-style-span>channel has not started to ring yet. My felling is
that the DAHDI driver</span><br>
<span class=apple-style-span>cannot detect /understand the signaling of the
analog line. Here is the</span><br>
<span class=apple-style-span>evidence and configuration settings. I live in
Argentina BTW</span><br>
<br>
<span class=apple-style-span>Console output.</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Attempting call
on</span><br>
<span class=apple-style-span>Local/84776114@outgoing_campaign/n for
501@queues:2 (Retry 1)</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[84776114@outgoing_campaign:1]</span><br>
<span class=apple-style-span>Macro(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,</span><br>
<span class=apple-style-span>&quot;recordcall|501|84776114&quot;)in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-recordcall:1]</span><br>
<span class=apple-style-span>GotoIf(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;1?5:2&quot;) in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Goto
(macro-recordcall,s,5)</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-recordcall:5]</span><br>
<span class=apple-style-span>Set(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,</span><br>
<span class=apple-style-span>&quot;FILEREC=2009-10-22-23-42-03-SRC-501-DST-84776114&quot;)
in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-recordcall:6]</span><br>
<span class=apple-style-span>Set(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,</span><br>
<span class=apple-style-span>&quot;FILE_PATH=2009/10/22/2009-10-22-23-42-03-SRC-501-DST-84776114&quot;)
in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-recordcall:7]</span><br>
<span class=apple-style-span>Set(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,</span><br>
<span class=apple-style-span>&quot;CDR(userfield)=2009-10-22-23-42-03-SRC-501-DST-84776114.wav&quot;)
in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-recordcall:8]</span><br>
<span class=apple-style-span>MixMonitor(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,</span><br>
<span class=apple-style-span>&quot;/opt/rec/2009/10/22/2009-10-22-23-42-03-SRC-501-DST-84776114.wav|b&quot;)
in</span><br>
<span class=apple-style-span>new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-recordcall:9]</span><br>
<span class=apple-style-span>MacroExit(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;&quot;) in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[84776114@outgoing_campaign:2]</span><br>
<span class=apple-style-span>Macro(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,</span><br>
<span class=apple-style-span>&quot;dialtrunk-failover|DAHDI/R1/4776114|DAHDI/R2/4776114|DAHDI/R3/4776114|DAHDI/R4/4776114|span_1|span_2|span_3|span_4&quot;)</span><br>
<span class=apple-style-span>in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; == Begin MixMonitor
Recording</span><br>
<span class=apple-style-span>Local/84776114@outgoing_campaign-d2c3,2</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-dialtrunk-failover:1]</span><br>
<span class=apple-style-span>GotoIf(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;0?1-fmsetcid|1&quot;) in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-dialtrunk-failover:2]</span><br>
<span class=apple-style-span>GotoIf(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;0?1-setgbobname|1&quot;) in</span><br>
<span class=apple-style-span>new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-dialtrunk-failover:3]</span><br>
<span class=apple-style-span>Set(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;CALLERID(num)=&quot;) in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-dialtrunk-failover:4]</span><br>
<span class=apple-style-span>GotoIf(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;0?1-dial|1&quot;) in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-dialtrunk-failover:5]</span><br>
<span class=apple-style-span>Set(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;CALLERID(all)=&quot;) in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[s@macro-dialtrunk-failover:6]</span><br>
<span class=apple-style-span>Goto(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;1-dial|1&quot;) in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Goto
(macro-dialtrunk-failover,1-dial,1)</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Executing
[1-dial@macro-dialtrunk-failover:1]</span><br>
<span class=apple-style-span>Dial(&quot;Local/84776114@outgoing_campaign-d2c3,2&quot;,
&quot;DAHDI/R1/4776114|90|tT&quot;)</span><br>
<span class=apple-style-span>in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] &nbsp; &nbsp; -- Called
R1/4776114</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; -- DAHDI/4-1
answered</span><br>
<span class=apple-style-span>Local/84776114@outgoing_campaign-d2c3,2</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; &nbsp; &nbsp;&gt;
Channel Local/84776114@outgoing_campaign-d2c3,1</span><br>
<span class=apple-style-span>was answered.</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; -- Executing
[501@queues:2]</span><br>
<span class=apple-style-span>Queue(&quot;Local/84776114@outgoing_campaign-d2c3,1&quot;,
&quot;501&quot;) in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; -- Started music
on hold, class 'default', on</span><br>
<span class=apple-style-span>channel 'Local/84776114@outgoing_campaign-d2c3,1'</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; -- outgoing
agentcall, to agent '10009', on</span><br>
<span class=apple-style-span>'Local/1000@default-4a9e,1'</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; -- Executing
[1000@default:1]</span><br>
<span class=apple-style-span>Dial(&quot;Local/1000@default-4a9e,2&quot;,
&quot;SIP/1000&quot;) in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] &nbsp; &nbsp; -- Called 1000</span><br>
<span class=apple-style-span>[Oct 22 23:42:07] &nbsp; &nbsp; --
SIP/1000-0895df08 is ringing</span><br>
<span class=apple-style-span>[Oct 22 23:42:07] &nbsp; &nbsp; -- Agent/10009 is
ringing</span><br>
<br>
<br>
<span class=apple-style-span>** PLease see las line with [Oct 22 23:42:05] when
the output shows that</span><br>
<span class=apple-style-span>Called/xxxx and then says DAHDI/4-1 answered.</span><br>
<br>
<span class=apple-style-span>[root@pbx ~]# cat /asterisk/chan_dahdi.conf</span><br>
<span class=apple-style-span>[trunkgroups]</span><br>
<span class=apple-style-span>[channels]</span><br>
<span class=apple-style-span>language=ar</span><br>
<span class=apple-style-span>context=DID_trunk_1</span><br>
<span class=apple-style-span>signalling=fxs_ks</span><br>
<span class=apple-style-span>callwaiting=yes</span><br>
<span class=apple-style-span>hidecallerid=no</span><br>
<span class=apple-style-span>usecallingpres=yes</span><br>
<span class=apple-style-span>callwaitingcallerid=yes</span><br>
<span class=apple-style-span>threewaycalling=yes</span><br>
<span class=apple-style-span>transfer=yes</span><br>
<span class=apple-style-span>canpark=yes</span><br>
<span class=apple-style-span>cancallforward=yes</span><br>
<span class=apple-style-span>callreturn=yes</span><br>
<span class=apple-style-span>echocancel=no</span><br>
<span class=apple-style-span>echocancelwhenbridged=no</span><br>
<span class=apple-style-span>relaxdtmf=yes</span><br>
<span class=apple-style-span>usedistinctiveringdetection=yes</span><br>
<span class=apple-style-span>usecallingpres=yes</span><br>
<span class=apple-style-span>busydetect=yes</span><br>
<span class=apple-style-span>callprogress=yes</span><br>
<span class=apple-style-span>rxgain=2.0</span><br>
<span class=apple-style-span>txgain=2.0</span><br>
<span class=apple-style-span>;</span><br>
<span class=apple-style-span>group=1</span><br>
<span class=apple-style-span>channel =&gt; 1-8</span><br>
<span class=apple-style-span>callgroup=1</span><br>
<span class=apple-style-span>pickupgroup=1</span></span></font> <o:p></o:p></p>

</div>

</body>

</html>