Bugs item #2851214, was opened at 2009-09-04 16:26
Message generated for change (Tracker Item Submitted) made by axlh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2851214&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.5.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Hermann (axlh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Registrar leaks contacts from unrelated users
Initial Comment:
When an AOR with no active registrations queries for its current bindings (Contact: *, Expires: 0), the registrar returns the bindings of the AOR who was last handled by the same process instead of returning an empty list. Attached patch fixes this. Applies to 1.4 as well as 1.5.
Btw, why does every caller of get_urecord() check for negative return code??? The function can only return 0 or 1.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2851214&group_…
Revision: 5921
http://openser.svn.sourceforge.net/openser/?rev=5921&view=rev
Author: henningw
Date: 2009-09-04 13:04:06 +0000 (Fri, 04 Sep 2009)
Log Message:
-----------
- small docs clarification related to ring_insert_callid function
Modified Paths:
--------------
branches/1.5/modules/siputils/README
branches/1.5/modules/siputils/doc/siputils_admin.xml
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
why does test
if ($var(test)) ...
fail even when $var(test) has a non-empty string value?
the test works, if i do it like this:
if ($var(test) != 0) ...
i'm pretty sure that in k also the first version of the test works.
-- juha
Module: sip-router
Branch: master
Commit: 3e493f4d363966db93bc32bca62c10ca6a14b927
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3e493f4…
Author: Nils Ohlmeier <lando(a)bespin.rfc3261.net>
Committer: Nils Ohlmeier <lando(a)bespin.rfc3261.net>
Date: Thu Sep 3 16:22:48 2009 +0200
oob cfg: merged changes from last SIPit
This version of sip-router-oob.cfg was successfully tested at
SIPit 24. The changes are:
- re-organzied the NAT detection
- added lots of comments about NAT detection
- renamed the record- and loose-routes
- added an inactive ENUM route
- activated DNS NAPTR and SRV options
- disabled TCP async to allow usage of TLS
- disabled the files limit as this prevents the usage of the config as non-root
user on most systems
---
etc/sip-router-oob.cfg | 176 ++++++++++++++++++++++++++++++++++--------------
1 files changed, 126 insertions(+), 50 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=3e4…
Hello,
just committed to GIT support for 'include' in config file. Hopefully
this helps in nicer structuring and maintenance of your configs.
The syntax is simple:
include path_to_file
The path_to_file can be relative or absolute. If it is not absolute
path, first attempt is to locate it relative to current directory, and
if fails, relative to directory of the file that includes it. There is
no restriction where include can be used or what can contain - any part
of config file is ok. There is a limit of maximum 10 includes in depth,
otherwise you can use as many includes as you want. Reporting of the cfg
file syntax errors prints now the file name for easier troubleshooting.
Example:
route {
...
include /sr/checks.cfg
...
}
--- /sr/checks.cfg ---
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}
---
Testing and feedback is much appreciated.
Cheers,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/
Module: sip-router
Branch: andrei/rpc_async
Commit: e256ce91db53172264a6e42cfd5040b30dada526
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e256ce9…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Jul 30 15:40:42 2009 +0200
core: rpc capabilities and delayed reply api
- added a new rpc function for interrogating the current rpc
transport capabilities (for now the only extra capability is
RPC_DELAYED_REPLY).
- added a new special delayed reply rpc context and rpc functions hooks for
creating and closing it.
---
rpc.h | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/rpc.h b/rpc.h
index 18e767e..1434146 100644
--- a/rpc.h
+++ b/rpc.h
@@ -37,7 +37,13 @@ enum rpc_flags {
RET_ARRAY = (1 << 0),
RET_VALUE = (1 << 1)
};
-
+
+typedef enum rpc_capabilities {
+ RPC_DELAYED_REPLY = (1 <<0) /* delayed reply support */
+} rpc_capabilities_t;
+
+struct rpc_delayed_ctx;
+
/* Send the result to the caller */
typedef int (*rpc_send_f)(void* ctx); /* Send the reply to the client */
@@ -49,6 +55,13 @@ typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...); /* Cr
typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...); /* Scan attributes of a structure */
typedef int (*rpc_struct_printf_f)(void* ctx, char* name, char* fmt, ...); /* Struct version of rpc_printf */
+/* returns the supported capabilities */
+typedef rpc_capabilities_t (*rpc_capabilities_f)(void* ctx);
+/* create a special "context" for delayed replies */
+typedef struct rpc_delayed_ctx* (*rpc_delayed_ctx_new_f)(void* ctx);
+/* close the special "context" for delayed replies */
+typedef void (*rpc_delayed_ctx_close_f)(struct rpc_delayed_ctx* dctx);
+
/*
* RPC context, this is what RPC functions get as a parameter and use
* it to obtain the value of the parameters of the call and reference
@@ -63,9 +76,19 @@ typedef struct rpc {
rpc_struct_add_f struct_add;
rpc_struct_scan_f struct_scan;
rpc_struct_printf_f struct_printf;
+ rpc_capabilities_f capabilities;
+ rpc_delayed_ctx_new_f delayed_ctx_new;
+ rpc_delayed_ctx_close_f delayed_ctx_close;
} rpc_t;
+typedef struct rpc_delayed_ctx{
+ rpc_t rpc;
+ void* reply_ctx;
+ /* more private data might follow */
+} rpc_delayed_ctx_t;
+
+
/*
* RPC Function Prototype
*/