wmnsk / go-sccp

SCCP protocol implementation in pure Golang.
MIT License
33 stars 13 forks source link

Add simple client example #8

Closed wmnsk closed 5 years ago

wmnsk commented 5 years ago

Add a simple SCCP client example which sends given payload on top of UDT message.

Signalling Connection Control Part
    Message Type: Unitdata (0x09)
    .... 0001 = Class: 0x1
    1000 .... = Message handling: Return message on error (0x8)
    Pointer to first Mandatory Variable parameter: 3
    Pointer to second Mandatory Variable parameter: 16
    Pointer to third Mandatory Variable parameter: 26
    Called Party address (13 bytes)
        Address Indicator
            0... .... = Reserved for national use: 0x0
            .0.. .... = Routing Indicator: Route on GT (0x0)
            ..01 00.. = Global Title Indicator: Translation Type, Numbering Plan, Encoding Scheme, and Nature of Address Indicator included (0x4)
            .... ..1. = SubSystem Number Indicator: SSN present (0x1)
            .... ...0 = Point Code Indicator: Point Code not present (0x0)
        SubSystem Number: HLR (Home Location Register) (6)
        [Linked to TCAP, TCAP SSN linked to GSM_MAP]
        Global Title 0x4 (11 bytes)
            Translation Type: 0x00
            0001 .... = Numbering Plan: ISDN/telephony (0x1)
            .... 0001 = Encoding Scheme: BCD, odd number of digits (0x1)
            .000 0100 = Nature of Address Indicator: International number (0x04)
            Called Party Digits: 123456789012345
                Called or Calling GT Digits: 123456789012345
                Number of Called Party Digits: 15
                Country Code: Americas (1)
    Calling Party address (10 bytes)
        Address Indicator
            0... .... = Reserved for national use: 0x0
            .0.. .... = Routing Indicator: Route on GT (0x0)
            ..01 00.. = Global Title Indicator: Translation Type, Numbering Plan, Encoding Scheme, and Nature of Address Indicator included (0x4)
            .... ..1. = SubSystem Number Indicator: SSN present (0x1)
            .... ...0 = Point Code Indicator: Point Code not present (0x0)
        SubSystem Number: VLR (Visitor Location Register) (7)
        [Linked to TCAP, TCAP SSN linked to GSM_MAP]
        Global Title 0x4 (8 bytes)
            Translation Type: 0x00
            0001 .... = Numbering Plan: ISDN/telephony (0x1)
            .... 0010 = Encoding Scheme: BCD, even number of digits (0x2)
            .000 0100 = Nature of Address Indicator: International number (0x04)
            Calling Party Digits: 9876543210
                Called or Calling GT Digits: 9876543210
                Number of Calling Party Digits: 10
                Country Code: Iran (Islamic Republic of) (98)