[asterisk-users] DAHDI not detecting RINGING Status on the Channel

Danny Nicholas danny at debsinc.com
Mon Oct 26 15:07:50 CDT 2009


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).

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mariano
Lecuona
Sent: Monday, October 26, 2009 2:59 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] DAHDI not detecting RINGING Status on the Channel

 

I am using an 8 port tdm card and also I implemented a dialer using a
.call file generator. As you know on the .call you specify the channel to
call and then the contex/extension/priority to let dial plan continue when
the call is bridge.
My actual problem is that when the call process starts, asterisk (DAHDI)
sets the channel as answered when the truth is that on the other side the
channel has not started to ring yet. My felling is that the DAHDI driver
cannot detect /understand the signaling of the analog line. Here is the
evidence and configuration settings. I live in Argentina BTW

Console output.
[Oct 22 23:42:03]     -- Attempting call on
Local/84776114 at outgoing_campaign/n for 501 at queues:2 (Retry 1)
[Oct 22 23:42:03]     -- Executing [84776114 at outgoing_campaign:1]
Macro("Local/84776114 at outgoing_campaign-d2c3,2",
"recordcall|501|84776114")in new stack
[Oct 22 23:42:03]     -- Executing [s at macro-recordcall:1]
GotoIf("Local/84776114 at outgoing_campaign-d2c3,2", "1?5:2") in new stack
[Oct 22 23:42:03]     -- Goto (macro-recordcall,s,5)
[Oct 22 23:42:03]     -- Executing [s at macro-recordcall:5]
Set("Local/84776114 at outgoing_campaign-d2c3,2",
"FILEREC=2009-10-22-23-42-03-SRC-501-DST-84776114") in new stack
[Oct 22 23:42:03]     -- Executing [s at macro-recordcall:6]
Set("Local/84776114 at outgoing_campaign-d2c3,2",
"FILE_PATH=2009/10/22/2009-10-22-23-42-03-SRC-501-DST-84776114") in new
stack
[Oct 22 23:42:03]     -- Executing [s at macro-recordcall:7]
Set("Local/84776114 at outgoing_campaign-d2c3,2",
"CDR(userfield)=2009-10-22-23-42-03-SRC-501-DST-84776114.wav") in new
stack
[Oct 22 23:42:03]     -- Executing [s at macro-recordcall:8]
MixMonitor("Local/84776114 at outgoing_campaign-d2c3,2",
"/opt/rec/2009/10/22/2009-10-22-23-42-03-SRC-501-DST-84776114.wav|b") in
new stack
[Oct 22 23:42:03]     -- Executing [s at macro-recordcall:9]
MacroExit("Local/84776114 at outgoing_campaign-d2c3,2", "") in new stack
[Oct 22 23:42:03]     -- Executing [84776114 at outgoing_campaign:2]
Macro("Local/84776114 at outgoing_campaign-d2c3,2",
"dialtrunk-failover|DAHDI/R1/4776114|DAHDI/R2/4776114|DAHDI/R3/4776114|DAHDI
/R4/4776114|span_1|span_2|span_3|span_4")
in new stack
[Oct 22 23:42:03]   == Begin MixMonitor Recording
Local/84776114 at outgoing_campaign-d2c3,2
[Oct 22 23:42:03]     -- Executing [s at macro-dialtrunk-failover:1]
GotoIf("Local/84776114 at outgoing_campaign-d2c3,2", "0?1-fmsetcid|1") in new
stack
[Oct 22 23:42:03]     -- Executing [s at macro-dialtrunk-failover:2]
GotoIf("Local/84776114 at outgoing_campaign-d2c3,2", "0?1-setgbobname|1") in
new stack
[Oct 22 23:42:03]     -- Executing [s at macro-dialtrunk-failover:3]
Set("Local/84776114 at outgoing_campaign-d2c3,2", "CALLERID(num)=") in new
stack
[Oct 22 23:42:03]     -- Executing [s at macro-dialtrunk-failover:4]
GotoIf("Local/84776114 at outgoing_campaign-d2c3,2", "0?1-dial|1") in new
stack
[Oct 22 23:42:03]     -- Executing [s at macro-dialtrunk-failover:5]
Set("Local/84776114 at outgoing_campaign-d2c3,2", "CALLERID(all)=") in new
stack
[Oct 22 23:42:03]     -- Executing [s at macro-dialtrunk-failover:6]
Goto("Local/84776114 at outgoing_campaign-d2c3,2", "1-dial|1") in new stack
[Oct 22 23:42:03]     -- Goto (macro-dialtrunk-failover,1-dial,1)
[Oct 22 23:42:03]     -- Executing [1-dial at macro-dialtrunk-failover:1]
Dial("Local/84776114 at outgoing_campaign-d2c3,2", "DAHDI/R1/4776114|90|tT")
in new stack
[Oct 22 23:42:03]     -- Called R1/4776114
[Oct 22 23:42:05]     -- DAHDI/4-1 answered
Local/84776114 at outgoing_campaign-d2c3,2
[Oct 22 23:42:05]        > Channel Local/84776114 at outgoing_campaign-d2c3,1
was answered.
[Oct 22 23:42:05]     -- Executing [501 at queues:2]
Queue("Local/84776114 at outgoing_campaign-d2c3,1", "501") in new stack
[Oct 22 23:42:05]     -- Started music on hold, class 'default', on
channel 'Local/84776114 at outgoing_campaign-d2c3,1'
[Oct 22 23:42:05]     -- outgoing agentcall, to agent '10009', on
'Local/1000 at default-4a9e,1'
[Oct 22 23:42:05]     -- Executing [1000 at default:1]
Dial("Local/1000 at default-4a9e,2", "SIP/1000") in new stack
[Oct 22 23:42:05]     -- Called 1000
[Oct 22 23:42:07]     -- SIP/1000-0895df08 is ringing
[Oct 22 23:42:07]     -- Agent/10009 is ringing


** PLease see las line with [Oct 22 23:42:05] when the output shows that
Called/xxxx and then says DAHDI/4-1 answered.

[root at pbx ~]# cat /asterisk/chan_dahdi.conf
[trunkgroups]
[channels]
language=ar
context=DID_trunk_1
signalling=fxs_ks
callwaiting=yes
hidecallerid=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
relaxdtmf=yes
usedistinctiveringdetection=yes
usecallingpres=yes
busydetect=yes
callprogress=yes
rxgain=2.0
txgain=2.0
;
group=1
channel => 1-8
callgroup=1
pickupgroup=1 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091026/05bec941/attachment.htm 


More information about the asterisk-users mailing list