<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:arial, helvetica, sans-serif;}</style></head><body><div>maybe you can try to change the value of mfcr2_category with this list option :<br></div><div><br data-mce-bogus="1"></div><div><em>national_subscriber</em><br><em>national_priority_subscriber</em><br><em>international_subscriber</em><br><em>international_priority_subscriber</em><br><em>collect_call</em></div><div><em><br data-mce-bogus="1"></em></div><div>hope this help<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>----- Original Message -----<br>From: Ezequiel Quadri <ezequiel_quadri@hotmail.com><br>To: asterisk-r2@lists.digium.com<br>Sent: Fri, 16 Mar 2018 02:40:21 +0700 (WIB)<br>Subject: [asterisk-r2] Incoming calls hangs randomly prior R2 exchange<br></div><div><br></div><style style="display: none;" data-mce-style="display: none;"><!-- P {margin-top:0;margin-bottom:0;} --></style><div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: #000000; font-family: Calibri,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols;" data-mce-style="font-size: 12pt; color: #000000; font-family: Calibri,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols;"><p style="margin-top: 0; margin-bottom: 0;" data-mce-style="margin-top: 0; margin-bottom: 0;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><span>Hello everyone,</span><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><div><br></div><div>I have a issue with the A10Xe sangoma digital cards, using the following versions of WANPIPE 7.0.23, DAHDI 2.11.1, OpenR2 1.3.3 and Asterisk certified 13.13-cert9, on CentOS 7, to receive calls with CAS - MFC/R2 signaling on E1 trunks from Telefónica de<br> Argentina.</div><div>The phenomenon is that the incoming calls in some cases are handled correctly but in others the same call enters into two channels simultaneously, and a few milliseconds later are released from the TELCO without apparently reaching to exchange R2 signals.</div><div><br></div><div><br></div><div>In the asterisk console the following is observed:</div><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">New MFC/R2 call detected on chan 4.</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">New MFC/R2 call detected on chan 5.</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">Chan 4 - Far end disconnected. Reason: Normal Clearing</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">MFC/R2 call disconnected on channel 4</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">Chan 5 - Far end disconnected. Reason: Normal Clearing</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">MFC/R2 call disconnected on channel 5</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">MFC/R2 call end on channel 4</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">MFC/R2 call end on channel 5</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></div><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">OpenR2 call files:</span><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:236] [Thread: 140405976749824] [Chan 4] - Call started at Tue Mar 13 12:22:03 2018 on chan 4 [openr2 version 1.3.3, revision (release)]</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:236] [Thread: 140405976749824] [Chan 4] - Initialized R2 MF detector</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:236] [Thread: 140405976749824] [Chan 4] - CAS Tx >> [SEIZE ACK] 0x0C</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:236] [Thread: 140405976749824] [Chan 4] - CAS Raw Tx >> 0x0D</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:277] [Thread: 140405976749824] [Chan 4] - Bits changed from 0x00 to 0x08</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:277] [Thread: 140405976749824] [Chan 4] - CAS Rx << [CLEAR FORWARD] 0x08</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:277] [Thread: 140405976749824] [Chan 4] - Far end disconnected. Reason: Normal Clearing</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:277] [Thread: 140405976749824] [Chan 4] - Call ended</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:277] [Thread: 140405976749824] [Chan 4] - Attempting to cancel timer timer 0</div><div style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;" data-mce-style="font-size: 16px; font-family: Calibri,Helvetica,sans-serif;">[12:22:03:277] [Thread: 140405976749824] [Chan 4] - Cannot cancel timer 0</div><p><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><p style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></p><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:236] [Thread: 140405976241920] [Chan 5] - Call started at Tue Mar 13 12:22:03 2018 on chan 5 [openr2 version 1.3.3, revision (release)]</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:236] [Thread: 140405976241920] [Chan 5] - Initialized R2 MF detector</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:236] [Thread: 140405976241920] [Chan 5] - CAS Tx >> [SEIZE ACK] 0x0C</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:236] [Thread: 140405976241920] [Chan 5] - CAS Raw Tx >> 0x0D</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:277] [Thread: 140405976241920] [Chan 5] - Bits changed from 0x00 to 0x08</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:277] [Thread: 140405976241920] [Chan 5] - CAS Rx << [CLEAR FORWARD] 0x08</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:277] [Thread: 140405976241920] [Chan 5] - Far end disconnected. Reason: Normal Clearing</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:277] [Thread: 140405976241920] [Chan 5] - Call ended</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:277] [Thread: 140405976241920] [Chan 5] - Attempting to cancel timer timer 0</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">[12:22:03:277] [Thread: 140405976241920] [Chan 5] - Cannot cancel timer 0</div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">Some additional information:</span><br></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></span></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;">wanpipe2.conf:</span></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></span></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><div>[devices]</div><div>wanpipe2 = WAN_AFT_TE1, Comment</div><div><br></div><div>[interfaces]</div><div>w2g1 = wanpipe2, , TDM_VOICE, Comment</div><div><br></div></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><div>[wanpipe2]</div><div>CARD_TYPE = AFT</div><div>S514CPU = A</div><div>CommPort = PRI</div><div>AUTO_PCISLOT = NO</div><div>PCISLOT = 4</div><div>PCIBUS = 3</div><div>FE_MEDIA = E1</div><div>FE_LCODE = HDB3</div><div>FE_FRAME = NCRC4</div><div>FE_LINE = 2</div><div>TE_CLOCK = NORMAL</div><div>TE_REF_CLOCK = 0</div><div>TE_SIG_MODE = CAS</div><div>TE_HIGHIMPEDANCE = NO</div><div>TE_RX_SLEVEL = 430</div><div>HW_RJ45_PORT_MAP = DEFAULT</div><div>LBO = 120OH</div><div>FE_TXTRISTATE = NO</div><div>MTU = 1500</div><div>UDPPORT = 9000</div><div>TTL = 255</div><div>IGNORE_FRONT_END = NO</div><div>TDMV_SPAN = 2</div><div>TDMV_DCHAN = 0</div><div>TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS Blue Alarm and keep line down</div><div> #wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode</div><div> #wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode</div><div>TDMV_HW_DTMF = NO # YES: receive dtmf events from hardware</div><div>TDMV_HW_FAX_DETECT = NO # YES: receive fax 1100hz events from hardware</div><div>HWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp (default)</div><div> # OCT_SPEECH: improves software tone detection by disabling NLP (echo possible)</div><div> # OCT_NO_ECHO:disables echo cancelation but allows VQE/tone functions.</div><div>HWEC_DTMF_REMOVAL = NO # NO: default YES: remove dtmf out of incoming media (must have hwdtmf enabled)</div><div>HWEC_NOISE_REDUCTION = NO # NO: default YES: reduces noise on the line - could break fax</div><div>HWEC_ACUSTIC_ECHO = NO # NO: default YES: enables acustic echo cancelation</div><div>HWEC_NLP_DISABLE = NO # NO: default YES: guarantees software tone detection (possible echo)</div><div>HWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)</div><div>HWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)</div><div>HWEC_TX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal</div><div>HWEC_RX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal</div><div><br></div><div>[w2g1]</div><div>ACTIVE_CH = ALL</div><div>TDMV_HWEC = NO</div><div>MTU = 8</div><div><br></div><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br>dahdi/system.conf:</span></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><span style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><br></span></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><div>loadzone=ar</div><div>defaultzone=ar</div><div><br></div><div><div>#Sangoma A102 port 1 [slot:4 bus:3 span:1] <wanpipe1></div><div>span=1,1,0,ccs,hdb3</div><div>bchan=1-15,17-31</div><div>hardhdlc=16</div><div><br></div></div><div>#Sangoma A102 port 2 [slot:4 bus:3 span:2] <wanpipe2></div><div>span=2,2,0,cas,hdb3</div><div>cas=32-46:1101</div><div>#dchan=47</div><div>cas=48-62:1101</div><div><br></div><div>chan_dahdi.conf:</div><div><br></div><div><div>[trunkgroups]</div><div><br></div><div>[channels]</div><div>context=default</div><div>usecallerid=yes</div><div>hidecallerid=no</div><div>callwaiting=yes</div><div>usecallingpres=yes</div><div>callwaitingcallerid=yes</div><div>threewaycalling=yes</div><div>transfer=yes</div><div>canpark=yes</div><div>cancallforward=yes</div><div>callreturn=yes</div><div>echocancel=no</div><div>echocancelwhenbridged=no</div><div>relaxdtmf=yes</div><div>rxgain=0.0</div><div>txgain=0.0</div><div>group=1</div><div>callgroup=1</div><div>pickupgroup=1</div><div>immediate=no</div><div><br></div><div>;Sangoma A102 port 1 [slot:4 bus:3 span:1] <wanpipe1></div><div>switchtype=euroisdn</div><div>context=trunk_1</div><div>group=1</div><div>echocancel=no</div><div>signalling=pri_cpe</div><div>channel =>1-15,17-31</div><div><br></div><div><div>;Sangoma A102 port 2 [slot:4 bus:3 span:2] <wanpipe2></div><div>context=trunk_2</div><div>group=1</div><div>echocancel=no</div><div>signalling=mfcr2</div><div>mfcr2_variant=ar</div><div>mfcr2_get_ani_first=no</div><div>mfcr2_max_ani=0</div><div>mfcr2_max_dnis=4</div><div>mfcr2_category=national_subscriber</div><div>mfcr2_mfback_timeout=-1</div><div>mfcr2_immediate_accept=yes</div><div>mfcr2_skip_category=yes</div><div>;mfcr2_metering_pulse_timeout=500</div><div>mfcr2_forced_release=yes</div><div>mfcr2_call_files=yes</div><div>mfcr2_logdir=log</div><div>loglevel=all</div><div>mfcr2_logging=all</div><div>;mfcr2_advanced_protocol_file=/etc/asterisk/r2proto.conf</div><div><br></div><div>hidecallerid=yes</div><div>channel => 32-46,48-62</div><div><br></div></div></div><div><br></div></div><div style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri,Helvetica,sans-serif; font-size: 16px;"><div>I have already checked that there are no clock issues, frame errors, fifo overruns errors, toggle acpi on/off, set timers.cas_persistence_check, <span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;" data-mce-style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;">mfcr2_metering_pulse_timeout</span></span>,<br> and other tests.</div><div><br></div><div><span>I hope you can help me to identify the problem, thanks in advance.</span></div><div><span><br></span></div><div><span><span>Regards</span>, </span></div><div><span>Ezequiel Quadri</span></div></div><p><br></p></div><div><br></div><div><br></div><div>-- <br></div><div><em>Product Development Department</em></div><div><em>PT. Graha Informatika Nusantara</em></div></body></html>