Module: sip-router
Branch: 3.3
Commit: 8cd628522a4258f32923fe58595677b300292b97
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8cd6285…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Sep 17 10:17:41 2012 +0300
Provide inline linkage for non-gcc compilers(like clang)
Inline method in headers should be declared extern.
(cherry picked from commit 2e5145ecdd8368c947ea93b98449ebd997824ce2)
---
lib/srdb1/db_res.h | 12 ++++++------
lib/srdb1/db_row.h | 4 ++--
modules/ctl/binrpc_run.c | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/srdb1/db_res.h b/lib/srdb1/db_res.h
index 82734b3..f8f909f 100644
--- a/lib/srdb1/db_res.h
+++ b/lib/srdb1/db_res.h
@@ -85,7 +85,7 @@ typedef struct db1_res {
* \param _r the result that should be released
* \return zero on success, negative on errors
*/
-inline int db_free_rows(db1_res_t* _r);
+extern inline int db_free_rows(db1_res_t* _r);
/**
@@ -95,20 +95,20 @@ inline int db_free_rows(db1_res_t* _r);
* \param _r the result that should be released
* \return zero on success, negative on errors
*/
-inline int db_free_columns(db1_res_t* _r);
+extern inline int db_free_columns(db1_res_t* _r);
/**
* Create a new result structure and initialize it.
* \return a pointer to the new result on success, NULL on errors
*/
-inline db1_res_t* db_new_result(void);
+extern inline db1_res_t* db_new_result(void);
/**
* Release memory used by a result structure.
* \return zero on success, negative on errors
*/
-inline int db_free_result(db1_res_t* _r);
+extern inline int db_free_result(db1_res_t* _r);
/**
* Allocate storage for column names and type in existing result structure.
@@ -118,7 +118,7 @@ inline int db_free_result(db1_res_t* _r);
* \param cols number of columns
* \return zero on success, negative on errors
*/
-inline int db_allocate_columns(db1_res_t* _r, const unsigned int cols);
+extern inline int db_allocate_columns(db1_res_t* _r, const unsigned int cols);
/**
@@ -126,6 +126,6 @@ inline int db_allocate_columns(db1_res_t* _r, const unsigned int cols);
* \param _res result set
* \return zero on success, negative on errors
*/
-inline int db_allocate_rows(db1_res_t* _res);
+extern inline int db_allocate_rows(db1_res_t* _res);
#endif /* DB1_RES_H */
diff --git a/lib/srdb1/db_row.h b/lib/srdb1/db_row.h
index 855ed3d..6bee889 100644
--- a/lib/srdb1/db_row.h
+++ b/lib/srdb1/db_row.h
@@ -62,7 +62,7 @@ typedef struct db_row {
* \param _r row that should be released
* \return zero on success, negative on error
*/
-inline int db_free_row(db_row_t* _r);
+extern inline int db_free_row(db_row_t* _r);
/**
@@ -71,6 +71,6 @@ inline int db_free_row(db_row_t* _r);
* \param _row filled row
* \return zero on success, negative on errors
*/
-inline int db_allocate_row(const db1_res_t* _res, db_row_t* _row);
+extern inline int db_allocate_row(const db1_res_t* _res, db_row_t* _row);
#endif /* DB1_ROW_H */
diff --git a/modules/ctl/binrpc_run.c b/modules/ctl/binrpc_run.c
index ce16c24..e114c18 100644
--- a/modules/ctl/binrpc_run.c
+++ b/modules/ctl/binrpc_run.c
@@ -388,7 +388,7 @@ end:
-inline void destroy_binrpc_ctx(struct binrpc_ctx* ctx)
+static inline void destroy_binrpc_ctx(struct binrpc_ctx* ctx)
{
free_structs(&ctx->out.structs);
if (ctx->out.pkt.body){
I understand Kamailio has a Python module
We've recently started adding Python into repro (the reSIProcate proxy)
too[1]
There are also other projects involving SIP and Python (e.g. the PjSIP
Python API and the Python SIP library used by SylkServer)
One thing that occurred to me is that it may be useful to have a common
API or at the bare minimum a common set of data types (e.g. Python
classes for SIP URIs, classes for the most common SIP headers and a
class for the SIP message itself) so that people can mix and match
Python code between all the projects.
For example, the Python urlparse module claims to support the "sip:"
scheme but in practice it is not supporting it very well, if you put in
the URI sip:daniel@pocock.com.au then it tells you that
username=None
hostname=None
path=daniel(a)pocock.com.au
Has anybody else had similar ideas about doing something in this space?
1. http://danielpocock.com/embedding-python-multi-threaded-cpp
Hello,
the last two stable branches are now 4.0 and 4.1. I am considering
packaging the latest branch 3.3 as release 3.3.6 and mark the end of
releasing from that branch. Patches can still go there if developers
find time for them, but the focus on release will go on 4.0 and 4.1.
Hopefully I will find some time tomorrow afternoon for it. If anyone has
patches to backport, do it before noon GMT tomorrow, or if there is
something that should go there and is no time for it now, reply here
with description and eventually propose a new date (or when you think
what you want to do can be finished).
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#382 - dlg_end_dlg on a two-armed proxy only sends bye to one party
User who did this - Per Carlen (peca)
----------
No error messages found. However found some strange log entries regarding local messages so...
Did a tcpdump on lo interface - and when running the "dlg_end_dlg", a BYE was actually sent on lo (src address and dst address = ip on external interface, first value in route-header also equalled the external ip).
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=382#comment1237
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.