For some reason, I cannot get access to the bug reporting portal for FreePBX.
In /var/lib/asterisk/agi-bin is the file “wakeup” that controls Wake-up calls.
PLEASE fix this module - See below:
Line says: if(empty($number) || strlen($number) < $config[‘extensionlength’]) {
Should be: if(empty($number) || strlen($number) > $config[‘extensionlength’]) {
With your “fix”, if I’m using 4-digit extensions, I could set up a call to go to “day-night mode” or some other similar silliness. Also, your change invalidate the ability for me to send a wake-up call to my daughter’s cell phone (so she knows she’s just busted her curfew).
I was able to submit the ticket now, thanks TheJames!
Dave Burgess, the fix is simply correcting a problem with their code - in FreePBX, if you set the max digit length in the WakeUp calls module, then the module will not allow you to set an extension greater than the length.
With their original code however, it was the opposite: It wouldn’t accept any LESS than the Max digit length. How many digits you want to send depends on your setting. This code fix just makes it correct again.