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
OpenSIPS accepts broken Contact header, then fails to start #729
Comments
Hi Saul! Not sure whether the problem is that opensips accepts the bogus Contact header, or it does not start if the contact in the DB is bogus. Probably both? Will look into this next week. Best regards, |
Hi Razvan! Thanks for the tip! As for the fix, I think OpenSIPS should make sure the data is correct Now, data might end up bogus on the DB due to bugs, so ignoring the broken
|
Hi @saghul, The only way I was able to save that contact in the DB was using |
You're right, I was using nat_traversal, so I guess the same applies. |
Can you tell me what are you using from nat_traversal and/or nathelper modules? |
Actually, I was wrong. We are using a bit of custom logic to set the received_uri AVP manually. So it is set. |
ok i see. i will add a check in usrloc which will do |
👍 |
7f37f05 . Also, at startup, if a broken contact it's found, you receive an error which gives the aor, contact, received and contact_id (if trunk version used) such that you can delete it from the database without closing OpenSIPS. |
Nice, thanks! I'll make a new build and test it out. |
Tested it, works just fine, thanks @ionutrazvanionita! |
(Tested on OpenSIPS 1.11 as of commit 95f5f79)
OpenSIPS accepts a registration with a broken Contact header and saves it in the location table. Example REGISTER:
After this, if OpenSIPS is restarted, it fails to start with the following log:
The text was updated successfully, but these errors were encountered: