[SR-Users] Use specific expires per User-Agent
mayamatakeshi
mayamatakeshi at gmail.com
Mon Jan 31 07:15:11 CET 2022
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220131/ec63aa0a/attachment.htm>
More information about the sr-users
mailing list