[asterisk-dev] Problem with RDNIS
Robert Andersson
robert-aurora at telia.com
Fri Aug 25 04:56:43 MST 2006
Hi!
We are using Asterisk asterisk-1.2.9 with a PRI line from the Swedish operator
Telia. We didn't get RDNIS into asterisk although we could se that is came in
from the operator. The problem is in the file pri_facility.h in libpri (1.2.3).
Our operator encodes divertingleginformation2 as 15 but libpri defines it as
0x15. Is this a problem with libpri or is it a problem with our operator?
These are the original defines:
/* Q.952 ROSE operations (Diverting) */
#define ROSE_DIVERTING_LEG_INFORMATION1 18
#define ROSE_DIVERTING_LEG_INFORMATION2 0x15
#define ROSE_DIVERTING_LEG_INFORMATION3 19
These are the defines that actually works:
/* Operation ID values */
/* Q.952 ROSE operations (Diverting) */
#define ROSE_DIVERTING_LEG_INFORMATION1 18
#define ROSE_DIVERTING_LEG_INFORMATION2 15
#define ROSE_DIVERTING_LEG_INFORMATION3 19
###
This is what we get from the operator:
< Facility (len=40, codeset=0) [ 0x91, 0xa1, 0x23, 0x02, 0x02, 0x00, 0x80, 0x02,
0x01, 0x0f, '0', 0x1a, 0x02, 0x01, 0x01, 0x0a, 0x01, 0x02, 0xa1, 0x12, 0xa0, 0x
10, 0xa1, 0x0e, 0x0a, 0x01, 0x02, 0x12, 0x09, '703289840' ]
< [1e 02 84 83]
###
This is the entire dump from asterisk with pri debug:
< Protocol Discriminator: Q.931 (8) len=79
< Call Ref: len= 2 (reference 40/0x28) (Originator)
< Message type: SETUP (5)
< [a1]
< Sending Complete (len= 1)
< [04 03 90 90 a3]
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: 3
.1kHz audio (16)
< Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16
)
< Ext: 1 User information layer 1: A-Law (35)
< [18 03 a1 83 8a]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Preferred Dchan:
0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 10 ]
< [1c 26 91 a1 23 02 02 00 80 02 01 0f 30 1a 02 01 01 0a 01 02 a1 12 a0 10 a1 0e
0a 01 02 12 09 37 30 33 32 38 39 38 34 30]
< Facility (len=40, codeset=0) [ 0x91, 0xa1, 0x23, 0x02, 0x02, 0x00, 0x80, 0x02,
0x01, 0x0f, '0', 0x1a, 0x02, 0x01, 0x01, 0x0a, 0x01, 0x02, 0xa1, 0x12, 0xa0, 0x
10, 0xa1, 0x0e, 0x0a, 0x01, 0x02, 0x12, 0x09, '703289840' ]
< [1e 02 84 83]
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0
Location: Public network serving the remote user (4)
< Ext: 1 Progress Description: Calling equipment
is non-ISDN. (3) ]
< [6c 0a 21 83 31 38 31 33 34 32 35 35]
< Calling Number (len=12) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephon
y Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation allowed of network provid
ed number (3) '18134255' ]
< [70 05 c1 38 35 35 36]
< Called Number (len= 7) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telepho
ny Numbering Plan (E.164/E.163) (1) '8556' ]
best regards
Robert Andersson
More information about the asterisk-dev
mailing list