[Home]

Summary:ASTERISK-08306: Incoming RDNIS redirecting number variable left unset on EuroISDN
Reporter:Marcel Manz (manzmarcel)Labels:
Date Opened:2006-12-07 17:02:15.000-0600Date Closed:2006-12-08 08:32:28.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The RDNIS variable is left empty on incoming calls on (assumably) switchtype 'euroisdn'.

Our carrier Swisscom (Switzerland) is transfering the redirecting number 0100037 as seen in the debug output, however the number doesn't get stored in the RDNIS.

Other users from Europe (eg. Sweden / Telia) are reporting the same problem in mailing lists. Some say that the ROSE_DIVERTING_LEG_INFORMATION2 needs to be changed from 0x15 to 15 and others say to 0xf.

I assume the facility needs to be handled differently by libpri when switchtype=euroisdn.

****** ADDITIONAL INFORMATION ******

< Protocol Discriminator: Q.931 (8)  len=75
< Call Ref: len= 2 (reference 101/0x65) (Originator)
< Message type: SETUP (5)
< [a1]
< Sending Complete (len= 1)
< [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)
<                              Ext: 1  User information layer 1: A-Law (35)
< [18 03 a9 83 82]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified   Channel Type: 3
<                       Ext: 1  Channel: 2 ]
< [1c 20 91 a1 1d 02 02 00 80 02 01 0f 30 14 02 01 01 0a 01 00 a1 0c a0 0a 80 08 30 31 31 30 30 30 33 37]
< Facility (len=34, codeset=0) [ 0x91, 0xa1, 0x1d, 0x02, 0x02, 0x00, 0x80, 0x02, 0x01, 0x0f, '0', 0x14, 0x02, 0x01, 0x01, 0x0a, 0x01, 0x00, 0xa1, 0x0c, 0xa0, 0x0a, 0x80, 0x08, '01100037' ]
< [6c 0c 01 81 30 34 34 34 34 37 37 37 37 37]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation permitted, user number passed network screening (1) 'removed' ]
< [70 05 81 37 37 30 31]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '7701' ]
< [7d 02 91 81]
< IE: High-layer Compatibility (len = 4)
-- Making new call for cr 101
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 125 (cs0, High-layer Compatibility)
> Protocol Discriminator: Q.931 (8)  len=11
> Call Ref: len= 2 (reference 101/0x65) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 04 e9 81 83 82]
> Channel ID (len= 6) [ Ext: 1  IntID: Explicit, PRI Spare: 0, Exclusive Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  DS1 Identifier: 1
>                       Ext: 1  Coding: 0   Number Specified   Channel Type: 3
>                       Ext: 1  Channel: 2 ]
   -- Accepting call from '0444477777' to '7701' on channel 1/2, span 1
   -- Executing Answer("Zap/2-1", "") in new stack
> Protocol Discriminator: Q.931 (8)  len=15
> Call Ref: len= 2 (reference 101/0x65) (Terminator)
> Message type: CONNECT (7)
> [18 04 e9 81 83 82]
> Channel ID (len= 6) [ Ext: 1  IntID: Explicit, PRI Spare: 0, Exclusive Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  DS1 Identifier: 1
>                       Ext: 1  Coding: 0   Number Specified   Channel Type: 3
>                       Ext: 1  Channel: 2 ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0   Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Called equipment is non-ISDN. (2) ]
   -- Executing NoOp("Zap/2-1", "") in new stack
Comments:By: Marcel Manz (manzmarcel) 2006-12-07 17:35:32.000-0600

After changing

#define ROSE_DIVERTING_LEG_INFORMATION2         0x15

to

#define ROSE_DIVERTING_LEG_INFORMATION2         15

in pri_facility.h

the rdnis variable gets set correctly on euroisdn.

By: Serge Vecher (serge-v) 2006-12-08 08:31:14.000-0600

This issue has come up before, see ASTERISK-7611. Closing...

By: Serge Vecher (serge-v) 2006-12-08 08:32:15.000-0600

Please reopen only if able to provide or willing to start work on the as outlined by mattf in 7815.