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

[r...@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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to