-
Notifications
You must be signed in to change notification settings - Fork 84
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
Use source address of request as SDP session and media address #168
Conversation
I think that |
I don't think that Edit: In my tests all requests that baresip/re knows about had valid message body when they were sent out. |
Just a summary. This PR is functionally backwards compatible with current behavior. The only API change is in |
- Added sdp_encode() call to err chain
Sebastian Reimers writes:
The hint is the double pointer, we have the same description on many
places
Yes, fine.
|
In this PR, sip/request.c request() function has this piece of code:
The name of the called handler is It would seem logical that I don't propose any changes now, since I would not like to delay the fix. The bug was opened against my Android app more than two years ago on Oct 11, 2019 and I would like to finally close it. |
This is a good idea. Will have a look on it soon. |
I was thinking that perhaps sipsess_connect()
arguments. Then in call.c send_invite, they could have values
where body_handler is defined like this:
|
I am currently working on a similar approach. |
Good, so I don't need to double the work. |
re PR: #172 It works already. But have to fix a shortly added unit test in baresip. |
Christian Spielberger writes:
re PR: #172
retest PR: baresip/retest#34
baresip PR: baresip/baresip#1645
It works already. But have to fix a shortly added unit test in
baresip.
Thanks, I'll test tomorrow.
|
Ok, thanks! I tested only with IP address so far and checked if the SIP Header + Content looks ok. |
Now the test described in baresip/baresip#1631 (comment) worked! One comment: is the concept of "best effort laddr" still needed?
|
I'll close this in favor of #172. |
This is a good question. |
This PR always keep SDP session and media addresses up to date with request source address.