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

New middleware #82

Open
vodik opened this issue Mar 19, 2018 · 1 comment
Open

New middleware #82

vodik opened this issue Mar 19, 2018 · 1 comment

Comments

@vodik
Copy link
Contributor

vodik commented Mar 19, 2018

I want to play around with creating an aiosip_auth package to be able to layer in authentication APIs, but the current middleware APIs aren't sufficient.

I really need to be able to intercept every incoming SIP message, so I think we'll need to change its design so that its done as a chained iterator: the middleware first received the message and then optionally yields it down to the actual handler below.

This would let me, for example, challenge all SUBSCRIPTION or REGISTER messages, regardless of when they show up in the dialog, without having the layer below having to handle being aware of the challenge authentication messages.

@ludovic-gasc
Copy link
Contributor

I'm agree with your suggestion.

Be my guest to architecture the API for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants