-
Notifications
You must be signed in to change notification settings - Fork 22
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
302 reply *forces* redirection #54
Comments
I opened #66 recently to address the lack of a generic response callback handler to handle things like 3xx |
I'm working on the subclass implementation instead of using a modified Net::SIP
|
Found the problem: You mentioned subclassing Net::SIP::Leg, but the limitation in handling 302 in Endpoint::Context makes this not possible. You can write your own receive logic in a subclassed Net:SIP::Leg, but internally, Endpoint::Context will always take over and send an INVITE for the 302. It does not look possible to change this behavior simply by subclassing Net::SIP::leg. I have a patch to add a callback which will allow to interrupt the flow for 302 and do your own user-defined handling: I will also submit a PR for this. I think this is a great feature to have. |
@whosgonna would you mind giving feedback on this patch? Thanks |
Is there any way to optionally NOT force a forward on a 302 response? In a variety of situations it may not be desirable to follow the contact header.
Right now I've simply commented out the code in my local copy, but this could be probably controlled with:
Thoughts?
The text was updated successfully, but these errors were encountered: