Ethereal-users: Re: [Ethereal-users] BICC decode [PATCH]

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Wed, 17 Nov 2004 07:39:16 +0100
Depesh Singh wrote:
<Ethereal couldn't decode the BICC message content.
 
Yes it seems that Ethereal currently doesn't decode BICC directly over SCTP, but BICC over MTP3 and BICC over M3UA.
 
It is however really simple to fix this by just adding two lines in epan/dissectors/packet-isup.
I have attached a patch.
 

Attachment: packet-isup.patch
Description: Binary data

No.     Time        Source                Destination           S_port D_port Len    Protocol Info
      1 0.000000    192.168.0.2           192.168.0.1           3000   2000   330    BICC/SDP IAM , with session description

Frame 1 (330 bytes on wire, 330 bytes captured)
    Arrival Time: Nov 15, 2004 07:21:50.452517000
    Time delta from previous packet: 0.000000000 seconds
    Time since reference or first frame: 0.000000000 seconds
    Frame Number: 1
    Packet Length: 330 bytes
    Capture Length: 330 bytes
Ethernet II, Src: 00:e0:fc:37:d2:3d, Dst: 00:e0:fc:12:f1:4c
    Destination: 00:e0:fc:12:f1:4c (HuaweiTe_12:f1:4c)
    Source: 00:e0:fc:37:d2:3d (HuaweiTe_37:d2:3d)
    Type: IP (0x0800)
Internet Protocol, Src Addr: 192.168.0.2 (192.168.0.2), Dst Addr: 192.168.0.1 (192.168.0.1)
    Version: 4
    Header length: 20 bytes
    Type of service: 0x02 (Minimize cost)
        000. .... = Precedence: routine (0)
        ...0 .... = Delay: Normal
        .... 0... = Throughput: Normal
        .... .0.. = Reliability: Normal
        .... ..1. = Cost: Low
    Total Length: 316
    Identification: 0xfba7 (64423)
    Flags: 0x00
        0... = Reserved bit: Not set
        .0.. = Don't fragment: Not set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 255
    Protocol: SCTP (0x84)
    Header checksum: 0x3d40 (correct)
    Source: 192.168.0.2 (192.168.0.2)
    Destination: 192.168.0.1 (192.168.0.1)
Stream Control Transmission Protocol
    Source port: 3000
    Destination port: 2000
    Verification tag: 0x000058d2
    Checksum: 0xe407a661 (correct CRC32C)
    DATA chunk(ordered, complete segment, TSN: 52216, SID: 0, SSN: 36043, PPID: 8, payload length: 268 bytes)
        Chunk type: DATA (0)
            0... .... = Bit: Stop processing of the packet
            .0.. .... = Bit: Do not report
        Chunk flags: 0x03
            .... ...1 = E-Bit: Last segment
            .... ..1. = B-Bit: First segment
            .... .0.. = U-Bit: Ordered deliviery
        Chunk length: 284
        TSN: 52216
        Stream Identifier: 0x0000
        Stream sequence number: 36043
        Payload protocol identifier: BICC/Q.2150.3 (8)
Bearer Independent Call Control 
    CIC: 1
    Message type: Initial address (1)
    Nature of Connection Indicators: 0x10
        Mandatory Parameter: 6 (Nature of connection indicators)
        .... ..00 = Satellite Indicator: No Satellite circuit in connection (0x00)
        .... 00.. = Continuity Check Indicator: Continuity check not required (0x00)
        ...1 .... = Echo Control Device Indicator: Echo control device included
    Forward Call Indicators: 0x6601
        Mandatory Parameter: 7 (Forward call indicators)
        .... ...0 .... .... = National/international call indicator: Call to be treated as national call
        .... .11. .... .... = End-to-end method indicator: pass-along and SCCP method available (national use) (0x0003)
        .... 0... .... .... = Interworking indicator: no interworking encountered (No.7 signalling all the way)
        ...0 .... .... .... = End-to-end information indicator: no end-to-end information available
        ..1. .... .... .... = ISDN user part indicator: ISDN user part used all the way
        01.. .... .... .... = ISDN user part preference indicator: ISDN user part not required all the way (0x0001)
        .... .... .... ...1 = ISDN access indicator: originating access ISDN
        .... .... .... .00. = SCCP method indicator: No indication (0x0000)
    Calling Party's category: 0xa (ordinary calling subscriber)
        Mandatory Parameter: 9 (Calling party's category)
        Calling Party's category: ordinary calling subscriber (0x0a)
    Transmission medium requirement: 0 (speech)
        Mandatory Parameter: 2 (Transmission medium requirement)
        Transmission medium requirement: speech (0)
    Called Party Number: 13400400874F
        Mandatory Parameter: 4 (Called party number)
        Pointer to Parameter: 2
        Parameter length: 8
        0... .... = Odd/even indicator: even number of address signals
        .000 0011 = Nature of address indicator: national (significant) number (3)
        1... .... = INN indicator: routing to internal network number not allowed
        .001 .... = Numbering plan indicator: ISDN (Telephony) numbering plan (1)
        Called Party Number: 13400400874F
            .... 0001 = Address signal digit: 1 (1)
            0011 .... = Address signal digit: 3 (3)
            .... 0100 = Address signal digit: 4 (4)
            0000 .... = Address signal digit: 0 (0)
            .... 0000 = Address signal digit: 0 (0)
            0100 .... = Address signal digit: 4 (4)
            .... 0000 = Address signal digit: 0 (0)
            0000 .... = Address signal digit: 0 (0)
            .... 1000 = Address signal digit: 8 (8)
            0111 .... = Address signal digit: 7 (7)
            .... 0100 = Address signal digit: 4 (4)
            1111 .... = Address signal digit: Stop sending (15)
            E.164 Called party number digits: 13400400874F
    Pointer to start of optional part: 10
    Hop counter: 31
        Optional Parameter: 61 (Hop counter)
        Parameter length: 1
        Hop counter: 31
    Propagation delay counter = 593 ms
        Optional Parameter: 49 (Propagation delay counter)
        Parameter length: 2
        Propagation delay counter = 593 ms
    Calling Party Number: 13404000108
        Optional Parameter: 10 (Calling party number)
        Parameter length: 8
        1... .... = Odd/even indicator: odd number of address signals
        .000 0011 = Nature of address indicator: national (significant) number (3)
        0... .... = NI indicator: complete
        .001 .... = Numbering plan indicator: ISDN (Telephony) numbering plan (1)
        .... 00.. = Address presentation restricted indicator: presentation allowed (0)
        .... ..11 = Screening indicator: network provided (3)
        Calling Party Number: 13404000108
            .... 0001 = Address signal digit: 1 (1)
            0011 .... = Address signal digit: 3 (3)
            .... 0100 = Address signal digit: 4 (4)
            0000 .... = Address signal digit: 0 (0)
            .... 0100 = Address signal digit: 4 (4)
            0000 .... = Address signal digit: 0 (0)
            .... 0000 = Address signal digit: 0 (0)
            0000 .... = Address signal digit: 0 (0)
            .... 0001 = Address signal digit: 1 (1)
            0000 .... = Address signal digit: 0 (0)
            .... 1000 = Address signal digit: 8 (8)
            E.164 Calling party number digits: 13404000108
    User service information, (3 bytes length)
        Optional Parameter: 29 (User service information)
        Parameter length: 3
        User service information (-> Q.931 Bearer_capability)
        ...0 0000 = Information transfer capability: Speech (0x00)
        .00. .... = Coding standard: ITU-T standardized coding (0x00)
        1... .... = Extension indicator: last octet
        ...1 0000 = Information transfer rate: 64 kbit/s (0x10)
        .00. .... = Transfer mode: Circuit mode (0x00)
        1... .... = Extension indicator: last octet
        ...0 0011 = User information layer 1 protocol: Recommendation G.711 A-law (0x03)
        1... .... = Extension indicator: last octet
    Call Reference: Call ID = 6045832, SPC = 10245
        Optional Parameter: 1 (Call Reference (national use))
        Parameter length: 6
        Call identity: 6045832
        Signalling Point Code: 10245
    Application transport, (211 bytes length)
        Optional Parameter: 120 (Application transport)
        Parameter length: 211
        Application transport parameter fields:
        Application context identifier: BAT ASE (5)
        Application transport instruction indicators: 
        .... ...1 = Release call indicator (RCI): release call
        .... ..0. = Send notification indicator (SNI): do not send notification
        APM segmentation indicator:
        ..00 0000 = APM segmentation indicator: final segment (0)
        .1.. .... = Sequence indicator (SI): new sequence
        Segmentation local reference (SLR): 0x0
        APM-user information field
        Pointer to transparent data: 0x0 No transparent data
        Bearer Association Transport (BAT) Application Service Element (ASE) Encapsulated Application Information:
            BAT ASE Encapsulated Application Information, (206 bytes length)
            BAT ASE Element 1, Identifier: Action Indicator - connect forward
                BAT ASE Identifiers: Action Indicator (0x01)
                BAT ASE Element length indicator: 2
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                BAT ASE action indicator field: connect forward (0x02)
            BAT ASE Element 2, Identifier: Codec List
                BAT ASE Identifiers: Codec List (0x04)
                BAT ASE Element length indicator: 17
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                BAT ASE Identifiers: Codec (0x05)
                BAT ASE Element length indicator: 6
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                Organization identifier subfield : ETSI (refer to TS 26.103) (2)
                ETSI codec type subfield: UMTS Adaptive Multi-Rate ( UMTS AMR ) (0x05)
                ACS : 0x1
                SCS : 0x1
                OM MACS : 0x30
                BAT ASE Identifiers: Codec (0x05)
                BAT ASE Element length indicator: 6
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                Organization identifier subfield : ETSI (refer to TS 26.103) (2)
                ETSI codec type subfield: UMTS Adaptive Multi-Rate 2 ( UMTS AMR 2 ) (0x06)
                ACS : 0x1
                SCS : 0x1
                OM MACS : 0x30
            BAT ASE Element 3, Identifier: Bearer Network Connection Characteristics - IP/RTP
                BAT ASE Identifiers: Bearer Network Connection Characteristics (0x07)
                BAT ASE Element length indicator: 2
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                Backbone network connection characteristics: IP/RTP (0x04)
            BAT ASE Element 4, Identifier: Bearer Control Information
                BAT ASE Identifiers: Bearer Control Information (0x08)
                BAT ASE Element length indicator: 164
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                ...0 0000 = BCTP Version Indicator: 0
                .0.. .... = BVEI: No indication
                ..10 0000 = Tunnelled Protocol Indicator: IPBCP (text encoded) (32)
                .0.. .... = TPEI: No indication
                Session Description Protocol
                    Session Description Protocol Version (v): 0
                    Owner/Creator, Session Id (o): - 1 1 IN IP4 192.168.0.22
                        Owner Username: -
                        Session ID: 1
                        Session Version: 1
                        Owner Network Type: IN
                        Owner Address Type: IP4
                        Owner Address: 192.168.0.22
                    Session Name (s): -
                    Connection Information (c): IN IP4 192.168.0.22
                        Connection Network Type: IN
                        Connection Address Type: IP4
                        Connection Address: 192.168.0.22
                    Time Description, active time (t): 0 0
                        Session Start Time: 0
                        Session Stop Time: 0
                    Session Attribute (a): ipbcp:1 Request
                        Session Attribute Fieldname: ipbcp
                        Session Attribute Value: 1 Request
                    Media Description, name and address (m): audio 17028 RTP/AVP 100
                        Media Type: audio
                        Media Port: 17028
                        Media Proto: RTP/AVP
                        Media Format: 100
                    Media Attribute (a): ptime:20
                        Media Attribute Fieldname: ptime
                        Media Attribute Value: 20
                    Media Attribute (a): rtpmap:100 VND.3GPP.IUFP/16000
                        Media Attribute Fieldname: rtpmap
                        Media Attribute Value: 100 VND.3GPP.IUFP/16000
            BAT ASE Element 5, Identifier: Bearer Control Tunnelling - Tunnelling to be used 
                BAT ASE Identifiers: Bearer Control Tunnelling (0x09)
                BAT ASE Element length indicator: 2
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                .... ...1 = Bearer control tunneling: Tunnelling to be used
            BAT ASE Element 6, Identifier: Bearer Control Unit Identifier
                BAT ASE Identifiers: Bearer Control Unit Identifier (0x0a)
                BAT ASE Element length indicator: 6
                .... ..11 = BAT ASE Instruction indicator for general action: Release call (0x03)
                .... .0.. = Send notification indicator for general action: do not send notification
                ..00 .... = Instruction ind for pass-on not possible: Release call (0x00)
                .0.. .... = Send notification indication for pass-on not possible: do not send notification
                1... .... = Extension indicator: last octet
                Network ID Length indicator= 0
                Local BCU ID : 0x01000000
    Optional forward call indicators: non-CUG call (0)
        Optional Parameter: 8 (Optional forward call indicators)
        Parameter length: 1
        .... ..00 = Closed user group call indicator: non-CUG call (0)
        .... .0.. = Simple segmentation indicator: no additional information will be sent
        0... .... = Connected line identity request indicator: not requested
    End of optional parameters (0)