Module: kamailio
Branch: master
Commit: 8810c00f837a585d4dc6079640abc3251f0e70ca
URL: https://github.com/kamailio/kamailio/commit/8810c00f837a585d4dc6079640abc32…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2015-05-19T20:05:57+02:00
mem: TLSF memory summary and sums implementation
TLSF now has a debug mode, that will dump every memory block when xxx_status()
is called, and a summary of still allocated blocks when xxx_sums() is called.
configure build with
make MEMDBG=1 MEMMNG=2 cfg
to enable maximum debuging informations (source location of mallocs and frees)
---
Modified: Makefile.defs
Modified: mem/mem.h
Modified: mem/q_malloc.c
Modified: mem/q_malloc.h
Modified: mem/shm_mem.h
Modified: mem/tlsf.c
Modified: mem/tlsf.h
---
Diff: https://github.com/kamailio/kamailio/commit/8810c00f837a585d4dc6079640abc32…
Patch: https://github.com/kamailio/kamailio/commit/8810c00f837a585d4dc6079640abc32…
TLSF now has a debug mode, that will dump every memory block when xxx_status()
is called, and a summary of still allocated blocks when xxx_sums() is called.
configure build with
make MEMDBG=1 MEMMNG=2 cfg
to enable maximum debuging informations (source location of mallocs and frees)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/164
-- Commit Summary --
* mem: TLSF memory summary and sums implementation
-- File Changes --
M Makefile.defs (3)
M mem/mem.h (21)
M mem/q_malloc.c (2)
M mem/q_malloc.h (2)
M mem/shm_mem.h (12)
M mem/tlsf.c (273)
M mem/tlsf.h (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/164.patchhttps://github.com/kamailio/kamailio/pull/164.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/164
This adds the 'domain' column to the testdb_udomain db connection test in the usrloc module. When using Cassandra 2 as the database module (a module I'm working on that I will be submitting a PR for once it's stable) doing a query by only username can cause issues if you create your Cassandra partition key as username and domain.
This shouldn't affect the query functionality in general as it's only doing a query to test the connection to the database.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/161
-- Commit Summary --
* Add domain to connection test query so it works with Cassandra
-- File Changes --
M modules/usrloc/udomain.c (21)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/161.patchhttps://github.com/kamailio/kamailio/pull/161.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/161
Hi fellow kamailio users,
I'm playing actually with t_on_branch_failure, in a simultaneous forking
scenario ( lookup("location") returns multiple contacts ).
Any idea on how to get those "on_branch_failure" working ?
Thanks in Advance !
* Test by putting failure_exec_mode:
- at 1 => no branch failure being called, never.
- at 0 => t_relay does not fail if a single branch answers the
transaction, even if all other branches are failing.
* Test by moving the t_on_branch_failure("manage_branch_failure"); line
before or after the lookup("location") or on a _on_branch route to set
it per branch.
- The on_route branch are executed, but never the failure one.
- tried also with failure_exec_mode = 0 or 1.
* Using set_forward_no_connect, I can see in the logs a "Sending to
branch X failed" but no failure route being executed. Without it,
nothing in the logs indicating that the branch has timeout.
* Config extract:
# auto-discard branches from previous serial forking leg
modparam("tm", "failure_reply_mode", 3) # 3 by default
# default retransmission timeout: 30sec
modparam("tm", "fr_timer", 30000)
# default invite retransmission timeout after 1xx: 120sec
modparam("tm", "fr_inv_timer", 120000)
modparam("tm", "reparse_on_dns_failover", 0)
# 1: Allow branches to have a per branch failure route
# 0: t_relay should fail if a branch fail
modparam("tm", "failure_exec_mode", 1)
# Allow locally generated 408 to be forgotten in case a reply is received.
#modparam("tm", "faked_reply_prio", 2000)
# USER location service
route[LOCATION] {
t_on_branch_failure("manage_branch_failure");
if (!lookup("location")) {
....
}
# Let's get back after 2.5s if no 100/Trying received.
t_set_fr(0, 2500);
# set_forward_no_connect();
#t_on_branch("SET_BRANCH_FAILURE");
route(RELAY);
exit;
}
route[RELAY] {
....
if (!t_relay()) {
xlog("L_WARN","$rm|$ci|$fu|$tu|RELAY_FAILED");
sl_reply_error();
}
exit();
}
# set failure route per branch
branch_route[SET_BRANCH_FAILURE] {
xlog("L_WARN","$rm|$ci|$fu|$tu|SETTING_BrANCH_FAILURE_ROUTE");
t_on_branch_failure("manage_branch_failure");
}
# manage failure routing cases per branch
event_route[tm:branch-failure:manage_branch_failure] {
xlog("L_WARN","$rm|$ci|$fu|$tu[$avp(dest_to)]|MANAGE_BRANCH_FAILURE");
}
Hello,
Kamailio SIP Server v4.2.5 stable release is out.
This is a maintenance release of the latest stable branch, 4.2, that
includes fixes since release of v4.2.5. There is no change to database
schema or configuration language structure that you have to do on
installations of v4.2.x. Deployments running previous v4.x.x versions
are strongly recommended to be upgraded to v4.2.5.
For more details about version 4.2.5 (including links and guidelines to
download the tarball or from GIT repository), visit:
* http://www.kamailio.org/w/2015/05/kamailio-v4-2-5-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com
Module: kamailio
Branch: tmp/tlsf_debug
Commit: 8810c00f837a585d4dc6079640abc3251f0e70ca
URL: https://github.com/kamailio/kamailio/commit/8810c00f837a585d4dc6079640abc32…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2015-05-19T20:05:57+02:00
mem: TLSF memory summary and sums implementation
TLSF now has a debug mode, that will dump every memory block when xxx_status()
is called, and a summary of still allocated blocks when xxx_sums() is called.
configure build with
make MEMDBG=1 MEMMNG=2 cfg
to enable maximum debuging informations (source location of mallocs and frees)
---
Modified: Makefile.defs
Modified: mem/mem.h
Modified: mem/q_malloc.c
Modified: mem/q_malloc.h
Modified: mem/shm_mem.h
Modified: mem/tlsf.c
Modified: mem/tlsf.h
---
Diff: https://github.com/kamailio/kamailio/commit/8810c00f837a585d4dc6079640abc32…
Patch: https://github.com/kamailio/kamailio/commit/8810c00f837a585d4dc6079640abc32…