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
[BUG] 3.1.1: outgoing-expires argument not honored by mid_registrar_save() #2350
Comments
My apologies for the long wait, @gmaruzz! And thank you for the accurate report! 🎉🎉 |
seems the problem is still there... using latest nightly
opensips -V |
for config and logs, see: |
@gmaruzz, I used the exact settings and function calling convention posted in #2351, in the following scenario, on latest
Here is the REGISTER flow:
... so the |
Wait, I think I got something. It seems that when I use a Contact with |
This fixes a bug where the mid-registrar, in mode == 2, would not correctly process REGISTER requests containing both: * an ";expires=" Contact param * an "Expires" header field Specifically, the "Expires" header would incorrectly transit "as is", without being changed. Related to #2350
This fixes a bug where the mid-registrar, in mode == 2, would not correctly process REGISTER requests containing both: * an ";expires=" Contact param * an "Expires" header field Specifically, the "Expires" header would incorrectly transit "as is", without being changed. Related to #2350 (cherry picked from commit 6c59530)
This fixes a bug where the mid-registrar, in mode == 2, would not correctly process REGISTER requests containing both: * an ";expires=" Contact param * an "Expires" header field Specifically, the "Expires" header would incorrectly transit "as is", without being changed. Related to #2350 (cherry picked from commit 6c59530)
Just submitted a fix for the above, @gmaruzz. Let me know if it fixes your scenario. |
this one will go in the nightly deb build? or, maybe it is better if I build the debs myself from the 3.1 branch? |
(opensips-cli): mi uptime |
Yes, it will go in nightly build. Proceed as it suits you best -- I am more than OK to review the results later ;) |
have a nice weekend! |
(btw, maybe there is some interaction with the "pn" module parameters. like they change the code path? We'll see... anyway, as soon as I build the packages I'll be able to be more quick) |
You were right, in a way. Your PN contact was using a "7 day" expiration (a good adjustment to RFC 8599, btw!), which confused mid-registrar (since it's larger than your "outgoing_expires": |
I will give feedback when tested |
outgoing-expires works! |
OpenSIPS version you are running
version: opensips 3.1.1 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
main.c compiled on with gcc 6.3.0
Describe the bug
outgoing-expires argument not honored by mid_registrar_save()
To Reproduce
mid_registrar_save("location", "c1f",,1234567,"service");
results in using the outgoing_expires set in module parameter, eg same as if function argument is not used
Expected behavior
argument to mid_registrar_save override value set by module parameter
Relevant System Logs
OS/environment information
Additional context
The text was updated successfully, but these errors were encountered: