Module: kamailio
Branch: master
Commit: 3a723206adaa99cf22aee8fead569d9a96e21a7b
URL: https://github.com/kamailio/kamailio/commit/3a723206adaa99cf22aee8fead569d9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-13T09:19:46+01:00
htable: updated the documentation for timer_procs parameter
---
Modified: modules/htable/doc/htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/3a723206adaa99cf22aee8fead569d9…
Patch: https://github.com/kamailio/kamailio/commit/3a723206adaa99cf22aee8fead569d9…
---
diff --git a/modules/htable/doc/htable_admin.xml b/modules/htable/doc/htable_admin.xml
index b17fb7f..42a77fa 100644
--- a/modules/htable/doc/htable_admin.xml
+++ b/modules/htable/doc/htable_admin.xml
@@ -637,10 +637,10 @@ modparam("htable", "enable_dmq", 1)
<section id="htable.p.timer_procs">
<title><varname>timer_procs</varname> (integer)</title>
<para>
- If set to 1, the module will create its own timer process to scan
- for expired items in hash tables. If set to zero, it will use the
- core timer for this task. Set it to 1 if you store a lot of items
- with autoexpire property.
+ If set to 1 or greater, the module will create its own timer
+ processes to scan for expired items in hash tables. If set to zero,
+ it will use the core timer for this task. Set it to 1 if you store
+ a lot of items with autoexpire property.
</para>
<para>
<emphasis>
@@ -651,7 +651,7 @@ modparam("htable", "enable_dmq", 1)
<title>Set <varname>timer_procs</varname> parameter</title>
<programlisting format="linespecific">
...
-modparam("htable", "timer_procs", 1)
+modparam("htable", "timer_procs", 4)
...
</programlisting>
</example>
i wrote new version of sdp_content() test that does not parse the whole
sdp like the current one does. instead it checks if request has a body
and content type is either missing or it is application/sdp or content
type is multipart/mixed and boxy has string application/sdp.
could this one replace the current one or do i need to invent a new name
for it?
the implementation also includes new general purpose function strnistr,
equivalent of which i did not find in kamailio source.
-- juha
------------------------------------------------------------------
/*
* Find the first case insensitive occurrence of find in s, where the
* search is limited to the first slen characters of s. Idea stolen from
* FreeBSD.
*/
char* strnistr(const char *s, const char *find, size_t slen)
{
char c, sc;
size_t len;
if ((c = *find++) != '\0') {
len = strlen(find);
do {
do {
if ((sc = *s++) == '\0' || slen-- < 1)
return (NULL);
} while (sc != c);
if (len > slen)
return (NULL);
} while (strncasecmp(s, find, len) != 0);
s--;
}
return ((char *)s);
}
/**
*
*/
static int w_sdp_content(sip_msg_t* msg, char* foo, char *bar)
{
str body;
int mime;
body.s = get_body(msg);
if (body.s == NULL) return -1;
body.len = msg->len - (int)(body.s - msg->buf);
if (body.len == 0) return -1;
mime = parse_content_type_hdr(msg);
if (mime < 0) return -1; /* error */
if (mime == 0) return 1; /* default is application/sdp */
switch (((unsigned int)mime) >> 16) {
case TYPE_APPLICATION:
if ((mime & 0x00ff) == SUBTYPE_SDP) return 1; else return -1;
case TYPE_MULTIPART:
if ((mime & 0x00ff) == SUBTYPE_MIXED) {
if (strnistr(body.s, "application/sdp", body.len) == NULL) {
return -1;
} else {
return 1;
}
} else {
return -1;
}
default:
return -1;
}
}
Module: kamailio
Branch: master
Commit: 4baf576076735018f1fe9812e6d7c64333ee62bf
URL: https://github.com/kamailio/kamailio/commit/4baf576076735018f1fe9812e6d7c64…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-12T14:42:12+01:00
tls: option to match TLS client config profile based on server_id
- server_id can be any string that uniquely identifies a client config
profile, overriding the attempt to match on ip:port (+sni). This makes
it easier to select the desired config profile, because the port is
hard to guess for stream connections
- prameter xavp_cfg has to be enabled and inner xavp 'server_id' has to
be set before relaying the sip message (before opening the client
connection)
---
Modified: modules/tls/tls_cfg.c
Modified: modules/tls/tls_cfg.h
Modified: modules/tls/tls_config.c
Modified: modules/tls/tls_domain.c
Modified: modules/tls/tls_domain.h
Modified: modules/tls/tls_server.c
---
Diff: https://github.com/kamailio/kamailio/commit/4baf576076735018f1fe9812e6d7c64…
Patch: https://github.com/kamailio/kamailio/commit/4baf576076735018f1fe9812e6d7c64…