Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Introduction
We have integrated "OpenR2" stack into All the Next Gen Digital VEGA for handling R2 protocol.
OpenR2 VEGA support would be available on/after "R11.0 S021" release dated on 3rd Oct 2016.
OpenR2 Vega Configuration
VEGA GUI -> E1T1-> ISDN section R2 configuration -
...
Please refer to below wiki for details of OpenR2 configuration parameters.
...
OpenR2 Vega Cli commands
Please find below list of cli commands -
...
MFCR2 SHOW VERSION Show OpenR2 library version
OpenR2 Vega Advanced configuration
We can have option to upload advanced r2 protocol configuration file in VEGA for OpenR2 stack.
WARNING: advanced users only as it allows you custom define tone definitions used in the protocol!
Ref: MFCR2 Configuration
We can download default/existing r2proto.conf file from VEGA and then after modification same can be uploaded back to VEGA.
Please note that new r2 protocol configuration file will take effect only after rebooting vega.
...
OpenR2 Vega logging
All the logging as mentioned in below wiki page to capture R2 logs will also be applicable to OpenR2 supported VEGA firmware.
Please note - If issue is happening on 1 call itself then it would be nice to capture detail logs of CAS/ISDN module as mentioned below -
...
debug enable _logger i
sip monitor on
log display off
debug on
OpenR2 Vega log analysis
All the CAS logs are prefixed with [sXcY] keyword where X is port number and Y is channel number.
...
We can always filter the logs based on "R2-DSL" and "[sXcY] " to get the OpenR2 stack logs for X port and Y channel call.
SIP to R2 Call flow
Calling party = 1234567 , Called party = 0101
...
CAS :CAS-RG: 0080970: 00000:R2-DSL:[s1c31] MF Tx >> 1 [ON]
CAS :Trace : 0080970: 00000:R2-DSL:[s1c31] Group A DNIS request handled
CAS :CAS-RG: 0081225: 00000:R2-DSL:[s1c31] MF Rx << 3 [ON]
CAS :CAS-RG: 0081225: 00000:R2-DSL:[s1c31] MF Tx >> 1 [OFF]
CAS :CAS-RG: 0081475: 00000:R2-DSL:[s1c31] MF Rx << 3 [OFF]
CAS :Trace : 0081475: 00000:R2-DSL:[s1c31] Sending category National Subscriber
CAS :CAS-RG: 0081475: 00000:R2-DSL:[s1c31] MF Tx >> 1 [ON]
CAS :CAS-RG: 0081725: 00000:R2-DSL:[s1c31] MF Rx << 7 [ON]
CAS :CAS-RG: 0081725: 00000:R2-DSL:[s1c31] MF Tx >> 1 [OFF]
CAS :ABCD : 0081890: 00000:R2-DSL:[s1c31] CAS Rx << [ANSWER] 0x04
CAS :CAS-RG: 0081955: 00000:R2-DSL:[s1c31] MF Rx << 7 [OFF]
R2 to SIP Call flow
AS :ABCD : 2398397: 00000:R2-DSL:[s2c31] CAS Rx << [SEIZE] 0x00
CAS :Trace : 2398397: 00000:R2-DSL:[s2c31] Initialized R2 MF detector
CAS :Trace : 2398397: 00000:R2-DSL:[s2c31]: Received request to start call :(is_openr2.c;785)^[[1;32;40m^M
CAS :ABCD : 2398442: 00000:R2-DSL:[s2c31] CAS Tx >> [SEIZE ACK] 0x0C
CAS :CAS-RG: 2398622: 00000:R2-DSL:[s2c31] MF Rx << 0 [ON]
CAS :Trace : 2398622: 00000:R2-DSL:[s2c31] Getting DNIS digit 0
CAS :CAS-RG: 2398622: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2398872: 00000:R2-DSL:[s2c31] MF Rx << 0 [OFF]
CAS :CAS-RG: 2398872: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
CAS :CAS-RG: 2399137: 00000:R2-DSL:[s2c31] MF Rx << 1 [ON]
CAS :CAS-RG: 2399137: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2399392: 00000:R2-DSL:[s2c31] MF Rx << 1 [OFF]
CAS :CAS-RG: 2399392: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
CAS :CAS-RG: 2399647: 00000:R2-DSL:[s2c31] MF Rx << 1 [ON]
CAS :Trace : 2399647: 00000:R2-DSL:[s2c31] Getting ANI digit 1
CAS :Trace : 2399647: 00000:R2-DSL:[s2c31] ANI so far: 1, expected length: 10
CAS :CAS-RG: 2399647: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2399922: 00000:R2-DSL:[s2c31] MF Rx << 1 [OFF]
CAS :CAS-RG: 2399922: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
CAS :CAS-RG: 2400167: 00000:R2-DSL:[s2c31] MF Rx << 2 [ON]
CAS :Trace : 2400167: 00000:R2-DSL:[s2c31] Getting ANI digit 2
CAS :CAS-RG: 2400167: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2400442: 00000:R2-DSL:[s2c31] MF Rx << 2 [OFF]
CAS :CAS-RG: 2400442: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
CAS :CAS-RG: 2400687: 00000:R2-DSL:[s2c31] MF Rx << 3 [ON]
CAS :Trace : 2400687: 00000:R2-DSL:[s2c31] Getting ANI digit 3
CAS :CAS-RG: 2400687: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2400962: 00000:R2-DSL:[s2c31] MF Rx << 3 [OFF]
CAS :CAS-RG: 2400962: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
CAS :CAS-RG: 2401212: 00000:R2-DSL:[s2c31] MF Rx << 4 [ON]
CAS :Trace : 2401212: 00000:R2-DSL:[s2c31] Getting ANI digit 4
CAS :CAS-RG: 2401212: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2401482: 00000:R2-DSL:[s2c31] MF Rx << 4 [OFF]
CAS :CAS-RG: 2401482: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
CAS :CAS-RG: 2401732: 00000:R2-DSL:[s2c31] MF Rx << 5 [ON]
CAS :Trace : 2401732: 00000:R2-DSL:[s2c31] Getting ANI digit 5
CAS :CAS-RG: 2401732: 00000:R2-DSL:[s2c31] MF Tx >> 5 [ON]
CAS :CAS-RG: 2401982: 00000:R2-DSL:[s2c31] MF Rx << 5 [OFF]
CAS :CAS-RG: 2401982: 00000:R2-DSL:[s2c31] MF Tx >> 5 [OFF]
...