THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#198 - uac_replace_to and backup via AVPs
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Implemented
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=198
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#198 - uac_replace_to and backup via AVPs
User who did this - Daniel-Constantin Mierla (miconda)
----------
The changes for Lua were incorrect, the wrapper function to replace from header attributes expects some fixed up structures, not char*, thus I remove it and added a function taking str* parameters to be exported via inter-modules API.
I may replace the avps introduced with xavp before the release of v3.3.0, it suits better to use a class of xavp per module in this case where to store from/to values.
For now the patch is committed in master mostly as your version, without Lua changes. I am closing this item.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=198#comment507
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#205 - call_control() automatically engages mediaproxy on every call
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Fixed
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=205
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#205 - call_control() automatically engages mediaproxy on every call
User who did this - Daniel-Constantin Mierla (miconda)
----------
Your fix sent to mailing list has been committed to master branch and it will be soon backported to 3.2.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=205#comment506
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: master
Commit: 55812477d1f4c9ee8726d0ba3cc7b6d3c8835f8a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5581247…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Mar 12 17:04:17 2012 +0100
call_control: avoid internal flags conflicts with mediaproxy
- use internal flag 28 for marking requests handled by call_control, the
old value, 30, being used by mediaproxy module, resulting in engaging
media relay
- reported and solution by Reda Aouad
---
modules_k/call_control/call_control.c | 2 +-
parser/msg_parser.h | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules_k/call_control/call_control.c b/modules_k/call_control/call_control.c
index fc3b0fc..2ba7a50 100644
--- a/modules_k/call_control/call_control.c
+++ b/modules_k/call_control/call_control.c
@@ -49,7 +49,7 @@
MODULE_VERSION
-#define FL_USE_CALL_CONTROL (1<<30) // use call control for a dialog
+#define FL_USE_CALL_CONTROL (1<<28) // use call control for a dialog
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
# define INLINE inline
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 44f5adb..97974e1 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -120,6 +120,9 @@ enum request_method {
#define FL_ADD_LOCAL_RPORT (1 << 11) /*!< add 'rport' to local via hdr */
#define FL_SDP_BODY (1 << 12) /*!< msg has SDP in body */
+/* WARNING: Value (1 << 28) is temporarily reserved for use in kamailio call_control
+ * module (flag FL_USE_CALL_CONTROL )! */
+
/* WARNING: Value (1 << 29) is temporarily reserved for use in kamailio acc
* module (flag FL_REQ_UPSTREAM)! */
Module: sip-router
Branch: master
Commit: 7f54aacb740011abe968eb599509cf296e003a61
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7f54aac…
Author: Anca Vamanu <anca.vamanu(a)1and1.ro>
Committer: Anca Vamanu <anca.vamanu(a)1and1.ro>
Date: Thu Mar 8 17:26:06 2012 +0200
modules_k/presence: Fixed bug - calling child_init in process main
Process main calls child_init with process type PROC_MAIN before
forking the TCP children. Since presence module opens database
connection in child_init, this resulted in connection being
inherited by the TCP children and wierd things happening when doing
DB operations.
Since there is no place in main() where child_init is
called after all the forks, for the subs_db_mode=WRITE_BACK when
process main needs to dump the subscribe table in database at
shutdown, the solution was to open the database connection in
mod_destroy().
---
modules_k/presence/presence.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/modules_k/presence/presence.c b/modules_k/presence/presence.c
index 58ddbd4..dd415f7 100644
--- a/modules_k/presence/presence.c
+++ b/modules_k/presence/presence.c
@@ -369,7 +369,7 @@ static int mod_init(void)
*/
static int child_init(int rank)
{
- if (rank==PROC_INIT || rank==PROC_TCP_MAIN)
+ if (rank==PROC_INIT || rank==PROC_MAIN || rank==PROC_TCP_MAIN)
return 0; /* do nothing for the main process */
pid = my_pid();
@@ -462,8 +462,14 @@ static int mi_child_init(void)
*/
static void destroy(void)
{
- if(subs_htable && pa_db)
- timer_db_update(0, 0);
+ if(subs_htable && subs_dbmode == WRITE_BACK) {
+ /* open database connection */
+ pa_db = pa_dbf.init(&db_url);
+ if (!pa_db) {
+ LM_ERR("mod_destroy: unsuccessful connecting to database\n");
+ } else
+ timer_db_update(0, 0);
+ }
if(subs_htable)
destroy_shtable(subs_htable, shtable_size);