THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#397 - Kamailio doesn't to handle any SIP message at all after several dialogs... (CPU high usage)
User who did this - Jack Wang (GoGoJack)
----------
OMG...I DO NOW understand why my config.mak may have some problems -
For taking a customized settings, the right way should be done such like "make cfg ARCH=arm" before
(and the -DUSE_PTHREAD_MUTEX was set right there),
but I modify it after "make cfg" which may cause abnormal processing afterwards.
Oh My poor concept about the Makefile system :P
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=397#comment1333
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#397 - Kamailio doesn't to handle any SIP message at all after several dialogs... (CPU high usage)
User who did this - Jack Wang (GoGoJack)
----------
Do you mean take the -DUSE_PTHREAD_MUTEX option instead? I'll compiled with it and check the result. Thanks.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=397#comment1332
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#405 - Improvement for db_cluster
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=405
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#405 - Improvement for db_cluster
User who did this - Daniel-Constantin Mierla (miconda)
----------
Pushed to master branch.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=405#comment1331
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#349 - uac_redirect not honoring q-value for max_total = 1
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=349
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#349 - uac_redirect not honoring q-value for max_total = 1
User who did this - Daniel-Constantin Mierla (miconda)
----------
Finally got some time to come back to it. I pushed a patch in master for now:
- http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a9b3286…
If you can test and report when all is ok, then I will backport. If any issues, then reopen this item.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=349#comment1330
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: a9b3286a5ace0f66852054634b46c0647c8d1271
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a9b3286…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Mar 3 19:15:30 2014 +0100
uac_redirect: select the contacts with highest q when a limit is set
- reported by Stefan Prelle, FS#349
---
modules/uac_redirect/rd_funcs.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/uac_redirect/rd_funcs.c b/modules/uac_redirect/rd_funcs.c
index f85d84d..6bed77f 100644
--- a/modules/uac_redirect/rd_funcs.c
+++ b/modules/uac_redirect/rd_funcs.c
@@ -165,7 +165,7 @@ static int sort_contacts(hdr_field_t *chdr, contact_t **ct_array,
ct_list->uri.len,ct_list->uri.s,q);
/*insert the contact into the sorted array */
for(i=0;i<n;i++) {
- /* keep in mind that the contact list is reversts */
+ /* keep in mind that the contact list is reversed */
if (q_array[i]<=q)
continue;
break;
@@ -285,14 +285,18 @@ static int shmcontact2dset(struct sip_msg *req, struct sip_msg *sh_rpl,
goto restore;
}
- /* to many branches ? */
+ i=0;
+
+ /* more branches than requested in the parameter
+ * - add only the last ones from sorted array,
+ * because the order is by increasing q */
if (max!=-1 && n>max)
- n = max;
+ i = n - max;
added = 0;
/* add the sortet contacts as branches in dset and log this! */
- for ( i=0 ; i<n ; i++ ) {
+ for ( ; i<n ; i++ ) {
LM_DBG("adding contact <%.*s>\n", scontacts[i]->uri.len,
scontacts[i]->uri.s);
if(sruid_next(&_redirect_sruid)==0) {