<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’s not the DAHDI driver; it’s
the POTS service you are (presumably) using. The DAHDI driver works fine with
PRI/E1 interfaces, but POTS requires “human” knowledge (it can’t
tell if a line is ringing/answered, etc). The only “reasonable”
solution I can suggest for this scenario is a polarity/silence detect to keep
you from processing many minutes of silence and other garbage. 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> </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> </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] -- 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] -- Executing
[84776114@outgoing_campaign:1]</span><br>
<span class=apple-style-span>Macro("Local/84776114@outgoing_campaign-d2c3,2",</span><br>
<span class=apple-style-span>"recordcall|501|84776114")in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-recordcall:1]</span><br>
<span class=apple-style-span>GotoIf("Local/84776114@outgoing_campaign-d2c3,2",
"1?5:2") in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Goto
(macro-recordcall,s,5)</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-recordcall:5]</span><br>
<span class=apple-style-span>Set("Local/84776114@outgoing_campaign-d2c3,2",</span><br>
<span class=apple-style-span>"FILEREC=2009-10-22-23-42-03-SRC-501-DST-84776114")
in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-recordcall:6]</span><br>
<span class=apple-style-span>Set("Local/84776114@outgoing_campaign-d2c3,2",</span><br>
<span class=apple-style-span>"FILE_PATH=2009/10/22/2009-10-22-23-42-03-SRC-501-DST-84776114")
in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-recordcall:7]</span><br>
<span class=apple-style-span>Set("Local/84776114@outgoing_campaign-d2c3,2",</span><br>
<span class=apple-style-span>"CDR(userfield)=2009-10-22-23-42-03-SRC-501-DST-84776114.wav")
in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-recordcall:8]</span><br>
<span class=apple-style-span>MixMonitor("Local/84776114@outgoing_campaign-d2c3,2",</span><br>
<span class=apple-style-span>"/opt/rec/2009/10/22/2009-10-22-23-42-03-SRC-501-DST-84776114.wav|b")
in</span><br>
<span class=apple-style-span>new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-recordcall:9]</span><br>
<span class=apple-style-span>MacroExit("Local/84776114@outgoing_campaign-d2c3,2",
"") in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[84776114@outgoing_campaign:2]</span><br>
<span class=apple-style-span>Macro("Local/84776114@outgoing_campaign-d2c3,2",</span><br>
<span class=apple-style-span>"dialtrunk-failover|DAHDI/R1/4776114|DAHDI/R2/4776114|DAHDI/R3/4776114|DAHDI/R4/4776114|span_1|span_2|span_3|span_4")</span><br>
<span class=apple-style-span>in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] == 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] -- Executing
[s@macro-dialtrunk-failover:1]</span><br>
<span class=apple-style-span>GotoIf("Local/84776114@outgoing_campaign-d2c3,2",
"0?1-fmsetcid|1") in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-dialtrunk-failover:2]</span><br>
<span class=apple-style-span>GotoIf("Local/84776114@outgoing_campaign-d2c3,2",
"0?1-setgbobname|1") in</span><br>
<span class=apple-style-span>new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-dialtrunk-failover:3]</span><br>
<span class=apple-style-span>Set("Local/84776114@outgoing_campaign-d2c3,2",
"CALLERID(num)=") in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-dialtrunk-failover:4]</span><br>
<span class=apple-style-span>GotoIf("Local/84776114@outgoing_campaign-d2c3,2",
"0?1-dial|1") in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-dialtrunk-failover:5]</span><br>
<span class=apple-style-span>Set("Local/84776114@outgoing_campaign-d2c3,2",
"CALLERID(all)=") in new</span><br>
<span class=apple-style-span>stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[s@macro-dialtrunk-failover:6]</span><br>
<span class=apple-style-span>Goto("Local/84776114@outgoing_campaign-d2c3,2",
"1-dial|1") in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Goto
(macro-dialtrunk-failover,1-dial,1)</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Executing
[1-dial@macro-dialtrunk-failover:1]</span><br>
<span class=apple-style-span>Dial("Local/84776114@outgoing_campaign-d2c3,2",
"DAHDI/R1/4776114|90|tT")</span><br>
<span class=apple-style-span>in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:03] -- Called
R1/4776114</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] -- 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] >
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] -- Executing
[501@queues:2]</span><br>
<span class=apple-style-span>Queue("Local/84776114@outgoing_campaign-d2c3,1",
"501") in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] -- 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] -- 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] -- Executing
[1000@default:1]</span><br>
<span class=apple-style-span>Dial("Local/1000@default-4a9e,2",
"SIP/1000") in new stack</span><br>
<span class=apple-style-span>[Oct 22 23:42:05] -- Called 1000</span><br>
<span class=apple-style-span>[Oct 22 23:42:07] --
SIP/1000-0895df08 is ringing</span><br>
<span class=apple-style-span>[Oct 22 23:42:07] -- 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 => 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>