[asterisk-r2] RES: DTMF Setup

Moises Silva moises.silva at gmail.com
Thu Nov 27 13:50:39 CST 2008


Thanks, let's try this. I think there may be a noisy line or something
that is causing that a tone is intermittent. We need to increase the
threshold time used to detect a signal.

in your chan_dahdi.conf add this:

mfcr2_advanced_protocol_file=/etc/asterisk/r2proto.conf

Then create the file /etc/asterisk/r2proto.conf with this content:

mf_threshold=100

Note that no spaces are allowed, so don't put mf_threshold = 100 or such.

Restart asterisk, try again and send us again the call log if still fails.

Moy

On Thu, Nov 27, 2008 at 1:34 PM, Cordeiro, Marco
<marco.cordeiro at globalstar.com.br> wrote:
> Hello Moy,
>
> Following is my clock configuration, as set in system.conf:
>
> # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) HDB3/ RED
> span=1,2,0,cas,hdb3
> cas=1-15:1101
> cas=17-31:1101
> dchan=16
>
> I have already tried with options "0" and "1" as well, and none of them
> worked.
>
> This is my chan_dahdi.conf:
>
> [channels]
> usecallerid = yes
> callwaiting = yes
> callwaitingcallerid = yes
> usecallingpres = yes
> threewaycalling = yes
> callreturn = yes
> transfer = yes
> cancallforward = yes
> echocancelwhenbridged = yes
> echocancel = yes
>
> ;Span#1
> group = 1
> callgroup = 1
> pickupgroup = 1
> context = neax
> signalling = mfcr2
> mfcr2_variant = br
> mfcr2_get_ani_first = yes
> mfcr2_max_ani = 20
> mfcr2_max_dnis = 20
> mfcr2_category = national_subscriber
> mfcr2_call_files=yes
> mfcr2_logdir = span1
> mfcr2_logging = all
> channel = 1-15
> channel = 17-31
>
> And following is the log for a call that should have the DNIS 0212135347333,
> and instead the DNIS sent was 0212135534473.
>
> The log was collected while timing source was set as "2".
>
> [14:43:35:211] [Thread: 3066784656] [Chan 30] - Call started at Thu Nov 27
> 14:43:35 2008 on chan 30
> [14:43:35:211] [Thread: 3066784656] [Chan 30] - ABCD Tx >> [SEIZE ACK] 0x0C
> [14:43:35:211] [Thread: 3066784656] [Chan 30] - ABCD Raw Tx >> 0x0D
> [14:43:35:762] [Thread: 3066784656] [Chan 30] - MF Rx << 0 [ON]
> [14:43:35:762] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 0
> [14:43:35:763] [Thread: 3066784656] [Chan 30] - DNIS so far: 0, expected
> length: 20
> [14:43:35:763] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [ON]
> [14:43:35:862] [Thread: 3066784656] [Chan 30] - MF Rx << 0 [OFF]
> [14:43:35:862] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [OFF]
> [14:43:35:962] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [ON]
> [14:43:35:963] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [ON]
> [14:43:36:042] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [OFF]
> [14:43:36:042] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [OFF]
> [14:43:36:142] [Thread: 3066784656] [Chan 30] - MF Rx << 5 [ON]
> [14:43:36:142] [Thread: 3066784656] [Chan 30] - Getting ANI digit 5
> [14:43:36:142] [Thread: 3066784656] [Chan 30] - ANI so far: 5, expected
> length: 20
> [14:43:36:142] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [ON]
> [14:43:36:222] [Thread: 3066784656] [Chan 30] - MF Rx << 5 [OFF]
> [14:43:36:222] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [OFF]
> [14:43:36:322] [Thread: 3066784656] [Chan 30] - MF Rx << 0 [ON]
> [14:43:36:322] [Thread: 3066784656] [Chan 30] - Getting ANI digit 0
> [14:43:36:322] [Thread: 3066784656] [Chan 30] - ANI so far: 50, expected
> length: 20
> [14:43:36:323] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [ON]
> [14:43:36:362] [Thread: 3066784656] [Chan 30] - MF Rx << 0 [OFF]
> [14:43:36:362] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [OFF]
> [14:43:36:383] [Thread: 3066784656] [Chan 30] - MF Rx << 0 [ON]
> [14:43:36:383] [Thread: 3066784656] [Chan 30] - Getting ANI digit 0
> [14:43:36:383] [Thread: 3066784656] [Chan 30] - ANI so far: 500, expected
> length: 20
> [14:43:36:383] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [ON]
> [14:43:36:402] [Thread: 3066784656] [Chan 30] - MF Rx << 0 [OFF]
> [14:43:36:403] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [OFF]
> [14:43:36:502] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [ON]
> [14:43:36:502] [Thread: 3066784656] [Chan 30] - Getting ANI digit 1
> [14:43:36:502] [Thread: 3066784656] [Chan 30] - ANI so far: 5001, expected
> length: 20
> [14:43:36:502] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [ON]
> [14:43:36:582] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [OFF]
> [14:43:36:582] [Thread: 3066784656] [Chan 30] - MF Tx >> 5 [OFF]
> [14:43:36:682] [Thread: 3066784656] [Chan 30] - MF Rx << F [ON]
> [14:43:36:682] [Thread: 3066784656] [Chan 30] - Got end of ANI
> [14:43:36:682] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:36:682] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:36:783] [Thread: 3066784656] [Chan 30] - MF Rx << F [OFF]
> [14:43:36:783] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:36:882] [Thread: 3066784656] [Chan 30] - MF Rx << 2 [ON]
> [14:43:36:882] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 2
> [14:43:36:882] [Thread: 3066784656] [Chan 30] - DNIS so far: 02, expected
> length: 20
> [14:43:36:883] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:36:883] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:36:982] [Thread: 3066784656] [Chan 30] - MF Rx << 2 [OFF]
> [14:43:36:982] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:37:082] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [ON]
> [14:43:37:082] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 1
> [14:43:37:082] [Thread: 3066784656] [Chan 30] - DNIS so far: 021, expected
> length: 20
> [14:43:37:083] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:37:083] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:37:182] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [OFF]
> [14:43:37:182] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:37:282] [Thread: 3066784656] [Chan 30] - MF Rx << 2 [ON]
> [14:43:37:282] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 2
> [14:43:37:282] [Thread: 3066784656] [Chan 30] - DNIS so far: 0212, expected
> length: 20
> [14:43:37:283] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:37:283] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:37:382] [Thread: 3066784656] [Chan 30] - MF Rx << 2 [OFF]
> [14:43:37:382] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:37:482] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [ON]
> [14:43:37:482] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 1
> [14:43:37:482] [Thread: 3066784656] [Chan 30] - DNIS so far: 02121, expected
> length: 20
> [14:43:37:483] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:37:483] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:37:582] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [OFF]
> [14:43:37:582] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:37:682] [Thread: 3066784656] [Chan 30] - MF Rx << 3 [ON]
> [14:43:37:683] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 3
> [14:43:37:683] [Thread: 3066784656] [Chan 30] - DNIS so far: 021213,
> expected length: 20
> [14:43:37:683] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:37:683] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:37:782] [Thread: 3066784656] [Chan 30] - MF Rx << 3 [OFF]
> [14:43:37:782] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:37:882] [Thread: 3066784656] [Chan 30] - MF Rx << 5 [ON]
> [14:43:37:882] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 5
> [14:43:37:882] [Thread: 3066784656] [Chan 30] - DNIS so far: 0212135,
> expected length: 20
> [14:43:37:883] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:37:883] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:37:902] [Thread: 3066784656] [Chan 30] - MF Rx << 5 [OFF]
> [14:43:37:903] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:37:922] [Thread: 3066784656] [Chan 30] - MF Rx << 5 [ON]
> [14:43:37:922] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 5
> [14:43:37:922] [Thread: 3066784656] [Chan 30] - DNIS so far: 02121355,
> expected length: 20
> [14:43:37:923] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:37:923] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:37:962] [Thread: 3066784656] [Chan 30] - MF Rx << 5 [OFF]
> [14:43:37:962] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:38:062] [Thread: 3066784656] [Chan 30] - MF Rx << 3 [ON]
> [14:43:38:063] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 3
> [14:43:38:063] [Thread: 3066784656] [Chan 30] - DNIS so far: 021213553,
> expected length: 20
> [14:43:38:063] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:38:063] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:38:162] [Thread: 3066784656] [Chan 30] - MF Rx << 3 [OFF]
> [14:43:38:162] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:38:262] [Thread: 3066784656] [Chan 30] - MF Rx << 4 [ON]
> [14:43:38:262] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 4
> [14:43:38:262] [Thread: 3066784656] [Chan 30] - DNIS so far: 0212135534,
> expected length: 20
> [14:43:38:263] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:38:263] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:38:282] [Thread: 3066784656] [Chan 30] - MF Rx << 4 [OFF]
> [14:43:38:282] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:38:323] [Thread: 3066784656] [Chan 30] - MF Rx << 4 [ON]
> [14:43:38:323] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 4
> [14:43:38:323] [Thread: 3066784656] [Chan 30] - DNIS so far: 02121355344,
> expected length: 20
> [14:43:38:323] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:38:323] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:38:342] [Thread: 3066784656] [Chan 30] - MF Rx << 4 [OFF]
> [14:43:38:343] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:38:382] [Thread: 3066784656] [Chan 30] - MF Rx << 7 [ON]
> [14:43:38:383] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 7
> [14:43:38:383] [Thread: 3066784656] [Chan 30] - DNIS so far: 021213553447,
> expected length: 20
> [14:43:38:383] [Thread: 3066784656] [Chan 30] - Requesting next DNIS with
> signal 0x31.
> [14:43:38:383] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:38:482] [Thread: 3066784656] [Chan 30] - MF Rx << 7 [OFF]
> [14:43:38:482] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:38:582] [Thread: 3066784656] [Chan 30] - MF Rx << 3 [ON]
> [14:43:38:582] [Thread: 3066784656] [Chan 30] - Getting DNIS digit 3
> [14:43:38:582] [Thread: 3066784656] [Chan 30] - DNIS so far: 0212135534473,
> expected length: 20
> [14:43:38:583] [Thread: 3066784656] [Chan 30] - User requested us to stop
> getting DNIS!
> [14:43:38:583] [Thread: 3066784656] [Chan 30] - Requesting change to Group
> II with signal 0x33
> [14:43:38:583] [Thread: 3066784656] [Chan 30] - MF Tx >> 3 [ON]
> [14:43:38:662] [Thread: 3066784656] [Chan 30] - MF Rx << 3 [OFF]
> [14:43:38:662] [Thread: 3066784656] [Chan 30] - MF Tx >> 3 [OFF]
> [14:43:38:762] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [ON]
> [14:43:38:763] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [ON]
> [14:43:38:862] [Thread: 3066784656] [Chan 30] - MF Rx << 1 [OFF]
> [14:43:38:862] [Thread: 3066784656] [Chan 30] - MF Tx >> 1 [OFF]
> [14:43:39:022] [Thread: 3066784656] [Chan 30] - calling callback on chan 30
> [14:43:39:023] [Thread: 3060992912] [Chan 30] - ABCD Tx >> [ANSWER] 0x04
> [14:43:39:023] [Thread: 3060992912] [Chan 30] - ABCD Raw Tx >> 0x05
> [14:43:42:865] [Thread: 3060992912] [Chan 30] - ABCD Raw Rx << 0x09
> [14:43:42:865] [Thread: 3060992912] [Chan 30] - Bits changed from 0x00 to
> 0x08
> [14:43:42:865] [Thread: 3060992912] [Chan 30] - ABCD Rx << [CLEAR FORWARD]
> 0x08
> [14:43:42:865] [Thread: 3060992912] [Chan 30] - Far end disconnected.
> Reason: Normal Clearing
> [14:43:42:883] [Thread: 3060992912] [Chan 30] - Call ended
>
> Thanks again,
>
> Marco
>
> -----Mensagem original-----
> De: asterisk-r2-bounces at lists.digium.com
> [mailto:asterisk-r2-bounces at lists.digium.com] Em nome de Moises Silva
> Enviada em: quinta-feira, 27 de novembro de 2008 14:28
> Para: asterisk-r2 at lists.digium.com
> Assunto: Re: [asterisk-r2] DTMF Setup
>
> After setting the proper clock, you should as well take some logs to
> show us (if the problem persists), I need to know the timing
> differences that are causing the digit to be repeated.
>
> Here is a description of how to set the debug options:
>
> http://lists.digium.com/pipermail/asterisk-r2/2008-November/000235.html
>
> Moy
>
> On Thu, Nov 27, 2008 at 10:25 AM, Alexandre Cavalcante Alencar
> <alexandre.alencar at gmail.com> wrote:
>> Hi Alexis,
>>
>> Almost all cases, the legacy PABX act as slave to the telco, in this
>> scenario, Asterisk will be the telco, then the master side.
>>
>> Regards
>>
>> On Thu, Nov 27, 2008 at 1:21 PM, Alexis Gavidia <agavidia at iptelven.com>
>> wrote:
>>>
>>> Hello i have a similar problem, i think you need to check who is master
>>> clock and who is normal  side.
>>>
>>> The PBX most be in Master
>>> and the asterisk box should be in normal, o other way
>>>
>>> Thanks Alexis
>>>
>>
>> --
>> Alexandre C Alencar (Skarmeth)
>> http://blog.alexandrealencar.net/
>> http://www.alexandrealencar.net/
>> http://people.debian-ce.org/skarmeth/
>>
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-r2 mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-r2
>>
>
> --
> "I do not agree with what you have to say, but I'll defend to the
> death your right to say it." Voltaire
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-r2
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-r2
>



-- 
"I do not agree with what you have to say, but I'll defend to the
death your right to say it." Voltaire



More information about the asterisk-r2 mailing list