wmnsk / go-tcap Goto Github PK
View Code? Open in Web Editor NEWTCAP implementation in Golang.
License: MIT License
TCAP implementation in Golang.
License: MIT License
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,
But got the following,
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
It looks like if no protocol version is defined this function will fail to correctly process the rest of the bytes
Lines 438 to 445 in 08bd257
Hi,
Can you give another example where there are more than 1 transaction? i.e ul, isd, ul_ack?
I am new to go and following your instruction to run client. I am getting this error below:
go-tcap/examples/client# ./client -h
bash: ./client: No such file or directory
ASN1 has 2 implementations for the data length.
then the IE value length is greater than 127 it still encodes/decodes the length in the shorter implementation thus not able to communicate with any other ASN1 service.
I suggest to have simple client/server project for go-tcap package,
it will be easy to new comers to understand and use that package
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.