Module: sip-router
Branch: master
Commit: 15c87249242b602f268ea7e86713d1cbcc0c34dd
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=15c8724…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: Tue Feb 8 12:22:13 2011 +0100
htable: added 'dbmode' attribute to module documentation
---
modules_k/htable/README | 4 ++++
modules_k/htable/doc/htable_admin.xml | 8 ++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/modules_k/htable/README b/modules_k/htable/README
index facb147..cd43570 100644
--- a/modules_k/htable/README
+++ b/modules_k/htable/README
@@ -264,6 +264,10 @@ if(is_present_hf("Authorization"))
expire.
* dbtable - name of database to be loaded at startup in hash table.
If empty or missing, no data will be loaded.
+ * dbmode - if set to 1, the content of hash table is written to
+ database table when the SIP server is stopped (i.e., ensure
+ persistency over restarts). Default value is 0 (no write back to db
+ table).
Default value is NULL.
diff --git a/modules_k/htable/doc/htable_admin.xml b/modules_k/htable/doc/htable_admin.xml
index e2c2be6..85c9871 100644
--- a/modules_k/htable/doc/htable_admin.xml
+++ b/modules_k/htable/doc/htable_admin.xml
@@ -253,6 +253,14 @@ if(is_present_hf("Authorization"))
startup in hash table. If empty or missing, no data will be loaded.
</para>
</listitem>
+ <listitem>
+ <para>
+ <emphasis>dbmode</emphasis> - if set to 1, the content of hash
+ table is written to database table when the SIP server is stopped
+ (i.e., ensure persistency over restarts). Default value is 0 (no
+ write back to db table).
+ </para>
+ </listitem>
</itemizedlist>
<para>
<emphasis>
Hello,
I think it is time to release v3.1.2, first date that comes in my mind
is next Thursday if everyone feels it is enough time to take care of
backporting any fix he/she did and it is not yet there. That will
provide us a fresh release for the FOSDEM event. If not, then maybe the
other week, Tuesday, so the participants at the Kamailio Devel training
in Barcelona can practice on it.
Soon after we should plan also a release for previous stable, branch 3.0.
Anyone having other options?
Thanks,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
I'm having an issue with topoh module in Kamailio 3.1.0. When Contact
header is formed like this:
Contact: 0991
<sip:192.168.0.107;line=sr-N6IAzBysz.tyz.D4M.VLOBMfOBFuWxvfMxV4>
The other party responds properly. But when there is no angle brackets
in Contact:
Contact:
sip:192.168.0.107;line=sr-N6IAzB3AWxyfz.stM.quOBFZMJZfWxj7W.y-MljAWBy*
Really, many parsers implement "prefer shift to reduce" principle, which
means if something can be interpreted in more enclosed expression, it
will be interpreted this way and no as part of less enclosed expression
so ;line is interpreted as header parameter but not URI parameter.
RFC 3261 section 20 suggests that any URI parameters be contained within
angle brackets:
===
The Contact, From, and To header fields contain a URI. If the URI
contains a comma, question mark or semicolon, the URI MUST be
enclosed in angle brackets (< and >). Any URI parameters are
contained within these brackets. If the URI is not enclosed in angle
brackets, any semicolon-delimited parameters are header-parameters,
not URI parameters.
===
I think the topoh module should force the angle brackets.
BTW it seems that parameter needs to be urlencoded, see rule
'other-param' in RFC 3261 section 25.1:
other-param = pname [ "=" pvalue ]
pname = 1*paramchar
pvalue = 1*paramchar
paramchar = param-unreserved / unreserved / escaped
param-unreserved = "[" / "]" / "/" / ":" / "&" / "+" / "$"
No .-* characters are allowed in the paramchar. But at least that's not
causing me any problems.
--
Sincerely,
Andrew Pogrebennyk
Hello,
To Dear Klaus,
Thanks for your response. it works now.
Is there any way I can test sctp in Kamailio.
In addition, Is it possible to test sctp using sipp.
Thanks.
Asif
Hi,
I have been trying to compile kamailio with sctp support enabled by
following the installation instruction from
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git.
Still no success. Here is what I am doing.
1. git clone --depth 1 git://git.sip-router.org/sip-router kamailio
2. cd kamailio
3. git checkout -b 3.1 origin/3.1
4. make FLAVOUR=kamailio cfg
5. nano -w modules.lst
6. make FLAVOUR=kamailio include_modules="db_mysql dialplan" cfg
7. make PREFIX="/usr/local/kamailio-3.1" FLAVOUR=kamailio
include_modules="db_mysql dialplan" cfg
8. SCTP=1 make all
9. SCTP=1 make install
Then run kamailio and execute sercmd. Do core.sctp_info. It shows error 500:
sctp support not compiled.
I would appreciate if someone help me what I am missing.
Thanking you.
Asif
Module: sip-router
Branch: 3.1
Commit: b374c7383ed711fb12e545e1de9cecd978603fac
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b374c73…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Feb 5 07:08:53 2011 +0100
tm: free parsed body for faked requests
- if sdp body was parsed in a failure route, the structure was left
uncleared
- reported by Bayan Towfiq, credits for troubleshooting access to live
server
- credits also to Ovidiu Sas for assistance with sdp parser
(cherry picked from commit 7a1a5ffff6a6dbf89f42ccb9f15d588d8bfe62d0)
---
modules/tm/t_reply.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c
index 382244f..c18c716 100644
--- a/modules/tm/t_reply.c
+++ b/modules/tm/t_reply.c
@@ -909,6 +909,12 @@ void free_faked_req(struct sip_msg *faked_req, struct cell *t)
hdr->parsed = 0;
}
}
+ /* free parsed body added by failure handlers */
+ if (faked_req->body) {
+ if(faked_req->body->free)
+ faked_req->body->free(&faked_req->body);
+ faked_req->body = 0;
+ }
}