Module: kamailio
Branch: master
Commit: a0285e6d6f1aec539e89df60cf5aeb78c6a0409b
URL:
https://github.com/kamailio/kamailio/commit/a0285e6d6f1aec539e89df60cf5aeb7…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-05-03T20:01:15+02:00
modules: readme files regenerated - cfgutils ... [skip ci]
---
Modified: src/modules/cfgutils/README
---
Diff:
https://github.com/kamailio/kamailio/commit/a0285e6d6f1aec539e89df60cf5aeb7…
Patch:
https://github.com/kamailio/kamailio/commit/a0285e6d6f1aec539e89df60cf5aeb7…
---
diff --git a/src/modules/cfgutils/README b/src/modules/cfgutils/README
index 3d46af3ba3..890952c7c5 100644
--- a/src/modules/cfgutils/README
+++ b/src/modules/cfgutils/README
@@ -757,11 +757,11 @@ $ kamcmd cfgutils.get_gflags
Example 1.34. RANDOM pseudo-variable usage
...
if (rand_event()) {
- $avp(i:10) = ($RANDOM / 16777216); # 2^24
- if ($avp(i:10) < 10) {
- $avp(i:10) = 10;
+ $var(value) = ($RANDOM / 16777216); # 2^24
+ if ($var(value) < 10) {
+ $var(value) = 10;
}
- append_to_reply("Retry-After: $avp(i:10)\n");
+ append_to_reply("Retry-After: $var(value)\n");
sl_send_reply("503", "Try later");
exit;
};