dahdi и ТОС ЭКОС
Привет всем!
dahdi 2.1.0.4 + 2.1.0.2
libpri 1.4.9
asterisk 1.4.22.1
cat /etc/dahdi/system.conf
...
# Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
span=2,2,0,ccs,hdb3
# termtype: te
#bchan=32-36
bchan=32-46,48-62
dchan=47
...
chan_dahdi.conf
;
; Asterisk DAHDI.CONF
;
[trunkgroups]
trunkgroup => 2,47
spanmap => 2,2
[channels]
group = 2
context=office
language=us
switchtype=euroisdn
overlapdial=no
inbanddisconnect=yes
priindication=inband
priexclusive=yes
facilityenable=no
signalling=pri_net
usecallerid=yes
hidecalleridname=yes
hidecallerid=no
usecallingpres=yes
callerid=asreceived
restrictcid=no
callprogress=yes
; ISDN exchange lines
;pridialplan=local
;prilocaldialplan=national
pridialplan=dynamic
prilocaldialplan=dynamic
internationalprefix=810
nationalprefix=8
localprefix=84722
;echocancel=yes
;echocancelwhenbridged=yes
;echotraining=800
;channel => 32-36
channel => 32-46
channel => 48-62
group=
context=default
>pri debug span 2
-- Making new call for cr 32771
> Protocol Discriminator: Q.931 (8) len=40
> Call Ref: len= 2 (reference 3/0x3) (Originator)
> Message type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
> Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
> User information layer 1: A-Law (35)
> [18 04 e9 80 83 81]
> Channel ID (len= 6) [ Ext: 1 IntID: Explicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: As indicated in following octets
> Ext: 1 DS1 Identifier: 0
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 ]
> [6c 0c 21 81 39 38 37 36 35 34 33 32 31 30]
> Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> Presentation: Presentation permitted, user number passed network screening (1) '9876543210' ]
> [70 07 c1 32 33 30 38 30 30]
> Called Number (len= 9) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '230800' ]
> [a1]
> Sending Complete (len= 1)
q931.c:3128 q931_setup: call 32771 on channel 1 enters state 1 (Call Initiated)
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 3/0x3) (Terminator)
< Message type: RELEASE COMPLETE (90)
< [08 02 81 e4]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
< Ext: 1 Cause: Invalid information element contents (100), class = Protocol Error (e.g. unknown message) (6) ]
-- Processing IE 8 (cs0, Cause)
q931.c:3760 q931_receive: call 32771 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
когда звонок проходит с EWSD на ТОС ЭЛКОС то пакеты в setup-е несколько другие!
18:22:40 RxB Ch 30 SETUP
02 01 4E 44 08 02 25 BE 05 A1 04 03 80 90 A3 18 03 A9 83 9F 6C 0D 00 81 38 39 38 37 36 35 34 33 32 31 30 70 07 81 32 33 30 38 30 30 7D 02 91 81
DSS1 LAYER 2 (Q.921)
DSS1 LAYER 3 (Q.931)
4 00001000 Protocol discriminator........ User-network call control message
5 0000.... Filler........................ 0 Dec
....0010 Length of call reference value 2 Dec
6 0....... Flag.......................... 0 Dec
******** Call reference value.......... 9662 Dec
8 00000101 Message type.................. SETUP
-- Sending complete
-- Bearer capability
-- Channel identification
15 00011000 Information element ID........ Channel identification
16 00000011 Length........................ 3 Dec
17 1....... Extension..................... Last octet
.0...... Interface ident. present...... Implicitly identified
..1..... Interface type................ Primary rate
...0.... Spare......................... 0 Dec
....1... Preferred/Exclusive........... Channel is acceptable
.....0.. D-channel indicator........... not D-channel
......01 Information channel selection. As indicated in following octets
18 1....... Extension..................... Last octet
.00..... Coding standard............... CCITT
...0.... Number/map.................... Indicated by the number
....0011 Channel/map element type...... B-channel units
19 1....... Extension..................... Last octet
.00..... Spare......................... 0 Dec
...11111 Channel number................ 31 Dec
-- Calling party number
-- Called party number
-- High layer compatibility
А имено ! В пакете Channel identification
при звоке с Asterisk - а
[18 04 e9 80 83 81]
> Channel ID (len= 6) [ Ext: 1 IntID: Explicit PRI Spare: 0 Exclusive Dchan: 0
> ChanSel: As indicated in following octets
> Ext: 1 DS1 Identifier: 0
> Ext: 1 Coding: 0 Number Specified Channel Type: 3
> Ext: 1 Channel: 1 ]
Explicit
при звонке с EWSD
18 03 A9 83 9F
15 00011000 Information element ID........ Channel identification
16 00000011 Length........................ 3 Dec
17 1....... Extension..................... Last octet
.0...... Interface ident. present...... Implicitly identified
..1..... Interface type................ Primary rate
...0.... Spare......................... 0 Dec
....1... Preferred/Exclusive........... Channel is acceptable
.....0.. D-channel indicator........... not D-channel
......01 Information channel selection. As indicated in following octets
Implicitly
Разницу по словарю я не понял, но в случае с астериском появляется лишний байт
(содержащий логичекийномер span
[trunkgroups]
trunkgroup => 2,47
spanmap => 2,2[,логический номер span]
)!
Ну и в EWSD есть пакет
-- High layer compatibility (7D 02 91 81)
Как заставить атериск передавать бит Implicity ?????
Доброго всем здоровья!
|