Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble with doing a InitialDPArgs request (CAMELv2) #16

Open
danievanzyl opened this issue Feb 9, 2024 · 1 comment
Open

Having trouble with doing a InitialDPArgs request (CAMELv2) #16

danievanzyl opened this issue Feb 9, 2024 · 1 comment

Comments

@danievanzyl
Copy link

Hi, I'm not sure if I'm doing this incorrectly, but using the library, I am try to send the following HEX byte string that is ASN1 encoded.

307180016e83078313873881620385010a8a058493527008bb0580038090a39c01029f320836155030868778f0bf3417020100810791527088113046a309800736f50100f1026fbf35038301119f3605dad1c900079f3707915270881130469f38068170880804199f39080242100341402080

I was expecting that wireshark would be able to successfully decode the payload, but instead it failed
Expected,
image
But got the following,
image

Here is the code snippet I used to generate the tcapPayload...

	hexString := "307180016e83078313873881620385010a8a058493527008bb0580038090a39c01029f320836155030868778f0bf3417020100810791527088113046a309800736f50100f1026fbf35038301119f3605dad1c900079f3707915270881130469f38068170880804199f39080242100341402080"

	p, err := hex.DecodeString(hexString)
	if err != nil {
		fmt.Println("Error decoding hex string:", err)
		return
	}

	tcapPayload := tcap.NewBeginInvokeWithDialogue(
		uint32(*otid),     // OTID
		tcap.DialogueAsID, // DialogueType
		uint8(50),
		1, // ACN Version
		0, // Invoke Id
		0, // OpCode
		p, // Payload
	)

Am I missing a setting or flag to be set?

Any assistance will be greatly appreciated. I am fairly new to SCCP/TCAP/CAMELv2, so please excuse any ignorance or strange questions.

Many thanks,
Danie

@wmnsk
Copy link
Owner

wmnsk commented Mar 29, 2024

sorry for leaving this for a long time… would you still like help? I think I can take a closer look this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants