Disable automatic following of redirect #477
Unanswered
weili-jiang
asked this question in
Ideas/Proposals
Replies: 1 comment
-
A PR is welcome. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently all incoming 3xx responses are handled internally and followed through. I would like to be able to have some control over whether redirection (3xx) is automatically followed or not, based on what is in the 3xx message.
Would you accept a PR for a new API for
re_sipsess.h
as follows:This would set a
bool
flag on the session such that ininvite_resp_handler
can chose not to follow the redirect and just terminate the call with the 3xx message available to the client. I would call it immediately aftersipsess_connect
. Existing clients that do not call this new function will behave as before.Beta Was this translation helpful? Give feedback.
All reactions