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 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.
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 notification settings at the URL shown above.
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 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…
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 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>
Module: sip-router
Branch: 3.1
Commit: 2838bfd4df264bfd3030238c6b524c1d3f13c3f2
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2838bfd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Oct 29 18:51:14 2010 +0200
dispatcher: docs updated - routing block types for functions
(cherry picked from commit 54723bfd00fdc6302802533fee8c2f0ae45c7091)
---
modules_k/dispatcher/README | 12 ++++++------
modules_k/dispatcher/doc/dispatcher_admin.xml | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/modules_k/dispatcher/README b/modules_k/dispatcher/README
index 67177a5..781e499 100644
--- a/modules_k/dispatcher/README
+++ b/modules_k/dispatcher/README
@@ -693,7 +693,7 @@ Note
use next address to achieve serial forking to all possible
destinations.
- This function can be used from REQUEST_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
Example 1.29. ds_select_dst usage
...
@@ -714,21 +714,21 @@ ds_select_dst("1", "$var(a)");
to use next address to achieve serial forking to all possible
destinations.
- This function can be used from REQUEST_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
4.3. ds_next_dst()
Takes the next destination address from the AVPs with id 'dst_avp_id'
and sets the dst_uri (outbound proxy address).
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
4.4. ds_next_domain()
Takes the next destination address from the AVPs with id 'dst_avp_id'
and sets the domain part of the request uri.
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
4.5. ds_mark_dst()
@@ -737,7 +737,7 @@ ds_select_dst("1", "$var(a)");
automatic detection of failed gateways. When an address is marked as
inactive, it will be ignored by 'ds_select_dst' and 'ds_select_domain'.
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
4.6. ds_mark_dst("s")
@@ -755,7 +755,7 @@ ds_select_dst("1", "$var(a)");
Note: You will need to call this function "threshhold"-times,
before it will be actually set to probing.
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
4.7. ds_is_from_list()
diff --git a/modules_k/dispatcher/doc/dispatcher_admin.xml b/modules_k/dispatcher/doc/dispatcher_admin.xml
index a6c8748..b05403a 100644
--- a/modules_k/dispatcher/doc/dispatcher_admin.xml
+++ b/modules_k/dispatcher/doc/dispatcher_admin.xml
@@ -812,7 +812,7 @@ modparam("dispatcher", "force_dst", 1)
destinations.
</para>
<para>
- This function can be used from REQUEST_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
</para>
<example>
<title><function>ds_select_dst</function> usage</title>
@@ -842,7 +842,7 @@ ds_select_dst("1", "$var(a)");
destinations.
</para>
<para>
- This function can be used from REQUEST_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
</para>
</section>
<section>
@@ -854,7 +854,7 @@ ds_select_dst("1", "$var(a)");
and sets the dst_uri (outbound proxy address).
</para>
<para>
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
</para>
</section>
<section>
@@ -866,7 +866,7 @@ ds_select_dst("1", "$var(a)");
and sets the domain part of the request uri.
</para>
<para>
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
</para>
</section>
<section>
@@ -880,7 +880,7 @@ ds_select_dst("1", "$var(a)");
inactive, it will be ignored by 'ds_select_dst' and 'ds_select_domain'.
</para>
<para>
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
</para>
</section>
<section>
@@ -914,7 +914,7 @@ ds_select_dst("1", "$var(a)");
</listitem>
</itemizedlist>
<para>
- This function can be used from FAILURE_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
</para>
</section>
<section>