Code Monkey home page Code Monkey logo

Comments (5)

jaroszan avatar jaroszan commented on August 20, 2024

I suggest that you comment out the following line in the client.go:

diam.NewAVP(avp.AcctApplicationID, avp.Mbit, 0, datatype.Unsigned32(4)), // RFC 4006

This example is obsolete since Credit Control application has type "auth" and this line adds application id with type "acct". go-diameter does not support application with id = 4 and type = acct.

There is still an issue with error message here, client is adding application that he does not support. However if you want to send out what is supported by the dictionary it will be fine.

from go-diameter.

jaroszan avatar jaroszan commented on August 20, 2024

You may also want to replace the following line:

<application id="999">
with
<application id="999" type="acct">
to make sure that server and client are on the same page.

More strict dictionary verification was introduced a couple of days ago, hence examples aren't up to date.

from go-diameter.

jaroszan avatar jaroszan commented on August 20, 2024

See here for changes that will get examples to work #62

from go-diameter.

dirkm avatar dirkm commented on August 20, 2024

Your fix works for me. Thanks for the quick patch!

from go-diameter.

fiorix avatar fiorix commented on August 20, 2024

Yeah no more hacks, #62 was just merged in. Thanks guys.

from go-diameter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.