[sr-dev] [kamailio/kamailio] During de-registration procedure, clean-up is not happening if contact has * value (Issue #3848)

2024-05-13 Thread deepak-git-account via sr-dev


### Description


 If Deregistration contains * in a contact field as described in RFC-3261,
 then the Kamailio is not cleaning the in-memory and database record. And 
the next iteration is not working correctly. 
 Use of the "*" Contact header field value allows a registering UA
  to remove all bindings associated with an address-of-record
  without knowing their precise values.




Step:1 REGISTER USER UE-A
Step:2: Wait for the certain duration
Step:3: De-REGISTER USER UE-A (Contact header is using *)
Step:4: Repeat from the step-1
After step:3, clean-up is not happening. Record can be seen in SQL.
   Note: If de-register contains specific CONTACT header, then cleanup is 
happening.
### Troubleshooting

 Reproduction



 Debugging Data



```
(paste your debugging data here)
```

 Log Messages



```
May 13 19:47:22 openims-tvmcfg-node-focal pcscf/pcscf[35816]: DEBUG: 

[sr-dev] Re: [kamailio/kamailio] p_usrloc: use a global p_usrloc_columns variable in db_load* functions (PR #3845)

2024-05-13 Thread Lucian Balaceanu via sr-dev
Thank you for the comments, I made the static and renaming changes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3845#issuecomment-2107552088
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] db_mysql: failed build on CentOS 7 (Issue #3809)

2024-05-13 Thread sergey-safarov via sr-dev
Closed #3809 as completed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3809#event-12786067639
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] p_usrloc: use a global all_columns variable in db_load* functions (PR #3845)

2024-05-13 Thread Lucian Balaceanu via sr-dev
@lbalaceanu pushed 1 commit.

9ec5eaa88dd8f4146430429c6cb6aa086063d4ef  p_usrloc: use a global all_columns 
variable in db_load* functions

-- 
View it on GitHub:
https://github.com/kamailio/kamailio/pull/3845/files/58bffd732b5adb886dac83366027a8ed64e071ac..9ec5eaa88dd8f4146430429c6cb6aa086063d4ef
You are receiving this because you are subscribed to this thread.

Message ID: 
___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:767b3fae: db_mysql: fixed build on CentOS 7

2024-05-13 Thread Victor Seva via sr-dev
Module: kamailio
Branch: master
Commit: 767b3faee3af450d6482b919c81431ea6d707807
URL: 
https://github.com/kamailio/kamailio/commit/767b3faee3af450d6482b919c81431ea6d707807

Author: Sergey Safarov 
Committer: Victor Seva 
Date: 2024-05-13T08:36:52+02:00

db_mysql: fixed build on CentOS 7

---

Modified: src/modules/db_mysql/km_my_con.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/767b3faee3af450d6482b919c81431ea6d707807.diff
Patch: 
https://github.com/kamailio/kamailio/commit/767b3faee3af450d6482b919c81431ea6d707807.patch

---

diff --git a/src/modules/db_mysql/km_my_con.c b/src/modules/db_mysql/km_my_con.c
index 4c756db66ff..561a0037223 100644
--- a/src/modules/db_mysql/km_my_con.c
+++ b/src/modules/db_mysql/km_my_con.c
@@ -178,9 +178,16 @@ struct my_con *db_mysql_new_connection(const struct db_id 
*id)
}
 #endif /* MYSQL_VERSION_ID */
 #endif /* MARIADB_BASE_VERSION */
+
+#ifdef MYSQL_OPT_SSL_CA
if(db_mysql_opt_ssl_ca)
mysql_options(
ptr->con, MYSQL_OPT_SSL_CA, (const void 
*)db_mysql_opt_ssl_ca);
+#else
+   LM_WARN("opt_ssl_ca option not supported by mysql version (value %s) - "
+   "ignoring\n",
+   db_mysql_opt_ssl_ca);
+#endif /* MYSQL_OPT_SSL_CA */
 
 #ifdef KSR_MYSQL_OPT_RECONNECT
/* set reconnect flag if enabled */

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] db_mysql: fixed build on CentOS 7 (PR #3847)

2024-05-13 Thread Victor Seva via sr-dev
Merged #3847 into master.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3847#event-12781994668
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org