Les installations téléphoniques RNIS ont tendance à disparaître au profit des installations VoIP depuis les années 2000. Malgré tout, on en rencontre encore en France et probablement pour quelques années encore. L'installation d'une carte RNIS Dialogic Diva BRI (2 lignes) ou PRI (30 lignes) sous Debian n'est pas simple.

Elle nécessite de recompiler votre propre kernel et les drivers fournis par le constructeur. Les logiciels utilitaires et drivers se trouvent dans le répertoire : /usr/lib/opendiva/divas/ . Ils permettent d'observer le trafic ISDN ( protocole RNIS Q931) sur un lien T0 ou T2 Orange en France.

Pour visualiser le trafic RNIS ( protocole q931 ) sur un lien T0 :
/usr/lib/opendiva/divas/divactrl dchannel -c 1 -dmonitor

SIG-X(030) 08 01 16 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 0B 80 35 35 35 35 35 35 35 35 35 35
                     Q.931  CR16 SETUP
                            Sending complete
                            Bearer Capability 80 90 a3
                            Channel Id 83
                            Progress Indicator 80 83
                            Called Party Number 80 '5555555555'
ACTIVATION_REQ
L1_UP
DTRC:00 8D 7F
DTRC:00 8D 73
SIG-EVENT FFFA 00

SIG-EVENT FFFA 00

DTRC:00 8D 00 00 08 01 16 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 0B 80 35 35 35 35 35 35 35 35 35 35
DTRC:00 8D 01 02
DTRC:02 8D 00 02 08 01 96 5A 08 02 87 BB
DTRC:02 8D 01 02
SIG-R(008) 08 01 96 5A 08 02 87 BB
                     Q.931  CR96 REL_COM
                            Cause 87 bb '59'
EVENT: Call failed in State 'Call initiated'
                     Q.931  CR96 REL_COM
                            Cause 87 bb '59'
DTRC:02 8D 53
DTRC:02 8D 73
SIG-EVENT FFFF 0A

DTRC:FE FF 03 0F 00 00 04 FF
DTRC:FC FF 03 0F 91 E4 05 8D

L1_DOWN

===========================================================================================================
SIG-X(030) 08 01 19 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 0B 80 36 36 36 36 36 36 36 36 36 36
                     Q.931  CR19 SETUP
                            Sending complete
                            Bearer Capability 80 90 a3
                            Channel Id 83
                            Progress Indicator 80 83
                            Called Party Number 80 '6666666666'
ACTIVATION_REQ
L1_DOWN
SIG-EVENT FFFF 08

SIG-EVENT FFFF 08

EVENT: Call failed in State 'Call initiated'
                     Link disconnected, Layer-1 error (cable or NT)

============================================================================================================

root@a2sfinal:/usr/lib/opendiva/divas# ./divactrl dchannel -c 1 -dmonitor
SIG-X(027) 08 01 21 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 08 80 30 36 32 32 36 39 31
                     Q.931  CR21 SETUP
                            Sending complete
                            Bearer Capability 80 90 a3
                            Channel Id 83
                            Progress Indicator 80 83
                            Called Party Number 80 '0622691'
ACTIVATION_REQ
L1_UP
DTRC:00 8D 7F
DTRC:00 8D 73
SIG-EVENT FFFA 00

SIG-EVENT FFFA 00

DTRC:00 8D 00 00 08 01 21 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 08 80 30 36 32 32 36 39 31
DTRC:00 8D 01 02
DTRC:02 8D 00 02 08 01 A1 5A 08 02 87 9C
DTRC:02 8D 01 02
SIG-R(008) 08 01 A1 5A 08 02 87 9C
                     Q.931  CRa1 REL_COM
                            Cause 87 9c 'Invalid number format'
EVENT: Call failed in State 'Call initiated'
                     Q.931  CRa1 REL_COM
                            Cause 87 9c 'Invalid number format'
DTRC:02 8D 53
DTRC:02 8D 73
SIG-EVENT FFFF 0A

DTRC:FE FF 03 0F 00 00 04 FF
DTRC:FC FF 03 0F 44 C5 05 8D

L1_DOWN
MORE
SIG-X(030) 08 01 24 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 0B 80 30 31 34 32 38 32 35 30 30 30
                     Q.931  CR24 SETUP
                            Sending complete
                            Bearer Capability 80 90 a3
                            Channel Id 83
                            Progress Indicator 80 83
                            Called Party Number 80 '0142825000'
ACTIVATION_REQ
L1_UP
DTRC:00 8D 7F
DTRC:00 8D 73
SIG-EVENT FFFA 00

SIG-EVENT FFFA 00

DTRC:00 8D 00 00 08 01 24 05 A1 04 03 80 90 A3 18 01 83 1E 02 80 83 70 0B 80 30 31 34 32 38 32 35 30 30 30
DTRC:00 8D 01 02
DTRC:02 8D 00 02 08 01 A4 02 18 01 89
DTRC:02 8D 01 02
SIG-R(007) 08 01 A4 02 18 01 89
                     Q.931  CRa4 CALL_PROC
                            Channel Id 89
DTRC:02 8D 02 02 08 01 A4 07
DTRC:02 8D 01 04
SIG-R(004) 08 01 A4 07
                     Q.931  CRa4 CONN
SIG-X(004) 08 01 24 0F
                     Q.931  CR24 CONN_ACK
DTRC:00 8D 02 04 08 01 24 0F
DTRC:00 8D 01 04
DTRC:FE FF 03 0F 00 00 04 FF
DTRC:FC FF 03 0F 69 47 05 8D

DTRC:00 8D 01 05
DTRC:02 8D 01 05
DTRC:02 8D 01 05
DTRC:00 8D 01 05
SIG-X(008) 08 01 24 45 08 02 80 90
                     Q.931  CR24 DISC
                            Cause 80 90 'Normal call clearing'
DTRC:00 8D 04 04 08 01 24 45 08 02 80 90
DTRC:00 8D 01 06
DTRC:02 8D 04 06 08 01 A4 4D 08 02 87 90
DTRC:02 8D 01 06
SIG-R(008) 08 01 A4 4D 08 02 87 90
                     Q.931  CRa4 REL
                            Cause 87 90 'Normal call clearing'
SIG-x(004) 08 01 24 5A
                     Q.931  CR24 REL_COM
DTRC:00 8D 06 06 08 01 24 5A
DTRC:00 8D 01 08
DTRC:02 8D 53
DTRC:02 8D 73
SIG-EVENT FFFF 0A

L1_DOWN
Pour initier un appel téléphonique sur un lien T0:

Dialogic livre un programme de test très pratique ( option -c1 pour canal 1 si votre carte possède plusieurs span T0 ou T2):

/usr/lib/opendiva/divas/telsampl -c1

Telsampl for Linux, Build: 110-100
Press 'q' to quit
 'c'  to do an outgoing call
 '0'....'9' to initiate a call or to continue the dial number
 'd' to disconnect the line (like on hook)

 PRESS 'h' TO ACTIVATE THE HANDSET/RINGER/TONE FUNCTIONS
<--ListenReq
ListenCon-->
Facility_Con(0x0)-->
Enter destination address: 0622692353
<--Conn_Req(0622692353)
[247]: Connect_Con-->
[247]:Info__Ind--> Info =0x18
<--Info__Res
[247]:Info__Ind--> Calling: Call-Proceeding
<--Info__Res
[247]:Info__Ind--> Info =0x1e
<--Info__Res
[247]:Info__Ind--> Info: Cause
<--Info__Res
[247]:Info__Ind--> Progress
<--Info__Res
[247]:Info__Ind--> Alerting
<--Info__Res
<--Disc_Req
[247]:Disc_Con-->
[247]:Info__Ind--> Info: Cause
<--Info__Res
[247]:Info__Ind--> Release
<--Info__Res
[247]:Disc_Ind-->
<--Disc_Res
********** Call cleared ***********
Enter destination address: 0622691
<--Conn_Req(0622691)
[247]: Connect_Con-->
[247]:Info__Ind--> Info: Cause
<--Info__Res
[247]:Info__Ind--> Release Complete
<--Info__Res
[247]:Disc_Ind-->
<--Disc_Res
********** Call cleared ***********
Enter destination address: 0142825000
<--Conn_Req(0142825000)
[247]: Connect_Con-->
[247]:Info__Ind--> Info =0x18
<--Info__Res
[247]:Info__Ind--> Calling: Call-Proceeding
<--Info__Res
[247]:Info__Ind--> Connect
<--Info__Res
[247]:ConActInd-->
<--ConActRes
<--Disc_Req
[247]:Disc_Con-->
[247]:Info__Ind--> Info: Cause
<--Info__Res
[247]:Info__Ind--> Release
<--Info__Res
[247]:Disc_Ind-->
<--Disc_Res
********** Call cleared ***********

Previous Post Next Post