THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Alex Hermann (axlh)
Attached to Project - sip-router
Summary - Segfault in allow_trusted2
Task Type - Bug Report
Category - Modules kamailio
Status - Assigned
Assigned To - Daniel-Constantin Mierla
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - 3.1
Due in Version - Undecided
Due Date - Undecided
Details - if (allow_trusted("$si", "$proto"))
…
[View More]
Will cause a segfault.
$proto is returned from the following code fragment in pv_core.c:
int pv_get_proto(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
{
str s;
if(msg==NULL)
return -1;
switch(msg->rcv.proto)
{
case PROTO_UDP:
s.s = "udp";
s.len = 3;
break;
The "udp" string is allocated by the compiler in the TEXT segment, which by its nature is not writable. The tolower() which allow_trusted2() tries to do later is rewarded with a segfault.
Attached patch fixes the segfault.
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=102
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.
[View Less]
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A user has added themself to the list of users assigned to this task.
FS#102 - Segfault in allow_trusted2
User who did this - Alex Hermann (axlh)
http://sip-router.org/tracker/index.php?do=details&task_id=102
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.
A new Flyspray task has been opened. Details are below.
User who did this - Alex Hermann (axlh)
Attached to Project - sip-router
Summary - [regression] proxy_authorize function is missing return values
Task Type - Bug Report
Category - Modules kamailio
Status - Assigned
Assigned To - Daniel-Constantin Mierla
Operating System - All
Severity - Low
Priority - Normal
Reported Version - 3.1
Due in Version - Undecided
Due Date - Undecided
Details - In …
[View More]kamailio 1.5 the various _authorize functions return a lot more info on failed authorization attempts. In 3.1 this functionalitity is missing.
Attached patch is a first attempt to restore this functionality.
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=101
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.
[View Less]
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A user has added themself to the list of users assigned to this task.
FS#101 - [regression] proxy_authorize function is missing return values
User who did this - Alex Hermann (axlh)
http://sip-router.org/tracker/index.php?do=details&task_id=101
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 …
[View More]notification settings at the URL shown above.
[View Less]
Module: sip-router
Branch: 3.1
Commit: e9709a3c6b2c99e9cc3fd528704aea24e0534a55
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e9709a3…
Author: Jan Janak <jan(a)ryngle.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Nov 17 18:26:32 2010 -0500
db_mysql: Fixes crash in libmysqlclient after connection reset.
Sometimes SIP-Router would crash in libmysqlclient after a connection
to the server has been reset. This is caused by …
[View More]mysql_stmt_prepare
which will reset the connection data structure if a connection has been
reset. Subsequent calls to other mysql functions (mysql_stmt_execute)
crash unless the connection has been re-connected. This is documented
as mysql bug #33384.
A workaround is to reset and reconnect the connection explicitly
immediately after mysql_stmt_prepare has failed with
CR_SERVER_GONE_ERROR. This change implements exactly that.
First of all, this patch fixes a minor bug in updating the variable
that keeps track of number of connection resets for each database
connection and pre-pared statement. The variable needs to be
incremented each time a connection is closed. Previously it was
incremented only if a connection was successfully reconnected. If the
reconnect attempt failed than the variable was not incremented. The
function that uploads commands to the server relies on the variable
to detect connection resets and may not have worked properly under
some circumstances (if a connection fails to reconnect).
Function upload_cmd has been modified to close the connection
explicitly if mysql_stmt_prepare fails with CR_SERVER_GONE_ERROR. This
ensures that subsequent calls to mysql_stmt_exec are forced to reconnect
and re-upload commands to the server. This is needed to prevent the
library from crashing.
exec_cmd_safe now checks if a connection has been disconnected and if
so it tries to reconnect it before executing a prepared statement. This
is used to recover from failing mysql_stmt_prepare.
(cherry picked from commit 0e564bcd3616f9dc981bb768003545674c79c2a7)
---
modules/db_mysql/my_cmd.c | 258 +++++++++++++++++++++++++--------------------
modules/db_mysql/my_con.c | 18 ++--
modules/db_mysql/my_con.h | 10 +-
3 files changed, 158 insertions(+), 128 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=e97…
[View Less]
Module: sip-router
Branch: 3.1
Commit: 7340a8d0d02e22c2541b6e1d0dc82fb194a90c87
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7340a8d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Nov 12 12:26:26 2010 +0100
dispatcher(k): note about disabling MI ds_reload
- the MI command ds_reload is disabled for call load based dispatching
(algorithm 10)
(cherry picked from commit …
[View More]e1371192357f889c35003ea28d0eb2351e27f84d)
---
modules_k/dispatcher/README | 5 ++++-
modules_k/dispatcher/doc/dispatcher_admin.xml | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules_k/dispatcher/README b/modules_k/dispatcher/README
index 781e499..1c747c9 100644
--- a/modules_k/dispatcher/README
+++ b/modules_k/dispatcher/README
@@ -857,7 +857,10 @@ onreply_route {
5.3. ds_reload
- It reloads the groups and included destinations.
+ It reloads the groups and included destinations. The command is
+ disabled for call load based dispatching (algorithm 10) since removal
+ of destinations may leave the list of active calls with broken
+ references.
Name: ds_reload
diff --git a/modules_k/dispatcher/doc/dispatcher_admin.xml b/modules_k/dispatcher/doc/dispatcher_admin.xml
index b05403a..ae857fd 100644
--- a/modules_k/dispatcher/doc/dispatcher_admin.xml
+++ b/modules_k/dispatcher/doc/dispatcher_admin.xml
@@ -1069,7 +1069,10 @@ onreply_route {
<function moreinfo="none">ds_reload</function>
</title>
<para>
- It reloads the groups and included destinations.
+ It reloads the groups and included destinations. The command is
+ disabled for call load based dispatching (algorithm 10) since
+ removal of destinations may leave the list of active
+ calls with broken references.
</para>
<para>
Name: <emphasis>ds_reload</emphasis>
[View Less]