[sr-dev] New commits on branch alexh/for4.0

Alex Hermann alex at speakup.nl
Mon Jan 7 17:52:41 CET 2013


URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7aba696a5077d3f3778d23aed0521fcadffbdf3b
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=1e19741d334a180f49c2414984f23613ea2d8699
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=118679ac5a4beaafdb8e9aaf508c080e794b645d
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=e8e6224a6b10261dfecdb248e5ad9b76c036e4c0
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=45102b161808b1a9c94489d46690e571be679f69
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=374cf63f4a27d885f140f22860465eab4369b998
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=05658bd3db3795e3e6a94b4b83834875f13cc9d4
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=f3a2a572966ff744767120827e52ef1501dda113
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=280e4b754002f27497dae794680454589fd446c6
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=affe0b66f3860d0693632ee6546c201191c75104
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=0f8d3df49c9045be97c92fbcfdc52fcc7c65e678
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=db28003c385415b6f3b4c79e08dcf7f8499586ae
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=d56288b8d308170c816a1f528f8c60fa94e67d0a
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=f8af32d7191d63b43171508b426c4f4e3d2d22c3
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=7b13706ca3231fafb709859c158676cf10012b96
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=750b56278b11783f7f9837a97aff2692a0f3d6b5
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=c491b0d76a024a629f559bebb3f85721bef032df
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=b9abcc5ccf932b7db04e99bad45b5c3385611b59
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=709ba2d39e53291f42eae2bbe53cc08d2d168efc
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=1e8ef3b4a42de26d54d27ae734c67494e43854f0
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=1dc9aa9fccff5a81f48732715e5c366b288a4a92
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=169f5760fc0eeb6aa5f7700d8daae71217a558a7
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=2c9f44f251e105adb2498e5bbe3312869d483cb8
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=f406882bf6d3af76197ea61542cc01a7371e5f68
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=4870d66cf6c1f4cb00239a8bf6c239528acfb011
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=4b6f2227ae1f5b2ade599e32e24482d586a9a8ed
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=1a1ce20ad14f80c31cc5398f04be55f6b0283f89
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