Turns out the quotes aren’t working. Im very new to this but could tell the file didn’t like the format of the string.
Did mine like this and not getting errors but still testing if it actually works: $config[‘alert’][‘macros’][‘rule’][‘bill_over_quota_75’] = ‘(((%bills.total_data/%bills.bill_quota) * 100) >= 75) && %bills.bill_type = “quota”’;
Nope. Sorry.
Its the forum that’s changing the apostrophe marks automatically.
If you paste the line in a text editor, just replace all the apostrophes manually and you should be able to paste the line into the conf.php file.
Or paste the line in the file and replace the apostrophes before saving.
You will also need to retype the quote marks around “quota” as this format also breaks it. After changing all these, my quota alerts are working correctly. I will also try to use this format to create alerts for cdr quotas. So in conclusion, retype all ’ and " in the file and it should work as intended.
It depends on which quotes you use… using the wrong quotes ‘ doesn’t work because PHP doesn’t accept them. You need to use '.
The forum is just showing what the user input. If something (like a stupid text editor) modified the quotes along the way, it won’t magically fix the user’s input.