-
Notifications
You must be signed in to change notification settings - Fork 814
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
Fixed Service-Route update upon registration #3823
Conversation
Attached is the SIPP xml for testing the issue: Test flow:
Test 2:
|
Though I haven't tested it, I believe there may be another issue with pjsua_acc_modify(). See here (global outbound proxies first): pjproject/pjsip/src/pjsua-lib/pjsua_acc.c Line 1171 in 4169142
and here (account proxies always last): pjproject/pjsip/src/pjsua-lib/pjsua_acc.c Line 1191 in 4169142
It doesn't seem to account for any additional routes injected via Service-Route |
I believe we don't need to clear the learnt Service-Route headers during account modification, except in rare cases such as modifying the registrar perhaps? |
update_service_route() appends the headers to the route set of an account. My worry is, that the code here: pjproject/pjsip/src/pjsua-lib/pjsua_acc.c Line 1191 in 4169142
removes the service route headers (if there are any) when it actually wants to remove the proxies of the account. |
You're right. I understand the problem now. |
Ok, so the questions remains what to do when?
In my naiveté I tend towards the first since it seems to be the option which is least error prone |
I'm currently leaning towards the third option (only change in either proxy list or the registrar). |
To fix #3790.
According to the RFC (https://datatracker.ietf.org/doc/html/rfc3608.html#section-6.1):
There are a couple issues with the current implementation:
Thanks to @andreas-wehrmann for the report and investigation.