URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8fb8b26…
Author: Alex Hermann <alex(a)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=89a9db5…
Author: Alex Hermann <alex(a)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=2628e12…
Author: Alex Hermann <alex(a)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=a2d09db…
Author: Alex Hermann <alex(a)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=f11f350…
Author: Alex Hermann <alex(a)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=457d075…
Author: Alex Hermann <alex(a)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=0b9f845…
Author: Alex Hermann <alex(a)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=9ff6a40…
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=d1a85fb…
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=358f0b8…
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=847ea5b…
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=1411a57…
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=58e81b6…
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=d589851…
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=74c1a62…
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=1109a4f…
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=9b3d4e1…
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=0ba54b5…
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=87d10dc…
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=dfe3f66…
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=1be860e…
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=1e1202d…
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=bf7c1ee…
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=d0d17a8…
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=f310fd1…
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=7432aa5…
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=0507b84…
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=eb1abe6…
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=d2bdfd3…
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=87bce89…
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=43533b4…
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=14ef60c…
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=397ef36…
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=e23e51e…
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.