Module: sip-router
Branch: janakj/kcore
Commit: 534aa29209a94390f6867b406cb7f69960bcb6c6
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=534aa29…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 23 13:48:17 2009 +0100
Merge branch 'sr' into kcore
* sr: (39 commits)
New function to return the To tag for local reply
Allow parser syn'ced with kamailio version
New functions that can be used to search for a header with given type
tcp: minor optimization
sercmd: minor makefile fix
tcp internal: send timeout is now kept only in ticks
core: typo fix
tcp: typo & minor optimization
Support for auto_inv_100_reason tm parameter.
Rename Contact parameter select 'method' to 'methods'
Rename Contact parameter 'method' to 'methods'
make install: avoid re-linking lib dependent modules
Kamailio compatiblity: export last_retcode via a global variable
build system: avoid libraries re-compiling
Add support for SET_HOSTALL_T action.
Replace missing logging macros with va_arg support using static buffer.
Adding send_sock to the dlg_t structure.
Update to the refurbished event parser.
Refurbished event header field parser.
Extend the parser parameter with support for dialog event parameters.
...
---
Module: sip-router
Branch: janakj/kcore
Commit: 8a7db2aacd98e1ac0a13753a8cfe82cbd1de14d0
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8a7db2a…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 23 10:44:07 2009 +0100
Merge branch 'master' of ssh://janakj@git.sip-router.org/sip-router into sr
* 'master' of ssh://janakj@git.sip-router.org/sip-router:
tcp: minor optimization
sercmd: minor makefile fix
tcp internal: send timeout is now kept only in ticks
core: typo fix
tcp: typo & minor optimization
Support for auto_inv_100_reason tm parameter.
Rename Contact parameter select 'method' to 'methods'
Rename Contact parameter 'method' to 'methods'
make install: avoid re-linking lib dependent modules
build system: avoid libraries re-compiling
fixing missing $ in ser_mysql.sh script
Debian packaging - fixing path to mysql sql files in my_create.sh script
The fixup function prototypes of the config variables have been
Strip, prefix, rewriteuser, ... all the SET_* actions preserve the
core: check & fix Content-Length when sending on tcp
tcp: config option for the async write block size
tcp: config option for the read buffer size
tcp: dyn. config fix for tcp_con_lifetime
tcp: diff. connect timeout for async & states cleanup
---
Module: sip-router
Branch: janakj/kcore
Commit: 9b63900b14a17f46e45c8aad3e0f970dbc17b73f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9b63900…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 23 11:16:52 2009 +0100
Merge branch 'master' of ssh://janakj@git.sip-router.org/sip-router into sr
* 'master' of ssh://janakj@git.sip-router.org/sip-router:
New function to return the To tag for local reply
Allow parser syn'ced with kamailio version
New functions that can be used to search for a header with given type
---
Module: sip-router
Branch: master
Commit: 7b878801737e7f368a22b1adcc1f2c05b9e8585a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7b87880…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Jan Janak <jan(a)iptel.org>
Date: Fri Mar 20 16:42:26 2009 +0100
New functions that can be used to search for a header with given type
This patch adds two new functions to the sip-router core. Function
get_hdr can be used to find the first occurrence of header with a given
type in a sip message if the particular header type does not have its
own hook in the sip_msg data structure.
The second function next_sibling_hdr can be used to find the next
occurence of header with the same type as the header in parameter
in the sip message.
Signed-off-by: Jan Janak <jan(a)iptel.org>
---
parser/msg_parser.c | 22 ++++++++++++++++++++++
parser/msg_parser.h | 3 +++
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/parser/msg_parser.c b/parser/msg_parser.c
index cad8028..74f91f5 100644
--- a/parser/msg_parser.c
+++ b/parser/msg_parser.c
@@ -743,3 +743,25 @@ void reset_dst_uri(struct sip_msg* msg)
msg->dst_uri.s = 0;
msg->dst_uri.len = 0;
}
+
+
+struct hdr_field* get_hdr(struct sip_msg *msg, enum _hdr_types_t ht)
+{
+ struct hdr_field *hdr;
+
+ for(hdr = msg->headers; hdr; hdr = hdr->next) {
+ if(hdr->type == ht) return hdr;
+ }
+ return NULL;
+}
+
+
+struct hdr_field* next_sibling_hdr(struct hdr_field *hf)
+{
+ struct hdr_field *hdr;
+
+ for(hdr = hf->next; hdr; hdr = hdr->next) {
+ if(hdr->type == hf->type) return hdr;
+ }
+ return NULL;
+}
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 48790c9..624c2ab 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -411,4 +411,7 @@ int set_dst_uri(struct sip_msg* msg, str* uri);
/* If the dst_uri is set to an URI then reset it */
void reset_dst_uri(struct sip_msg* msg);
+struct hdr_field* get_hdr(struct sip_msg *msg, enum _hdr_types_t ht);
+struct hdr_field* next_sibling_hdr(struct hdr_field *hf);
+
#endif
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0051630…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Mar 20 19:59:14 2009 +0000
tcp: minor optimization
- tcp_req complete & has_content_len transformed into flags
(4 bytes saved per connection)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e2c4ed6…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Mar 20 17:27:15 2009 +0000
sercmd: minor makefile fix
- clear C_DEFS, since we don't need ser common DEFS for building sercmd
(minor compile warning that appeared after the recend DEFS->C_DEFS changes
in the main Makefiles)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ffc72fc…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Mar 20 17:26:51 2009 +0000
tcp internal: send timeout is now kept only in ticks
- removed send_timeout_s and wq_timeout and replaced them with send_timeout,
which is now kept only in ticks. This fixes the cfg.set_delayed_int problem
reported by Miklos.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3165726…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Mar 20 16:10:37 2009 +0000
core: typo fix
- ';' after if() (again). Fortunately it didn't have any impact
since right now nobody returns NONSIP_MSG_ACCEPT from a
nonsip_msg callback.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=575a0b4…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Mar 19 17:59:14 2009 +0000
tcp: typo & minor optimization
- fixed ';' after if() on tcp connection free (luckily that code path was
not very common and it was even more improbable to have a ref'ed connection
at that point).
- changed unlikely() into likely() when checking connect() return in async
mode (it's much more probable to get an EINPROGRESS).
Reported-by: Libor Chocholaty <libor(a)iptel.org>
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b4fb73d…
Author: Jan Janak <jan(a)iptel.org>
Date: Thu Mar 19 15:15:51 2009 +0000
Rename Contact parameter select 'method' to 'methods'
According RFC3840 the correct name of the parameter is 'methods',
not 'method'.
Reported by Daniel-Constantin Mierla
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=524b467…
Author: Jan Janak <jan(a)iptel.org>
Date: Thu Mar 19 15:15:04 2009 +0000
Rename Contact parameter 'method' to 'methods'
According RFC3840 the correct name of the parameter is 'methods',
not 'method'.
Reported by Daniel-Constantin Mierla
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b5b92e0…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Mar 19 14:32:36 2009 +0000
make install: avoid re-linking lib dependent modules
- install doesn't try first to build everything, it will build as
it installs. This will avoid re-linking ser-lib dependent
modules (the normal "make all" would use a local rpath, while "make
install" would change rpath to the install destination dir => the
module needs to be relinked with a different rpath or on Darwin
the lib has to be rebuilt)
- avoid an extra make call on lib install
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f072585…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Mar 19 13:42:09 2009 +0000
build system: avoid libraries re-compiling
- ignore module DEFS when deciding whether or not to recompile a
library: DEFS split into C_DEFS (for common DEFS which are taken
into account when deciding whether or not to recompile a lib)
and DEFS, which are now visible only inside the module or lib
that uses them. Same for INCLUDES and C_INCLUDES.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d88602c…
Author: Pavel Kasparek <pavel(a)iptel.org>
Date: Mon Mar 16 10:35:10 2009 +0000
fixing missing $ in ser_mysql.sh script
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4914d97…
Author: Pavel Kasparek <pavel(a)iptel.org>
Date: Mon Mar 16 10:08:44 2009 +0000
Debian packaging - fixing path to mysql sql files in my_create.sh script
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=33bfeb9…
Author: Miklos Tirpak <miklos(a)iptel.org>
Date: Fri Mar 13 13:59:28 2009 +0000
The fixup function prototypes of the config variables have been
extended with the group name.
All the fixup functions have been updated.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=536065b…
Author: Miklos Tirpak <miklos(a)iptel.org>
Date: Tue Mar 10 16:26:35 2009 +0000
Strip, prefix, rewriteuser, ... all the SET_* actions preserve the
original URI scheme unless the host name is rewritten. If the host name
is set, then tel: and tels: URIs are converted to sip: or sips:, and the
user=phone parameter is added.
A script function, userphone(), is introduced: It adds the "user=phone"
parameter to a sip: or sips: RURI if the param is not yet present.
(Does not change tel: and tels: URIs).
(Patch has been created with cooperation with Michal Matyska.)
Fixes SER-435.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=77932db…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Mar 9 13:47:48 2009 +0000
core: check & fix Content-Length when sending on tcp
- automatically check & fix wrong Content-Length before forwarding
on tcp or tls
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e655392…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Mar 9 13:45:49 2009 +0000
tcp: config option for the async write block size
- the block size used for the async writes can now be configured
both from ser.cfg (tcp_wq_blk_size) and at runtime. This value
has only a little performance impact and only when writes are
delayed. Small values are safer (big values on proxies that
open thousands of connections over slow links would eat up a
lot of memory). For now it's main use is debugging.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=827cd3b…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Mar 9 13:45:28 2009 +0000
tcp: config option for the read buffer size
- the read buffer size can now be configured both at runtime and
from ser.cfg (tcp_rd_buf_size). A high value will help
performance for tcp connections with lots of traffic, however it
will increase the memory consumption. As a rule of thumb use
high values(e.g. 32768, 65536) on servers which open only a few
tcp connections and have very heavy traffic on them and a low
value (e.g. 4096, 2048) on servers that are expected to have
lots of open connections (50k - 100k+). Note also that this
value will also limit the maximum sip datagram size that can be
received on tcp. The default value is 4096.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9a74e06…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Mar 9 13:39:10 2009 +0000
tcp: dyn. config fix for tcp_con_lifetime
- cfg.set_delayed_int didn't work (fixup tried to modify another
config variable which doesn't work with cfg.set_delayed*)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=efc23dc…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Mar 6 16:54:10 2009 +0000
tcp: diff. connect timeout for async & states cleanup
- async mode will now honour tcp_connect_timeout (up to now it
used tcp_send_timeout also for connects)
- internal states cleanup (dropped S_CONN_PENDING, fixed
S_CONN_ACCEPT->S_CONN_OK transition a.s.o)
Hi,
is there any equivalent to the "exlude_modules" parameter in Makefiles.defs in
the sr tree? For some modules that are contained in the 'all' branch
of 'kamailio-3.0' i don't have dependencies installed, and i would like to
skip them on 'make all'.
Cheers,
Henning
Module: sip-router
Branch: master
Commit: d240dd18e0f2a51b1add374353dda34621d8c542
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d240dd1…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Mar 20 21:47:32 2009 +0100
Merge commit 'origin/ser_core_cvs'
* commit 'origin/ser_core_cvs':
tcp: minor optimization
sercmd: minor makefile fix
tcp internal: send timeout is now kept only in ticks
core: typo fix
tcp: typo & minor optimization
Rename Contact parameter select 'method' to 'methods'
Rename Contact parameter 'method' to 'methods'
make install: avoid re-linking lib dependent modules
build system: avoid libraries re-compiling
fixing missing $ in ser_mysql.sh script
Debian packaging - fixing path to mysql sql files in my_create.sh script
The fixup function prototypes of the config variables have been
Strip, prefix, rewriteuser, ... all the SET_* actions preserve the
core: check & fix Content-Length when sending on tcp
tcp: config option for the async write block size
tcp: config option for the read buffer size
tcp: dyn. config fix for tcp_con_lifetime
tcp: diff. connect timeout for async & states cleanup
Conflicts:
Makefile.rules
action.c
cfg.lex
cfg.y
route_struct.h
---