URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7aba696…
Author: Alex Hermann <alex(a)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=1e19741…
Author: Alex Hermann <alex(a)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=118679a…
Author: Alex Hermann <alex(a)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=e8e6224…
Author: Alex Hermann <alex(a)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=45102b1…
Author: Alex Hermann <alex(a)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=374cf63…
Author: Alex Hermann <alex(a)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=05658bd…
Author: Alex Hermann <alex(a)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=f3a2a57…
Author: Alex Hermann <alex(a)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=280e4b7…
Author: Alex Hermann <alex(a)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=affe0b6…
Author: Alex Hermann <alex(a)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=0f8d3df…
Author: Alex Hermann <alex(a)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=db28003…
Author: Alex Hermann <alex(a)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=d56288b…
Author: Alex Hermann <alex(a)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=f8af32d…
Author: Alex Hermann <alex(a)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=7b13706…
Author: Alex Hermann <alex(a)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=750b562…
Author: Alex Hermann <alex(a)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=c491b0d…
Author: Alex Hermann <alex(a)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=b9abcc5…
Author: Alex Hermann <alex(a)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=709ba2d…
Author: Alex Hermann <alex(a)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=1e8ef3b…
Author: Alex Hermann <alex(a)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=1dc9aa9…
Author: Alex Hermann <alex(a)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=169f576…
Author: Alex Hermann <alex(a)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=2c9f44f…
Author: Alex Hermann <alex(a)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=f406882…
Author: Alex Hermann <alex(a)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=4870d66…
Author: Alex Hermann <alex(a)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=4b6f222…
Author: Alex Hermann <alex(a)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=1a1ce20…
Author: Alex Hermann <alex(a)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.