[sr-dev] New commits on branch master
Alex Hermann
alex at speakup.nl
Thu Jan 10 11:28:15 CET 2013
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8fb8b261fa76e5c3497b602f6b850fe02e5db48f
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Jan 8 19:09:48 2013 +0100
core: make database version table name configurable from script
When kamailio is part of a bigger project and is sharing its database with
it, it is nice to have a less generic table name than "version".
Also usefull when upgrading kamailio, where the new version has (backwards
compatibel) changes in the database definition. If each kamailio version uses
its own version table, they can all use the same database.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=89a9db548f01eea54eb11ae57b76abcfb5e5c5f6
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Nov 5 13:33:27 2012 +0100
modules_k/kex: call pkg_proc_stats_destroy in module destroy function to free memory
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2628e120432001c118eb89ac1b7023a9f5e795ad
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Oct 29 15:25:21 2012 +0100
modules_k/tmx: Add $T_reply_last, returning last reply code
Make the last/previous reply on a branch available to the script via
$T_reply_last. Only available in TM_ONREPLY_ROUTE.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a2d09db983aa0b9a54ee78d5a910ba92140b05f8
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Oct 11 18:43:07 2012 +0200
modules/rtpproxy: Add 'b' flag to add a branch specific string tot the call-id
In a forking call, sometimes it is needed that each branch uses different
options to the rtpproxy. This patch adds a parameter that makes each
rtpproxy session unique to a branch by appending the value of a PV to the
call-id rtpproxy parameter.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f11f35045f6eaffd153d767946399fbb397bc3eb
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Jul 4 17:33:50 2011 +0200
modules/avpops: avp_db_query: treat BIGINT result as INT, disregarding the most significant 32 bits.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=457d075d3aabcaff6b6d14b6dfbc01c8a91734ec
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Oct 11 18:28:34 2012 +0200
modules/tm: Remember per-branch onreply_route and onfailure_route settings
The onreply and onfailure routes were set only per transaction. This means
that when the onreply and/or failure route is changed in failure route (serial
forking), late replies to earlier branches would use the new onreply and
failure route instead of the routes set for them.
This commit copies the transaction's onreply and failure routes to the branch,
so the route set when the request is sent out is always chosen, no matter
how late the reply arrives.
Because the per-branch setting is copied after running onbranch_route, it is
now also possible to set the routes per-branch instead of per-transaction.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0b9f84519dd018159d67bb827d7e5c7e1e4431e2
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Aug 29 18:44:20 2011 +0200
modules/tm: add option to check callid when matching transactions
Use this if you don't want replies/requests from broken clients, which
send a mangled Call-ID, to match the transaction. For example when
the UAC won't recognise the response anyway because of changed
Call-ID, this setting will prevent accounting records to be created
or failure_route to be skipped.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9ff6a40fce5160f23a385693d79df508759f1a31
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Aug 25 11:16:18 2011 +0200
modules_k/trusted: no not open DB connections if db_mode==1.
For cached operation, childs (except MI) do not need DB access
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d1a85fbb01a9ae5b23c7b4f58de4ec584295d611
Author: Alex Hermann <alex at speakup.nl>
Date: Fri Aug 26 11:16:45 2011 +0200
modules_k/nathelper: add return value 2 to fix_nated_sdp() indicating no ip's have been replaced
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=358f0b859cdb15afa0c1079009a67b7aa9349f2e
Author: Alex Hermann <alex at speakup.nl>
Date: Fri Aug 26 13:08:39 2011 +0200
modules_k/pv: make individial flags accessible via $Mf(idx), $Bf(idx) and $Sf(idx)
The parameter is the flag number (or registered name). If present
allows setting and reading the corresponding flag. As each flag is
now available as separate PV, it can be used in logging, transformations
and, last but not least, in loading/storing individual flags
from/to a database with sql_pvquery().
When setting, any value != =0 will set the flag, 0 will clear it. When reading
a set flag returns 1, cleared flag 0.
example:
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
setflag(15);
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
$Mf(16) = 1;
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
$Mf(15) = 0;
xlog("flags: 0x$mF / $Mf(15) / $Mf(16)");
output:
flags: 0x00000000 / 0 / 0
flags: 0x00008000 / 1 / 0
flags: 0x00018000 / 1 / 1
flags: 0x00010000 / 0 / 1
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=847ea5b2bc81749a44de34b35e5ef8516819951a
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Aug 30 13:35:55 2011 +0200
modules_k/trusted: Free memory of old trusted list when the list has been reloaded
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1411a5789139cc302179b7d9f3a2b678e2caef9c
Author: Alex Hermann <alex at speakup.nl>
Date: Fri Sep 16 13:48:59 2011 +0200
modules/mtree: Do not log an error when prefix not found.
A not found prefix is already represented as a negative return code.
No need to log an error, as it may be perfectly valid that a prefix does not
exists.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=58e81b6c42cc48bd2b4afe84491a1a12d9d4b973
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Sep 22 15:59:23 2011 +0200
lib/srdb1: store BIGINT result also as 32-bit integer if it fits
BIGINT is always converted to string. Additionally it is now stored as INT too.
MySQL (at least on 64-bit) is returning BIGINT for all "generated" INT values,
like COUNT(*). By storing thee results as INT (if possible), the config script
will be compatible with both 32-bit and 64-bit column values.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d5898510adbe9c45d16a770531a3e7c95061956b
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Oct 3 15:55:42 2011 +0200
modules_k/tmx: Add active_transactions statistics
An active transaction is a transaction that is still waiting for a reply.
If it has seen a reply but is existing just to collect retransmissions,
it is not counted (in contrast to inuse_transactions).
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=74c1a6224a0d55735f01e0b0800206eec002fab0
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Mar 27 16:44:23 2012 +0200
modules_k/dialog: Allow unset_dlg_profile also in REQUEST_ROUTE
even if the function has no use in normal REQUEST_ROUTE, the route block
may be called from other route blocks like failure_route.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1109a4ff6c68d9b2a619198cf1150b3431565bf0
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Jan 7 15:35:46 2013 +0100
modules_k/sqlops: eleminate string copy in sql_exec_xquery()
xavp api will make a copy in shmem, no need to make a private copy first.
Thanks to Juha heinanen and Daniel-Constantin Mierla for finding this
inefficiency.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9b3d4e192859d83d8ec990751a5ead29ff72dab1
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Nov 29 11:47:10 2012 +0100
modules/pv: Fix $snd(ip) for IPv6
Result was always an empty string surrounded by []. Converted to use ip_addr2a().
This also prevents the surrounding [], which are not part of an IPv6 address.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0ba54b551aa5dd7c13d4c6c4c275fd4cba3b17b0
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Feb 23 23:48:16 2012 +0100
modules_k/htable: don't return expired values
If an item has expired, it will be treated as non-existent.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=87d10dc1dce72d5c6b3a658f1d1193d16633eb6c
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Feb 27 14:14:44 2012 +0100
modules_k/perl: Fix resetting of flags in sv2int_str
According to the functions comments and its usages in the same file, the flags would only be or'red, not reset
This fixes setting an string named avp with an integer value:
OpenSER::AVP::add("string", 12345);
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dfe3f66fc7969a5c479f78b1ec000914c48bd9ff
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Feb 28 11:39:10 2012 +0100
modules/sanity: Fail if request uri can't be parsed
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1be860ef1a766bf271e7f7f7efcdc1006fe5bde9
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Jun 7 14:20:01 2012 +0200
modules_k/pua_mi: when checking for 0-length string, check s.len, not s.s
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1e1202d3a710eeec5f534fc11f0406ba3e449df6
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Jul 16 15:24:37 2012 +0200
modules/auth: replace ser_time() wih time()
The values returned by ser_time() deviate so much from time() (and thus
system time) that the module was creating expired nonces in challenges
and rejected valid nonces as being "from the future".
See also FS#243
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bf7c1ee6d77e781e846504970a1c2d3ef9544908
Author: Alex Hermann <alex at speakup.nl>
Date: Tue May 15 12:29:14 2012 +0200
modules/rtpproxy: return -3 when no more rtpproxy nodes can be found
Provide a unique error code for the case when no (more) proxy nodes
are availave in the set. This allows the script recognize it from
the more general errors (all -1) and do special processing (failover
to another set)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d0d17a8b9c20bfd9e8ce78931dd9f52254242a74
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Jan 7 15:16:27 2013 +0100
modules_k/uac: regenerate README
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f310fd10bda2da682dee9eaa91474c704ffd8c2c
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Jul 10 12:41:45 2012 +0200
modules_k/uac: uac_reg: add reg_retry_interval parameter
The new parameter allows to retry failed registration attempts.
Instead of unconditionally marking the entry as disabled, the
registration will be retried after the set interval. Setting it
to 0 (default) retains the old behaviour.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7432aa5ee180851dd5d6d933cbfe7ced93396566
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Feb 28 15:23:17 2012 +0100
modules_k/uac: uac_reg: skip realm checking if realm is empty
When realm is the empty string, do not check the realm, but accept anything
the UAS throws at us.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0507b848d0257b478b422b49eb339ade7b801579
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Feb 28 13:10:23 2012 +0100
modules_k/uac: skip realm matching when realm pv for uac_auth is empty or null
This can be used if the realm used by the upsteam UAS isn't known in advance.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=eb1abe66b9f97a4f98386d294b538a53ec05c9a6
Author: Alex Hermann <alex at speakup.nl>
Date: Tue Feb 21 12:35:18 2012 +0100
modules_k/uac: Add reg_db_table parameter to specify table name for registrations
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d2bdfd325665a0bc2652cdaa237d0afda9e4e8f8
Author: Alex Hermann <alex at speakup.nl>
Date: Fri Sep 2 09:36:43 2011 +0200
modules_k/tmx: add t_is_reply_route()
Function to determine if the top executed route block is a reply.
In line with t_is_failure_route() and t_is_branch_route().
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=87bce89fe77942146d03ce4a44e6330e4a8149e7
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Sep 1 17:18:03 2011 +0200
modules_k/tmx: add $T_reply_reason PV
Especially for internally generated (faked) replies it was hard to
get the reason phrase. This PV provides just that.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=43533b41f2a4fb23b24bcf98b01fca223c605cd9
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Jan 7 17:10:18 2013 +0100
Makefile: add corex module to kstandard group
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=14ef60cf93f2e7d2a458f8a3ce287e52f1b497d6
Author: Alex Hermann <alex at speakup.nl>
Date: Mon Jan 7 14:04:57 2013 +0100
modules/tmx: set $T_branch_idx to sane values for more route types
$T_branch_idx will now return a branch number (0-based) in more route types.
BRANCH_ROUTE and TM_ON_REPLY_ROUTE: currently handled branch number
REQUEST_ROUTE and FAILURE_ROUTE: next branch number, will be increased by
every append_branch
In FAILURE_ROUTE, the branch number of the winning reply can be retreived
with $T_rpl($T_branch_idx)
All other route types will result in (the invalid) branch number -1.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=397ef369d7092aa670d63f81aa86657daee47071
Author: Alex Hermann <alex at speakup.nl>
Date: Fri Oct 12 14:06:33 2012 +0200
modules/tm: Set branch_index to T_BR_UNDEFINED when outside BRANCH_ROUTE or TM_ONREPLY_ROUTE.
The inconsistent value of $T_branch_idx between BRANCH_ROUTE and
TM_ON_REPLY_ROUTE was fixed in an earlier commit, but now the value 0 has a
double meaning (branch 0 or invalid branch). This patch makes the invalid
branch distinguishable by setting it to -1.
Now $T_branch_idx will return the branch number (0-based) in BRANCH_ROUTE
and TM_ON_REPLY_ROUTE and -1 in other route types or if the message is not
part of a transaction.
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e23e51ee2d5390b903b9f3029b01181c0dc5a7ba
Author: Alex Hermann <alex at speakup.nl>
Date: Thu Oct 11 16:53:55 2012 +0200
modules/tm: Make branch_index consistent in all route types
The branch index was set one to high in BRANCH_ROUTE, leading to
inconsistent branch numbers in reply routes.
More information about the sr-dev
mailing list