[asterisk-r2] problem with r2 in Brazil

Marcos Pandolfo Jr marcos at remota.com.br
Sun Mar 17 08:10:01 CDT 2013


Josué

Here is the information that you request:

version:
------------
sdv*CLI> mfcr2 show version
OpenR2 version: 1.3.0, revision: exportado

system.conf:
-------------------
loadzone=br
defaultzone=br

span=1,1,0,cas,hdb3
cas=1-15,17-31:1101
dchan=16
echocanceller=mg2,1-15,17-31

span=2,2,0,cas,hdb3
cas=32-46,48-62:1101
dchan=47
echocanceller=mg2,32-46,48-62


chan_dahdi.conf
-------------------------
[channels]
language=br
usecallerid=yes
callwaiting=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
imediate=yes
overlapdial=yes
signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
mfcr2_max_ani=20
mfcr2_category=national_subscriber
mfcr2_call_files=yes
mfcr2_logdir=oi
mfcr2_logging=all
mfcr2_metering_pulse_timeout=500

mfcr2_max_dnis=4
group=1
context=sdv
channel=>1-15,17-31

mfcr2_max_dnis=20
group=2
context=scb
channel=>32-46,48-62

Regards


2013/3/16 Josué Conti <josueconti at gmail.com>

> Dear Marcos, how are you?
> Please show us your system.conf and chan_dahdi.conf.
> Which openr2 version that you use?
>
>
> Regards
>
> Josue
>
> 2013/3/16 Marcos Pandolfo Jr <marcos at remota.com.br>
>
>> Hi Josué
>>
>> Thanks for your reply but wont work.... same behavior....
>>
>> Regards
>>
>>
>> 2013/3/16 Josué Conti <josueconti at gmail.com>
>>
>>> Hi Marcos, how are you?
>>> I had this problem and fix with:
>>> Inserting the parameter mfcr2_metering_pulse_timeout=500 on file
>>> chan_dahdi.conf
>>> Please try this and return a follow up.
>>>
>>> Regards
>>>
>>> Josue
>>>
>>> 2013/3/16 Marcos Pandolfo Jr <marcos at remota.com.br>
>>>
>>>> Thanks Ricardo
>>>>
>>>> Here go my log files. My problem is that when I receive the 0x4
>>>> (answer) and the log on master.csv is ANSWERED so I charge the call. This
>>>> is wrong because the B5 indicates that this number is unallocated.
>>>>
>>>> I think something (asterisk, dahdi, openr2) has to analyze the latest
>>>> code from group B before saying that the call was answered, even if you
>>>> received the call sign of the telco.
>>>>
>>>> This is a call that I make and the number is unallocated.. I paint red
>>>> the text that I think the telco send me the B5 and the 0x4 (answer):
>>>>
>>>> [11:49:50:291] [Thread: 1096595776] [Chan 2] - Call started at Sat Mar
>>>>  9 11:49:50 2013 on chan 2 [openr2 version 1.3.0, revision exportado]
>>>> [11:49:50:291] [Thread: 1096595776] [Chan 2] - Outgoing call
>>>> proceeding: ANI=9500, DNIS=37170000, Category=National Subscriber
>>>> [11:49:50:291] [Thread: 1096595776] [Chan 2] - CAS Tx >> [SEIZE] 0x00
>>>> [11:49:50:291] [Thread: 1096595776] [Chan 2] - CAS Raw Tx >> 0x01
>>>> [11:49:50:291] [Thread: 1096595776] [Chan 2] - scheduled timer id 2
>>>> (r2_seize)
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - Bits changed from 0x08
>>>> to 0x0C
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - CAS Rx << [SEIZE ACK]
>>>> 0x0C
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 2
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - timer id 2 found,
>>>> cancelling it now
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - MFC/R2 call acknowledge!
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 3
>>>> [11:49:50:344] [Thread: 1096595776] [Chan 2] - MF Tx >> 3 [ON]
>>>> [11:49:50:430] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:50:431] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:50:431] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:50:431] [Thread: 1096595776] [Chan 2] - MF Tx >> 3 [OFF]
>>>> [11:49:50:511] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:50:511] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 7
>>>> [11:49:50:511] [Thread: 1096595776] [Chan 2] - MF Tx >> 7 [ON]
>>>> [11:49:50:511] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:50:630] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:50:631] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:50:631] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:50:631] [Thread: 1096595776] [Chan 2] - MF Tx >> 7 [OFF]
>>>> [11:49:50:711] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:50:711] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 1
>>>> [11:49:50:711] [Thread: 1096595776] [Chan 2] - MF Tx >> 1 [ON]
>>>> [11:49:50:711] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:50:830] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:50:830] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:50:830] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:50:830] [Thread: 1096595776] [Chan 2] - MF Tx >> 1 [OFF]
>>>> [11:49:50:911] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:50:911] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 7
>>>> [11:49:50:911] [Thread: 1096595776] [Chan 2] - MF Tx >> 7 [ON]
>>>> [11:49:50:911] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:51:031] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:51:031] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:51:031] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:51:031] [Thread: 1096595776] [Chan 2] - MF Tx >> 7 [OFF]
>>>> [11:49:51:110] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:51:111] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 0
>>>> [11:49:51:111] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [ON]
>>>> [11:49:51:111] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:51:231] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:51:231] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:51:231] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:51:231] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [OFF]
>>>> [11:49:51:311] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:51:311] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 0
>>>> [11:49:51:311] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [ON]
>>>> [11:49:51:311] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:51:410] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:51:410] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:51:410] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:51:410] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [OFF]
>>>> [11:49:51:490] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:51:491] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 0
>>>> [11:49:51:491] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [ON]
>>>> [11:49:51:491] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:51:591] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [ON]
>>>> [11:49:51:591] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:51:591] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:51:591] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [OFF]
>>>> [11:49:51:671] [Thread: 1096595776] [Chan 2] - MF Rx << 1 [OFF]
>>>> [11:49:51:671] [Thread: 1096595776] [Chan 2] - Sending DNIS digit 0
>>>> [11:49:51:671] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [ON]
>>>> [11:49:51:671] [Thread: 1096595776] [Chan 2] - Group A DNIS request
>>>> handled
>>>> [11:49:52:570] [Thread: 1096595776] [Chan 2] - MF Rx << 3 [ON]
>>>> [11:49:52:570] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:52:570] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:52:570] [Thread: 1096595776] [Chan 2] - MF Tx >> 0 [OFF]
>>>> [11:49:52:650] [Thread: 1096595776] [Chan 2] - MF Rx << 3 [OFF]
>>>> [11:49:52:650] [Thread: 1096595776] [Chan 2] - Sending category
>>>> National Subscriber
>>>> [11:49:52:651] [Thread: 1096595776] [Chan 2] - MF Tx >> 1 [ON]
>>>> [11:49:52:731] [Thread: 1096595776] [Chan 2] - MF Rx << 5 [ON]
>>>> [11:49:52:731] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:52:731] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:52:731] [Thread: 1096595776] [Chan 2] - MF Tx >> 1 [OFF]
>>>> [11:49:52:810] [Thread: 1096595776] [Chan 2] - MF Rx << 5 [OFF]
>>>> [11:49:52:810] [Thread: 1096595776] [Chan 2] - scheduled timer id 3
>>>> (r2_answer)
>>>> [11:49:52:904] [Thread: 1096595776] [Chan 2] - Bits changed from 0x0C
>>>> to 0x04
>>>> [11:49:52:904] [Thread: 1096595776] [Chan 2] - CAS Rx << [ANSWER] 0x04
>>>> [11:49:52:904] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 3
>>>> [11:49:52:904] [Thread: 1096595776] [Chan 2] - timer id 3 found,
>>>> cancelling it now
>>>> [11:49:52:904] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:52:904] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:57:988] [Thread: 1096595776] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:57:988] [Thread: 1096595776] [Chan 2] - Cannot cancel timer 0
>>>> [11:49:57:988] [Thread: 1096595776] [Chan 2] - CAS Tx >> [CLEAR
>>>> FORWARD] 0x08
>>>> [11:49:57:988] [Thread: 1096595776] [Chan 2] - CAS Raw Tx >> 0x09
>>>> [11:49:58:063] [Thread: 1088469312] [Chan 2] - Bits changed from 0x04
>>>> to 0x08
>>>> [11:49:58:063] [Thread: 1088469312] [Chan 2] - CAS Rx << [IDLE] 0x08
>>>> [11:49:58:063] [Thread: 1088469312] [Chan 2] - Call ended
>>>> [11:49:58:063] [Thread: 1088469312] [Chan 2] - Attempting to cancel
>>>> timer timer 0
>>>> [11:49:58:063] [Thread: 1088469312] [Chan 2] - Cannot cancel timer 0
>>>>
>>>>
>>>> Best regards
>>>>
>>>>
>>>>
>>>>
>>>> 2013/3/15 Mc GRATH Ricardo <mcgrathr at mail2web.com>
>>>>
>>>>>  Marcos
>>>>>
>>>>> No one imagine about your request and could give you a help without
>>>>> details, as trace log, samples of the call scenery and other additionalinformation.
>>>>> Best regards
>>>>>
>>>>>  Mc GRATH Ricardo
>>>>> E-Mail mcgrathr at mail2web.com
>>>>>
>>>>>  ------------------------------
>>>>> *From:* asterisk-r2-bounces at lists.digium.com [
>>>>> asterisk-r2-bounces at lists.digium.com] On Behalf Of Marcos Pandolfo Jr
>>>>> [marcos at remota.com.br]
>>>>> *Sent:* 15 March 2013 16:49
>>>>> *To:* asterisk-r2 at lists.digium.com
>>>>> *Subject:* [asterisk-r2] problem with r2 in Brazil
>>>>>
>>>>>  Hi Everyone
>>>>>
>>>>>  This is my first post in this list.
>>>>>
>>>>>   My Telco is Oi and a link that I have with them have a strange
>>>>> behavior:
>>>>>
>>>>>  I call to a number that not exist and the telco send me a signal 0x4
>>>>> (cas answer) and I receive the group b signal 5 (here in brazil is a
>>>>> unallocated number) but in asterisk's master.csv file I get a answered
>>>>> call, so I dont know how can I diference the calls that really is answered
>>>>> or not.
>>>>>
>>>>>  Thank you all.
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>>
>>>>>
>>>>>
>>>>>  Abraços
>>>>>
>>>>>  Marcos Pandolfo Jr
>>>>> ADS Telecom
>>>>> (54) 3242-8500
>>>>> (54) 9998-2686
>>>>>
>>>>> --
>>>>> _____________________________________________________________________
>>>>> -- 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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>> Abraços
>>>>
>>>> Marcos Pandolfo Jr
>>>> ADS Telecom
>>>> (54) 3242-8500
>>>> (54) 9998-2686
>>>>
>>>> --
>>>> _____________________________________________________________________
>>>> -- 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
>>>
>>
>>
>>
>> --
>>
>>
>>
>> Abraços
>>
>> Marcos Pandolfo Jr
>> ADS Telecom
>> (54) 3242-8500
>> (54) 9998-2686
>>
>> --
>> _____________________________________________________________________
>> -- 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
>



-- 



Abraços

Marcos Pandolfo Jr
ADS Telecom
(54) 3242-8500
(54) 9998-2686
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20130317/f4bdaf2e/attachment-0001.htm>


More information about the asterisk-r2 mailing list