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

allow custom callback for checking recv messages #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ptitdoc
Copy link

@ptitdoc ptitdoc commented Mar 3, 2023

This allow custom use cases for bromelia such as diameter apps that answer to multiple names/aliases, specific logging of recv messages, or implementing diameter messages proxying.

The simplest use case it is to actually disable node recv message (which I use for a diameter proxy as I don't care about the destination node, I just forward messages to the next peer):

def diameter_recv_callback(association, message):
    
    print("RECV callback: ", association)

BaseMessageProcessor.set_recv_callback(diameter_recv_callback)

this allow writing special cases such as diameter
apps that answer to multiple names/aliases, specific
logging of recv messages, or implementing diameter
messages proxying.
@ptitdoc
Copy link
Author

ptitdoc commented Dec 1, 2023

Hello,

Are you interrested by this commit ? The goal for me is to write a diameter proxy. I have working code but I don't really like it, I can publish it along anyway if you want it for reference.

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

Successfully merging this pull request may close these issues.

1 participant