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