[Home]

Summary:DAHLIN-00156: DAHDI not detecting RINGING Status on the Channel
Reporter:Mariano Lecuona (mlecuona)Labels:
Date Opened:2009-10-25 21:56:39Date Closed:2009-10-26 08:41:25
Priority:MajorRegression?No
Status:Closed/CompleteComponents:wctdm
Versions:2.2.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hi all,

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@outgoing_campaign/n for 501@queues:2 (Retry 1)
[Oct 22 23:42:03]     -- Executing [84776114@outgoing_campaign:1] Macro("Local/84776114@outgoing_campaign-d2c3,2", "recordcall|501|84776114")in new stack
[Oct 22 23:42:03]     -- Executing [s@macro-recordcall:1] GotoIf("Local/84776114@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@macro-recordcall:5] Set("Local/84776114@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@macro-recordcall:6] Set("Local/84776114@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@macro-recordcall:7] Set("Local/84776114@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@macro-recordcall:8] MixMonitor("Local/84776114@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@macro-recordcall:9] MacroExit("Local/84776114@outgoing_campaign-d2c3,2", "") in new stack
[Oct 22 23:42:03]     -- Executing [84776114@outgoing_campaign:2] Macro("Local/84776114@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@outgoing_campaign-d2c3,2
[Oct 22 23:42:03]     -- Executing [s@macro-dialtrunk-failover:1] GotoIf("Local/84776114@outgoing_campaign-d2c3,2", "0?1-fmsetcid|1") in new stack
[Oct 22 23:42:03]     -- Executing [s@macro-dialtrunk-failover:2] GotoIf("Local/84776114@outgoing_campaign-d2c3,2", "0?1-setgbobname|1") in new stack
[Oct 22 23:42:03]     -- Executing [s@macro-dialtrunk-failover:3] Set("Local/84776114@outgoing_campaign-d2c3,2", "CALLERID(num)=") in new stack
[Oct 22 23:42:03]     -- Executing [s@macro-dialtrunk-failover:4] GotoIf("Local/84776114@outgoing_campaign-d2c3,2", "0?1-dial|1") in new stack
[Oct 22 23:42:03]     -- Executing [s@macro-dialtrunk-failover:5] Set("Local/84776114@outgoing_campaign-d2c3,2", "CALLERID(all)=") in new stack
[Oct 22 23:42:03]     -- Executing [s@macro-dialtrunk-failover:6] Goto("Local/84776114@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@macro-dialtrunk-failover:1] Dial("Local/84776114@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@outgoing_campaign-d2c3,2
[Oct 22 23:42:05]        > Channel Local/84776114@outgoing_campaign-d2c3,1 was answered.
[Oct 22 23:42:05]     -- Executing [501@queues:2] Queue("Local/84776114@outgoing_campaign-d2c3,1", "501") in new stack
[Oct 22 23:42:05]     -- Started music on hold, class 'default', on channel 'Local/84776114@outgoing_campaign-d2c3,1'
[Oct 22 23:42:05]     -- outgoing agentcall, to agent '10009', on 'Local/1000@default-4a9e,1'
[Oct 22 23:42:05]     -- Executing [1000@default:1] Dial("Local/1000@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@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


Comments:By: Leif Madsen (lmadsen) 2009-10-26 08:41:24

I'm going to close this issue for now, as there are 2 separate methods you should probably take to resolve this issue:

1) if you have an actual Digium hardware board, then I would suggest you check with Digium support to file an issue with them. If they feel that is not the appropriate resolution, then please re-open this issue (assuming you have Digium hardware).

2) this could potentially be a configuration issue, so I would check with asterisk-users mailing list to see if you can confirm this is not a configuration issue, and if anyone else has seen the same.

Thanks!