I’m on FreePBX version 17 and am trying to run a bash script after a voicemail message is left. I’ve been looking at using Mail Command (mailcmd) in Voicemail Admin ->Settings->Email Config, but I haven’t been able to figure out how to pass the VM_MAILBOX or other variables to the script. I’ve tried ${VM_MAILBOX} and a few other variations with no success.
Is passing variables to a script even possible in the mailcmd context? If I manually put the values in the field, it passes those through, but not the system variables.
Is anyone aware of any other method of passing voicemail message variables to a script?