<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everione,<br>
<br>
I'm make some test with pri timer T309. I'm using asterisk 1.4.23.1,
libpri 1.4.9, dahdi-linux 2.1.0.4 and dahdi-tools 2.1.0.2. But in my
tests, the timer fail with a telco link in this scenario:<br>
<br>
Telco Phone &lt;----------&gt; Telco &lt;-----------&gt; Asterisk
&lt;------------&gt; Sip Phone<br>
<br>
When i make a call from Telco Phone to Sip Phone, the call complete,
but when i disconnect the link and reconnect in few seconds, the
Asterisk clear call:<br>
<br>
<b>[Apr&nbsp; 3 10:44:40] WARNING[13081]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 1: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] NOTICE[21088]: chan_dahdi.c:9558 pri_dchannel: PRI
got event: Alarm (4) on Primary D-channel of span 1</b><br>
&nbsp; <b>== Spawn extension (disc-from-trunk-TR001, 9800, 2) exited
non-zero on 'DAHDI/1-1'</b><br>
[Apr&nbsp; 3 10:44:40] WARNING[21088]: chan_dahdi.c:3021 pri_find_dchan: No
D-channels available!&nbsp; Using Primary channel 16 as D-channel anyway!<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 2: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 2: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 3: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 3: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 4: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 4: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 5: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 5: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 6: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 6: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 7: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 7: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 8: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 8: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 9: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 9: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 10: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 10: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 11: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 11: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 12: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 12: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 13: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 13: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 14: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 14: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 15: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 15: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 17: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 17: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 18: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 18: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 19: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 19: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 20: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 20: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 21: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 21: Invalid argument<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Active<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 22: Red Alarm<br>
q931.c:3009 q931_disconnect: call 1 on channel 1 enters state 11
(Disconnect Request)<br>
&gt; Protocol Discriminator: Q.931 (8)&nbsp; len=9<br>
&gt; Call Ref: len= 2 (reference 1/0x1) (Terminator)<br>
&gt; Message type: DISCONNECT (69)<br>
&gt; [08 02 81 90]<br>
&gt; Cause (len= 4) [ Ext: 1&nbsp; Coding: CCITT (ITU) standard (0)&nbsp; Spare:
0&nbsp; Location: Private network serving the local user (1)<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ext: 1&nbsp; Cause: Normal Clearing (16), class =
Normal Event (1) ]<br>
Unable to disable echo cancellation on channel 22: Invalid argument<br>
&nbsp;&nbsp;&nbsp; -- Hungup 'DAHDI/1-1'<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 23: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 23: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 24: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 24: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 25: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 25: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 26: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 26: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 27: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 27: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 28: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 28: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 29: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 29: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 30: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 30: Invalid argument<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:4385 handle_alarms:
Detected alarm on channel 31: Red Alarm<br>
[Apr&nbsp; 3 10:44:40] WARNING[21089]: chan_dahdi.c:2012 dahdi_disable_ec:
Unable to disable echo cancellation on channel 31: Invalid argument<br>
-- Timeout occured, restarting PRI<br>
q921.c:438 t200_expire: q921_state now is Q921_LINK_CONNECTION_RELEASED<br>
q<b>931.c:4019 q931_dl_indication: link is DOWN</b><br>
q931.c:4030 q931_dl_indication: cancel call 1 on channel 1 in state 11
(Disconnect Request)<br>
Sending Set Asynchronous Balanced Mode Extended<br>
q921.c:211 q921_send_sabme: q921_state now is Q921_AWAITING_ESTABLISH<br>
[Apr&nbsp; 3 10:44:44] WARNING[21088]: chan_dahdi.c:3021 pri_find_dchan: No
D-channels available!&nbsp; Using Primary channel 16 as D-channel anyway!<br>
q931.c:3996 pri_dl_down_cancelcall: Cancel non active call after data
link failure<br>
q931.c:3951 pri_internal_clear: call 1 on channel 1 enters state 0
(Null)<br>
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null<br>
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null<br>
&nbsp; == Primary D-Channel on span 1 up<br>
Sending Set Asynchronous Balanced Mode Extended<br>
Sending Set Asynchronous Balanced Mode Extended<br>
Sending Set Asynchronous Balanced Mode Extended<br>
Sending Set Asynchronous Balanced Mode Extended<br>
Sending Set Asynchronous Balanced Mode Extended<br>
<br>
Apparently, the call is cleared before the libpri execute a t309 code.<br>
<br>
My system.conf:<br>
<br>
loadzone=br<br>
defaultzone=br<br>
span=1,0,0,ccs,hdb3,crc4<br>
bchan=1-15,17-31<br>
dchan=16<br>
<br>
My chan_dahdi.conf<br>
<br>
[trunkgroups]<br>
<br>
[channels]<br>
language=pt_BR<br>
usecallerid=yes<br>
hidecallerid=no<br>
callwaiting=&gt; yes<br>
usecallingpres=&gt; yes<br>
callwaitingcallerid=yes<br>
threewaycalling=yes<br>
transfer=yes<br>
cancallforward=yes<br>
callreturn=yes<br>
immediate=no<br>
callerid=asreceived<br>
faxdetect=both<br>
loglevel=255<br>
mfcr2_logging=all<br>
mfcr2_call_files=yes<br>
mfcr2_accept_on_offer=no<br>
<br>
signalling=pri_cpe<br>
switchtype=euroisdn<br>
context=disc-from-trunk-TR001<br>
pridialplan=unknown<br>
prilocaldialplan=unknown<br>
resetinterval=never<br>
priindication=inband<br>
facilityenable=no<br>
overlapdial=no<br>
txgain=0.0<br>
rxgain=0.0<br>
internationalprefix=<br>
nationalprefix=<br>
localprefix=<br>
privateprefix=<br>
unknownprefix=<br>
priexclusieve=no<br>
pritimer=&gt;n200,3<br>
pritimer=&gt;k,7<br>
pritimer=&gt;t200,1000<br>
pritimer=&gt;t203,10000<br>
pritimer=&gt;t305,30000<br>
pritimer=&gt;t308,4000<br>
pritimer=&gt;t309,12000<br>
pritimer=&gt;t313,4000<br>
group=1<br>
callgroup=1<br>
pickupgroup=1<br>
channel =&gt; 1-15,17-31<br>
<br>
Forgive me for my poor English. Any suggestions?<br>
<br>
<pre class="moz-signature" cols="72">-- 
Afonso Zimmermann
</pre>
</body>
</html>