Hello all there.<br><br>We're having trouble with calls being dropped on our asterisk box and we can't find out why.<br><br>I'm working with asterisk 1.6.2.0 + DAHDI 2.4.1.2 + OpenR2 1.2.0, with a quad E1 Redfone. We work 2 E1s with our provider in Cali Colombia and 2 E1s against an old legacy PBX (Siemens EMS 601).<br>
<br>With our provider everything is ok, calls are set up with no problem at all.<br><br>The problem is on incoming calls, they are dropped suddenly after they are established. Even the time after the calls are dropped is totally random, so there nothing there that could help us to find out what's going on. We have placed an IP Phone to receive some calls and everything is fine, so the problem is between our asterisk and Siemens PBX. Checking the mfcr2 logs, after the call is established appears a message saying "Bits changed from 0x04 to 0x08" and the call is dropped. This happens with only one call.<br>
<br>Sometimes, after the call is established another incoming call generates an error message saying "Invalid CAS", after this message, all the calls in that span are dropped.<br><br>We have tried with all the mfcr2 variants and is the same thing or worse with someones. The PBX programmer say they are working with br variant, but with this variant we can't make outbound calls and incoming calls are dropped too. He says that he can't see what's happening in the siemens PBX because he doesn't have the appropriate software for tracing, so we're stucked because we can't see any log on the legacy PBX.<br>
<br>These are my configuration files:<br><br>****************************************************************chan_dahdi.conf*********************************************************************************************<br>
[channels]<br>language=es<br>context=default<br>usecallerid=yes<br>hidecallerid=no<br>callwaiting=yes<br>usecallingpres=yes<br>callwaitingcallerid=yes<br>threewaycalling=yes<br>transfer=yes<br>canpark=yes<br>cancallforward=yes<br>
callreturn=yes<br>echocancel=yes<br>echocancelwhenbridged=no <br>;faxdetect=no<br>busydetect=no<br>callprogress=no<br>relaxdtmf=yes<br>rxgain=0.0<br>txgain=0.0<br>callgroup=1<br>pickupgroup=1<br>;<br>signalling=mfcr2<br>
mfcr2_variant=itu ;AR ;CN ;CZ ;PH ;MX ;EC ;VE ;BR ;co ;ar ;br<br>; mfcr2_immediate_accept=yes<br>mfcr2_max_ani=20 <br>mfcr2_max_dnis=20 <br>mfcr2_category=national_subscriber<br>mfcr2_get_ani_first=no<br>
mfcr2_advanced_protocol_file=/etc/asterisk/openr2.conf<br>; mfcr2_metering_pulse_timeout=0<br>; mfcr2_charge_calls=yes<br>; mfcr2_mfback_timeout=3000<br>; The next three params are for debuging, you can disable when in production<br>
mfcr2_call_files=yes<br>mfcr2_logdir=/var/log/embratel<br>mfcr2_logging=all<br><br>group=0<br>context=planta<br>channel => 1-15<br>channel => 17-31<br>channel => 32-46<br>channel => 48-62<br><br>group=1<br>context=entrante<br>
channel => 63-77<br>channel => 79-93<br>channel => 94-108<br>channel => 110-124<br>***************************************************************chan_dahdi.conf******************************************************************************************<br>
<br>***************************************************************openr2.conf***********************************************************************************************<br>mf_g1_tones.no_more_dnis_available=X<br>***************************************************************openr2.conf***********************************************************************************************<br>
<br><br><br>And this is the log of a dropped call made from the IP phone to an extension in the Siemens PBX.<br><br><br><br><br>***************************************************************chan-1-forward-0-20110718154508.call*************************************************************<br>
<br>[15:45:08:004] [Thread: 3044408208] [Chan 1] - M - Call started at Mon Jul 18 15:45:08 2011 on chan 1 [openr2 version 1.2.0, revision (release)]<br>[15:45:08:004] [Thread: 3044408208] [Chan 1] - M - CAS Tx >> [SEIZE] 0x00<br>
[15:45:08:004] [Thread: 3044408208] [Chan 1] - M - CAS Raw Tx >> 0x01<br>[15:45:08:004] [Thread: 3044408208] [Chan 1] - M - scheduled timer id 2 (r2_seize)<br>[15:45:08:047] [Thread: 3044408208] [Chan 1] - M - Bits changed from 0x08 to 0x0C<br>
[15:45:08:047] [Thread: 3044408208] [Chan 1] - M - CAS Rx << [SEIZE ACK] 0x0C<br>[15:45:08:047] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 2<br>[15:45:08:047] [Thread: 3044408208] [Chan 1] - M - timer id 2 found, cancelling it now<br>
[15:45:08:047] [Thread: 3044408208] [Chan 1] - M - Sending DNIS digit 4<br>[15:45:08:047] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 4 [ON]<br>[15:45:08:183] [Thread: 3044408208] [Chan 1] - M - MF Rx << 1 [ON]<br>
[15:45:08:183] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:08:183] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:08:183] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 4 [OFF]<br>
[15:45:08:323] [Thread: 3044408208] [Chan 1] - M - MF Rx << 1 [OFF]<br>[15:45:08:323] [Thread: 3044408208] [Chan 1] - M - Sending DNIS digit 7<br>[15:45:08:323] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 7 [ON]<br>
[15:45:08:323] [Thread: 3044408208] [Chan 1] - M - Group A DNIS request handled<br>[15:45:08:463] [Thread: 3044408208] [Chan 1] - M - MF Rx << 1 [ON]<br>[15:45:08:463] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>
[15:45:08:463] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:08:463] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 7 [OFF]<br>[15:45:08:603] [Thread: 3044408208] [Chan 1] - M - MF Rx << 1 [OFF]<br>
[15:45:08:603] [Thread: 3044408208] [Chan 1] - M - Sending DNIS digit 6<br>[15:45:08:603] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 6 [ON]<br>[15:45:08:603] [Thread: 3044408208] [Chan 1] - M - Group A DNIS request handled<br>
[15:45:08:743] [Thread: 3044408208] [Chan 1] - M - MF Rx << 1 [ON]<br>[15:45:08:743] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:08:743] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>
[15:45:08:743] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 6 [OFF]<br>[15:45:08:863] [Thread: 3044408208] [Chan 1] - M - MF Rx << 1 [OFF]<br>[15:45:08:863] [Thread: 3044408208] [Chan 1] - M - Sending DNIS digit 2<br>
[15:45:08:863] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 2 [ON]<br>[15:45:08:863] [Thread: 3044408208] [Chan 1] - M - Group A DNIS request handled<br>[15:45:09:003] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [ON]<br>
[15:45:09:003] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:09:003] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:09:003] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 2 [OFF]<br>
[15:45:09:143] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [OFF]<br>[15:45:09:143] [Thread: 3044408208] [Chan 1] - M - Sending category National Subscriber<br>[15:45:09:143] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 1 [ON]<br>
[15:45:09:263] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [ON]<br>[15:45:09:263] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:09:263] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>
[15:45:09:263] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 1 [OFF]<br>[15:45:09:383] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [OFF]<br>[15:45:09:383] [Thread: 3044408208] [Chan 1] - M - Sending ANI digit 5<br>
[15:45:09:383] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 5 [ON]<br>[15:45:09:523] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [ON]<br>[15:45:09:523] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>
[15:45:09:523] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:09:523] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 5 [OFF]<br>[15:45:09:643] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [OFF]<br>
[15:45:09:643] [Thread: 3044408208] [Chan 1] - M - Sending ANI digit 0<br>[15:45:09:643] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 0 [ON]<br>[15:45:09:763] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [ON]<br>
[15:45:09:763] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:09:763] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:09:763] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 0 [OFF]<br>
[15:45:09:883] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [OFF]<br>[15:45:09:883] [Thread: 3044408208] [Chan 1] - M - Sending ANI digit 0<br>[15:45:09:883] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 0 [ON]<br>
[15:45:10:023] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [ON]<br>[15:45:10:023] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:10:023] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>
[15:45:10:023] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 0 [OFF]<br>[15:45:10:123] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [OFF]<br>[15:45:10:123] [Thread: 3044408208] [Chan 1] - M - Sending ANI digit 0<br>
[15:45:10:123] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 0 [ON]<br>[15:45:10:243] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [ON]<br>[15:45:10:243] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>
[15:45:10:243] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:10:243] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 0 [OFF]<br>[15:45:10:383] [Thread: 3044408208] [Chan 1] - M - MF Rx << 5 [OFF]<br>
[15:45:10:383] [Thread: 3044408208] [Chan 1] - M - Sending more ANI unavailable<br>[15:45:10:383] [Thread: 3044408208] [Chan 1] - M - MF Tx >> F [ON]<br>[15:45:10:523] [Thread: 3044408208] [Chan 1] - M - MF Rx << 3 [ON]<br>
[15:45:10:523] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:10:523] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:10:523] [Thread: 3044408208] [Chan 1] - M - MF Tx >> F [OFF]<br>
[15:45:10:643] [Thread: 3044408208] [Chan 1] - M - MF Rx << 3 [OFF]<br>[15:45:10:643] [Thread: 3044408208] [Chan 1] - M - Sending category National Subscriber<br>[15:45:10:643] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 1 [ON]<br>
[15:45:10:763] [Thread: 3044408208] [Chan 1] - M - MF Rx << 6 [ON]<br>[15:45:10:763] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:10:763] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>
[15:45:10:763] [Thread: 3044408208] [Chan 1] - M - MF Tx >> 1 [OFF]<br>[15:45:10:903] [Thread: 3044408208] [Chan 1] - M - MF Rx << 6 [OFF]<br>[15:45:10:903] [Thread: 3044408208] [Chan 1] - M - scheduled timer id 3 (r2_answer)<br>
[15:45:11:702] [Thread: 3044408208] [Chan 1] - M - Bits changed from 0x0C to 0x04<br>[15:45:11:702] [Thread: 3044408208] [Chan 1] - M - CAS Rx << [ANSWER] 0x04<br>[15:45:11:702] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 3<br>
[15:45:11:702] [Thread: 3044408208] [Chan 1] - M - timer id 3 found, cancelling it now<br>[15:45:11:702] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:11:702] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>
[15:45:26:842] [Thread: 3044408208] [Chan 1] - M - Bits changed from 0x04 to 0x08<br>[15:45:26:842] [Thread: 3044408208] [Chan 1] - M - CAS Rx << [CLEAR FORWARD] 0x08<br>[15:45:26:842] [Thread: 3044408208] [Chan 1] - M - Far end disconnected. Reason: Normal Clearing<br>
[15:45:26:844] [Thread: 3044408208] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:26:844] [Thread: 3044408208] [Chan 1] - M - Cannot cancel timer 0<br>[15:45:26:844] [Thread: 3044408208] [Chan 1] - M - CAS Tx >> [CLEAR FORWARD] 0x08<br>
[15:45:26:844] [Thread: 3044408208] [Chan 1] - M - CAS Raw Tx >> 0x09<br>[15:45:26:859] [Thread: 3057417104] [Chan 1] - M - Bits changed from 0x08 to 0x0C<br>[15:45:26:859] [Thread: 3057417104] [Chan 1] - M - CAS Rx << [CLEAR BACK] 0x0C<br>
[15:45:27:534] [Thread: 3057417104] [Chan 1] - M - Bits changed from 0x0C to 0x08<br>[15:45:27:534] [Thread: 3057417104] [Chan 1] - M - CAS Rx << [IDLE] 0x08<br>[15:45:27:534] [Thread: 3057417104] [Chan 1] - M - Call ended<br>
[15:45:27:534] [Thread: 3057417104] [Chan 1] - M - Attempting to cancel timer timer 0<br>[15:45:27:534] [Thread: 3057417104] [Chan 1] - M - Cannot cancel timer 0<br><br>************************************************chan-1-forward-0-20110718154508.call********************************************************************************<br>
<br><br>We have also used the "timers.cas_persistence_check=3000" parameter and the calls are dropped too.<br><br><br><br>Thanks in advance for any help on this.<br>-- <br><div>Juan Pablo Villarreal<br>Ingeniero Electrónico<br>
email: <a href="mailto:jvillarreal@opengroupsa.com" target="_blank">jvillarreal@opengroupsa.com</a><br>Santiago de Cali <br>Colombia<br></div><br><div><br></div>
<div><br></div>
<div><span style="font-size:13px;font-family:arial,sans-serif;border-collapse:collapse"><b><span style="font-size:10pt;color:rgb(31, 73, 125)"><br><a style="color:rgb(66, 99, 171)" href="http://www.opengroupsa.com/" target="_blank"></a></span></b></span></div>
<br>