A per-TCP connection `lifetime` parameter is needed, to add a new functionnality in the tcpops module: the ability to dynamically modify the connection lifetime on a connection (e.g. raise the lifetime of a successfully authenticated connection).
This requires modifications in the core:
- adding a new field in the `tcp_connection` structure
- changing the way the `timeout` value is updated, using this new `lifetime` member instead of the core conf
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/95
-- Commit Summary --
* core: add support for per-TCP connection lifetime
-- File Changes --
M core_cmd.c (6)
M tcp_conn.h (1)
M tcp_main.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/95.patchhttps://github.com/kamailio/kamailio/pull/95.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/95
without this patch nathelper build request-uri from received
if it's set and falls back to contact.
Now we have an option to send the Contact (that has the username part) no matter what.
We used this in order to fix problems with FritzBox subscribers but seeing https://www.mail-archive.com/sr-users@lists.sip-router.org/msg13081.html maybe this is useful for everybody
with @sipwise hat on
You can merge this Pull Request by running:
git pull https://github.com/linuxmaniac/kamailio vseva/nathelper_contact_only
Or you can view, comment on it, or merge it online at:
https://github.com/kamailio/kamailio/pull/31
-- Commit Summary --
* usrloc: add GAU_OPT_ONLY_CONTACT option and get_all_ucontacts_opt() in order to use it
* nathelper: add contact_only option to ignore "received" field from usrloc and use contact info for building the ping message
-- File Changes --
M modules/nathelper/doc/nathelper_admin.xml (20)
M modules/nathelper/nathelper.c (12)
M modules/usrloc/dlist.c (34)
M modules/usrloc/dlist.h (14)
M modules/usrloc/usrloc.c (1)
M modules/usrloc/usrloc.h (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/31.patchhttps://github.com/kamailio/kamailio/pull/31.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/31
Hi,
please consider the addition of these features to master branch.
you can view the full PR in https://github.com/kamailio/kamailio/pull/91
the purpose of these additional features is to provide better information to configuration script to help in complex routing decisions and adding custom headers based on rich information.
registrar - add user xavp on successful registered call
this commit adds the contact xavp when we call registered()
it acts like lookup without rewriting uri or appending branches
it acts like lookup_to_dest without appending branches
benefits, used in conjuction with usrloc param xavp_contact
prior to this commit, we would have to use sqlops to make a select directly into location_attrs, but not all sb engines support raw query or we would need to call lookup causing the unnecessary and unwanted set of the ruri.
modparam("usrloc", "xavp_contact", "ulattrs")
..
if(registered("location", "$fu") ) {
$xavp(ulattrs=>my extended information about the contact)
}
before
if( registered("location", "$fu") ) {
## lookup_to_dset("location", "$fu") ## not available
lookup("location", "$fu")
$xavp(ulattrs=>my extended information about the contact)
registrar - add optional avp params for usrloc comparison
reg_received_avp - match with received field
reg_contact_avp - match with contact field
this commit adds 2 optional params to be used on the registered function
prior to this commit, the only restriction available when calling registered was by using a call-id.
the 2 params added allow the match to be more restrictive
. by received column
. by contact column
registrar - add xavp to reg_fetch_contacts
modparams("usrloc", "xavp_contact", "ulattrs");
this commit adds the usrloc xavp_contact to the returned structure.
reg_fetch_contacts("location", "$fu", "caller");
xlog("L_INFO", "$fu xavp = $ulc(caller=>received)");
xlog("L_INFO", "$fu xavp = $ulc(caller=>ulattrs=>MyExtendedInfoOnUser)");
Thank You