Skip to content

allow custom callback for checking recv messages - #14

Open
ptitdoc wants to merge 1 commit into
heimiricmr:masterfrom
post-cyberlabs:callback_dev
Open

allow custom callback for checking recv messages#14
ptitdoc wants to merge 1 commit into
heimiricmr:masterfrom
post-cyberlabs:callback_dev

Conversation

@ptitdoc

@ptitdoc ptitdoc commented Mar 3, 2023

Copy link
Copy Markdown

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

ptitdoc commented Dec 1, 2023

Copy link
Copy Markdown
Author

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