[sr-dev] [kamailio/kamailio] Incorret code example in pipelimit documentation (#1201)
Evgeniy
notifications at github.com
Wed Aug 2 14:25:45 CEST 2017
### Description
In the documentation documentation for module pipelimit https://www.kamailio.org/docs/modules/4.2.x/modules/ratelimit.html
has an error in example:
```# perform pipe match for authenticated user
$var(limit) = 20;
if (!pl_check("$au", "traildrop", "$var(limit)")) {
pl_drop();
exit;
}
```
If write algorithm "traildrop" in function pl_check, you every execution will get return code -2 and pipe not will be created.
### Possible Solutions
Change string "traildrop" on "TAILDROP"
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
kamailio 4.2.3
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1201
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170802/02a42ef3/attachment.html>
More information about the sr-dev
mailing list