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

Diameter Client receving CCA #184

Closed
helioaymoto opened this issue Nov 15, 2023 · 3 comments
Closed

Diameter Client receving CCA #184

helioaymoto opened this issue Nov 15, 2023 · 3 comments

Comments

@helioaymoto
Copy link

Hi,
Trying to get a Diameter Client - Credit-Control, where I have been able to send the CCR Initial based on example code client.go, but even registering the mux to handle CCA:
mux.Handle("CCA", handleCCA(done))
I am getting the error:
Could not find preloaded Command with code 272
From what I understood, in v4 the Credit-Control dicitionay is part of the default dictionary and i have read the same in some comments like:
// Load our custom dictionary on top of the default one, which
// always have the Base Protocol (RFC6733) and Credit Control
// Application (RFC4006).

Is it possible to get some support?

@fiorix
Copy link
Owner

fiorix commented Nov 16, 2023

The error indicates that the dictionary has not been loaded. Your code is likely missing the call to load the dictionary - default or custom.

@fiorix fiorix closed this as completed Nov 16, 2023
@helioaymoto
Copy link
Author

Thanks Fiorix.
I found the issue in my code... In fact, the dicionary has been loaded correctally, but I was not setting the application-id correctelly when bulding the CCR... Once I fix the application-id (4) it started to work as expected.

m := diam.NewRequest(diam.CreditControl, 4, c.Dictionary())

@fiorix
Copy link
Owner

fiorix commented Nov 17, 2023

Perfect!

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