Hi, It sounds like you should be able to do this using a special XAVP called `xavp_cfg`:
https://kamailio.org/docs/modules/5.5.x/modules/registrar.html#registrar.p.xavp_cfg Ignore the incorrect documentation for the ‘expires’ parameter; it appears to be a duplicate of the summary for the ‘max_contacts’ parameter. — Alex > On Jan 31, 2022, at 1:15 AM, mayamatakeshi <[email protected]> wrote: > > Hi, > I have a requirement to specify a REGISTER max_expires based on the > User-Agent. > I checked the docs and it seems there is no pseudo-variable or something like > that would permit this. > I would like to be able to do something like this: > if($ua ~= "Some-UA") { > $max_expires=100; > } else { > $max_expires=150; > } > save("location"); > Is there some way to achieve this? > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > * [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
