<div dir="ltr">Hi there, i have an issue with asterisk open r2 and Telco pbx , my asterisk box uses a sangoma A108 with following configurations:<div><br></div><div>################################</div><div>span connected against telco:</div>
<div>#################################</div><div><br></div><div><div>#================================================</div><div># Sangoma Technologies Inc.</div><div>#================================================</div>
<div><br></div><div>[devices]</div><div>wanpipe4 = WAN_AFT_TE1, Comment</div><div><br></div><div>[interfaces]</div><div>w4g1 = wanpipe4, , TDM_VOICE, Comment</div><div><br></div><div>[wanpipe4]</div><div>CARD_TYPE <span class="" style="white-space:pre"> </span>= AFT</div>
<div>S514CPU <span class="" style="white-space:pre"> </span>= A</div><div>CommPort <span class="" style="white-space:pre"> </span>= PRI</div><div>AUTO_PCISLOT <span class="" style="white-space:pre"> </span>= NO</div><div>
PCISLOT <span class="" style="white-space:pre"> </span>= 4</div><div>PCIBUS <span class="" style="white-space:pre"> </span>= 2</div><div>FE_MEDIA<span class="" style="white-space:pre"> </span>= E1</div><div>FE_LCODE<span class="" style="white-space:pre"> </span>= HDB3</div>
<div>FE_FRAME<span class="" style="white-space:pre"> </span>= NCRC4</div><div>FE_LINE<span class="" style="white-space:pre"> </span>= 4</div><div>TE_CLOCK <span class="" style="white-space:pre"> </span>= NORMAL</div><div>
TE_REF_CLOCK = 0</div><div>TE_SIG_MODE = CAS</div><div>TE_HIGHIMPEDANCE<span class="" style="white-space:pre"> </span>= NO</div><div>TE_RX_SLEVEL = 430</div><div>HW_RJ45_PORT_MAP = DEFAULT</div><div>LBO <span class="" style="white-space:pre"> </span>= 120OH</div>
<div>FE_TXTRISTATE<span class="" style="white-space:pre"> </span>= NO</div><div>MTU <span class="" style="white-space:pre"> </span>= 1500</div><div>UDPPORT<span class="" style="white-space:pre"> </span>= 9000</div><div>
TTL<span class="" style="white-space:pre"> </span>= 255</div><div>IGNORE_FRONT_END<span class="" style="white-space:pre"> </span>= NO</div><div>TDMV_SPAN<span class="" style="white-space:pre"> </span>= 4</div><div>TDMV_DCHAN<span class="" style="white-space:pre"> </span>= 16</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>
<span class="" style="white-space:pre"> </span>#wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode </div><div>TDMV_HW_DTMF<span class="" style="white-space:pre"> </span>= NO<span class="" style="white-space:pre"> </span># YES: receive dtmf events from hardware</div>
<div>TDMV_HW_FAX_DETECT<span class="" style="white-space:pre"> </span>= NO<span class="" style="white-space:pre"> </span># YES: receive fax 1100hz events from hardware</div><div>HWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp (default) </div>
<div><span class="" style="white-space:pre"> </span># OCT_SPEECH: improves software tone detection by disabling NLP (echo possible)</div><div><span class="" style="white-space:pre"> </span># 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<span class="" style="white-space:pre"> </span># 0: disable -24-24: db values to be applied to tx signal</div>
<div>HWEC_RX_GAIN = 0<span class="" style="white-space:pre"> </span># 0: disable -24-24: db values to be applied to tx signal</div><div><br></div><div>[w4g1]</div><div>ACTIVE_CH<span class="" style="white-space:pre"> </span>= ALL</div>
<div>TDMV_HWEC<span class="" style="white-space:pre"> </span>= YES</div><div>MTU <span class="" style="white-space:pre"> </span>= 8</div><div><br></div><div><br></div><div>#########################</div><div>Dahdi/system.conf</div>
<div>#########################</div><div><div>span=4,0,0,cas,hdb3</div><div>cas=94-108,110-114:1101</div><div>hardhdlc=109</div><div><br></div></div><div><br></div><div>#############################</div><div>Asterisk configurations</div>
<div>############################</div><div><div>group=1</div><div>context=from-pstn</div><div>signalling=mfcr2</div><div>mfcr2_variant=itu</div><div>mfcr2_get_ani_first=yes</div><div><br></div><div>mfcr2_max_ani=10</div>
<div>mfcr2_max_dnis=20</div><div>mfcr2_immediate_accept=no</div><div>mfcr2_category=national_subscriber</div><div>mfcr2_call_files=yes</div><div>mfcr2_logdir=span4</div><div>mfcr2_logging=all</div><div>loglevel=error,warning,debug,notice,cas,mf</div>
<div>mfcr2_mfback_timeout=6000</div><div>mfcr2_metering_pulse_timeout=150000<br></div><div>;mfcr2_advanced_protocol_file=/etc/asterisk/r2proto.conf</div><div>channel =>94-108,110-114<br></div><div><br></div></div><div>
<br></div><div>##############################################</div><div><br></div><div>Asterisk Call Log from ANI=3564 to DNIS=2320</div><div><br></div><div>##############################################</div><div><br></div>
<div><div>-- Executing [s@macro-dialout-trunk:30] Dial("Local/2320@outrt-34-4652;2", "DAHDI/g1/2320,300,") in new stack</div><div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Requested to make call (ANI=3564, DNIS=2320, category=National Subscriber)</div>
<div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Call started at Wed Feb 19 16:45:41 2014 on chan 94 [openr2 version 1.3.3, revision (release)]</div><div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Outgoing call proceeding: ANI=3564, DNIS=2320, Category=National Subscriber</div>
<div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Tx >> [SEIZE] 0x00</div><div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Raw Tx >> 0x01</div>
<div> -- Called DAHDI/g1/2320</div><div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:7931 dahdi_handle_event: bits changed in chan 94</div><div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Bits changed from 0x08 to 0x0C</div>
<div>[Feb 19 16:45:41] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Persistence check is enabled, waiting 500 ms</div><div> -- Remote UNIX connection</div><div> -- Remote UNIX connection disconnected</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - calling timer 4 (cas_persistence_check) callback</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS signal 0x0C has persisted, handling ...</div>
<div>Chan 94 - Handling persistent pattern 0x0c</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Rx << [SEIZE ACK] 0x0C</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MFC/R2 call acknowledge!</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Sending DNIS digit 2</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Tx >> 2 [ON]</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Rx << 1 [ON]</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Tx >> 2 [OFF]</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Rx << 1 [OFF]</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Sending DNIS digit 3</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Tx >> 3 [ON]</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Group A DNIS request handled</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Rx << 5 [ON]</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Tx >> 3 [OFF]</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Rx << 5 [OFF]</div><div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Sending category National Subscriber</div>
<div>[Feb 19 16:45:42] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Tx >> 1 [ON]</div><div>[Feb 19 16:45:43] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Rx << 9 [ON]</div>
<div>[Feb 19 16:45:43] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Tx >> 1 [OFF]</div><div>[Feb 19 16:45:43] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - MF Rx << 9 [OFF]</div>
<div>[Feb 19 16:45:43] ERROR[7937]: chan_dahdi.c:4113 dahdi_r2_write_log: Chan 94 - Protocol error. Reason = Invalid Multi Frequency Tone, R2 State = Seize ACK Received, MF state = Category Transmitted, MF Group = Forward Group I, CAS = 0x0C</div>
<div>DNIS = 2320, ANI = 3564, MF = 0x39</div><div>[Feb 19 16:45:43] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Tx >> [IDLE] 0x08</div><div>[Feb 19 16:45:43] DEBUG[7937]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Raw Tx >> 0x09</div>
<div>[Feb 19 16:45:43] ERROR[7937]: chan_dahdi.c:3898 dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 94: Invalid Multi Frequency Tone</div><div> -- Hungup 'DAHDI/94-1'</div><div> == Everyone is busy/congested at this time (1:0/0/1)</div>
<div> -- Executing [s@macro-dialout-trunk:31] NoOp("Local/2320@outrt-34-4652;2", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 111") in new stack</div><div> -- Executing [s@macro-dialout-trunk:32] Goto("Local/2320@outrt-34-4652;2", "s-CHANUNAVAIL,1") in new stack</div>
<div> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)</div><div> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("Local/2320@outrt-34-4652;2", "RC=111") in new stack</div><div> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("Local/2320@outrt-34-4652;2", "111,1") in new stack</div>
<div> -- Goto (macro-dialout-trunk,111,1)</div><div> -- Executing [111@macro-dialout-trunk:1] Goto("Local/2320@outrt-34-4652;2", "continue,1") in new stack</div><div> -- Goto (macro-dialout-trunk,continue,1)</div>
<div> -- Executing [continue@macro-dialout-trunk:1] GotoIf("Local/2320@outrt-34-4652;2", "1?noreport") in new stack</div><div> -- Goto (macro-dialout-trunk,continue,3)</div><div> -- Executing [continue@macro-dialout-trunk:3] NoOp("Local/2320@outrt-34-4652;2", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 111 - failing through to other trunks") in new stack</div>
<div> -- Executing [continue@macro-dialout-trunk:4] ExecIf("Local/2320@outrt-34-4652;2", "0?Set(CALLERID(number)=)") in new stack</div><div> -- Executing [2320@outrt-34:7] Macro("Local/2320@outrt-34-4652;2", "outisbusy,") in new stack</div>
<div> -- Executing [s@macro-outisbusy:1] PlayTones("Local/2320@outrt-34-4652;2", "congestion") in new stack</div><div> -- Executing [s@macro-outisbusy:2] Congestion("Local/2320@outrt-34-4652;2", "5") in new stack</div>
<div>[Feb 19 16:45:43] DEBUG[7613]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - Bits changed from 0x0C to 0x08</div><div>[Feb 19 16:45:43] DEBUG[7613]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Persistence check is enabled, waiting 500 ms</div>
<div>[Feb 19 16:45:43] DEBUG[7613]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - calling timer 2 (cas_persistence_check) callback</div><div>[Feb 19 16:45:43] DEBUG[7613]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS signal 0x08 has persisted, handling ...</div>
<div>Chan 94 - Handling persistent pattern 0x08</div><div>[Feb 19 16:45:43] DEBUG[7613]: chan_dahdi.c:4120 dahdi_r2_write_log: Chan 94 - CAS Rx << [IDLE] 0x08</div><div>[Feb 19 16:45:43] NOTICE[7613]: chan_dahdi.c:4144 dahdi_r2_on_line_idle: Far end unblocked on chan 94</div>
</div><div><br></div><div><br></div><div>#####################################################</div><div>mfcr2 log file:</div><div><div>Call started at Wed Feb 19 09:57:52 2014 on chan 94 [openr2 version 1.3.3, revision (release)]</div>
<div>[09:57:52:327] [Thread: 140319757260544] [Chan 94] - Outgoing call proceeding: ANI=3564, DNIS=2320, Category=National Subscriber</div><div>[09:57:52:327] [Thread: 140319757260544] [Chan 94] - CAS Tx >> [SEIZE] 0x00</div>
<div>[09:57:52:327] [Thread: 140319757260544] [Chan 94] - CAS Raw Tx >> 0x01</div><div>[09:57:52:327] [Thread: 140319757260544] [Chan 94] - scheduled timer id 2 (r2_seize)</div><div>[09:57:52:452] [Thread: 140319757260544] [Chan 94] - Bits changed from 0x08 to 0x0C</div>
<div>[09:57:52:452] [Thread: 140319757260544] [Chan 94] - CAS Rx << [SEIZE ACK] 0x0C</div><div>[09:57:52:452] [Thread: 140319757260544] [Chan 94] - Attempting to cancel timer timer 2</div><div>[09:57:52:452] [Thread: 140319757260544] [Chan 94] - timer id 2 found, cancelling it now</div>
<div>[09:57:52:452] [Thread: 140319757260544] [Chan 94] - MFC/R2 call acknowledge!</div><div>[09:57:52:452] [Thread: 140319757260544] [Chan 94] - Sending DNIS digit 2</div><div>[09:57:52:453] [Thread: 140319757260544] [Chan 94] - MF Tx >> 2 [ON]</div>
<div>[09:57:52:747] [Thread: 140319757260544] [Chan 94] - MF Rx << 1 [ON]</div><div>[09:57:52:747] [Thread: 140319757260544] [Chan 94] - Attempting to cancel timer timer 0</div><div>[09:57:52:747] [Thread: 140319757260544] [Chan 94] - Cannot cancel timer 0</div>
<div>[09:57:52:747] [Thread: 140319757260544] [Chan 94] - MF Tx >> 2 [OFF]</div><div>[09:57:52:847] [Thread: 140319757260544] [Chan 94] - MF Rx << 1 [OFF]</div><div>[09:57:52:847] [Thread: 140319757260544] [Chan 94] - Sending DNIS digit 3</div>
<div>[09:57:52:847] [Thread: 140319757260544] [Chan 94] - MF Tx >> 3 [ON]</div><div>[09:57:52:847] [Thread: 140319757260544] [Chan 94] - Group A DNIS request handled</div><div>[09:57:53:147] [Thread: 140319757260544] [Chan 94] - MF Rx << 5 [ON]</div>
<div>[09:57:53:147] [Thread: 140319757260544] [Chan 94] - Attempting to cancel timer timer 0</div><div>[09:57:53:147] [Thread: 140319757260544] [Chan 94] - Cannot cancel timer 0</div><div>[09:57:53:147] [Thread: 140319757260544] [Chan 94] - MF Tx >> 3 [OFF]</div>
<div>[09:57:53:267] [Thread: 140319757260544] [Chan 94] - MF Rx << 5 [OFF]</div><div>[09:57:53:267] [Thread: 140319757260544] [Chan 94] - Sending category National Subscriber</div><div>[09:57:53:267] [Thread: 140319757260544] [Chan 94] - MF Tx >> 1 [ON]</div>
<div>[09:57:53:607] [Thread: 140319757260544] [Chan 94] - MF Rx << 9 [ON]</div><div>[09:57:53:607] [Thread: 140319757260544] [Chan 94] - Attempting to cancel timer timer 0</div><div>[09:57:53:607] [Thread: 140319757260544] [Chan 94] - Cannot cancel timer 0</div>
<div>[09:57:53:607] [Thread: 140319757260544] [Chan 94] - MF Tx >> 1 [OFF]</div><div>[09:57:53:727] [Thread: 140319757260544] [Chan 94] - MF Rx << 9 [OFF]</div><div>[09:57:53:727] [Thread: 140319757260544] [Chan 94] - Protocol error. Reason = Invalid Multi Frequency Tone, R2 State = Seize ACK Received, MF state = Category Transmitted, MF Group = Forward Group I, CAS = 0x0C</div>
<div>DNIS = 2320, ANI = 3564, MF = 0x39</div><div>[09:57:53:727] [Thread: 140319757260544] [Chan 94] - Attempting to cancel timer timer 0</div><div>[09:57:53:727] [Thread: 140319757260544] [Chan 94] - Cannot cancel timer 0</div>
</div><div>################################################################</div><div><br></div><div>Anyone can help me find out the root cause of the issue, our telco says that Variant is ITU, the same that i have configured on asterisk.</div>
<div><br></div>-- <br>Cumprimentos<div>José Seabra</div>
</div></div>