Voicemails not being sent via email

philsh.caa

New Member
Mar 20, 2025
29
2
3
60
I have email working for password resets and for faxing. But when I leave a voicemail on an extension, I never receive the email with voicemail attached. Are these emails handled differently than the others? I do see the following in the logs:

2025-12-09 12:37:49.249275 99.23% [NOTICE] switch_cpp.cpp:1466 [notify_webhook.lua] CMD: curl -k -s -X POST -H 'Content-Type: application/json' -H 'Signature: zzzzzzzzzzzzzzzz' -d '{"event":"send_vm_email_notification","data":{"domain_uuid":"86d03ed3-1d21-435c-96be-291a8714d9c4","voicemail_id":"1104","message_uuid":"cdbd7144-7c87-4811-90e8-58b0a6d8c740","default_language":"en", "default_dialect":"us"}}' 'http://127.0.0.1/webhook/freeswitch'
 
Voicemail queue is set to modern. I see the following in the laravel.log but not sure if it relates:

[2025-12-09 19:46:53] production.ERROR: The signature is invalid. {"exception":"[object] (Spatie\\WebhookClient\\Exceptions\\InvalidWebhookSignature(code: 0): The signature is invalid. at /var/www/fspbx/vendor/spatie/laravel-webhook-client/src/Exceptions/InvalidWebhookSignature.php:11)
[stacktrace]
 
Check logs in Status-> Logs. If you see webhooks from FreeSwitch with a voicemail payload, that error is for something else. If you don't, then you have some misconfiguration. The signature validation for FreeSwitch webhooks is embedded in the code for local requests and should work unless it was modified.
 
It shows it as being sent. But I don't see that it was. I will have to dig. Does this use the email settings in the .env file to send the voicemail?
 
If you see the email being sent, even better. That means FS PBX is working as expected. Yes, it uses settings in the .env file. Same as for password resets. Next stop is your email host.
 
It looks like the email is being sent using the .env email properties, but the FROM field seems to be pulling from the Default Settings. I have a different service in settings vs .env.

Since that FROM does not match, it is getting rejected.
 
That's correct. This way, you can adjust where the voicemails and faxes come from. Some people like to specify those.
 
Sorry. I am confused by that. I use Brevo service in .env and Mailgun in Default Settings. It looks like the voicemail is being sent to Brevo but using my Mailgun FROM address in settings.
 
To avoid issues, make sure the email provider you use in your .env file matches the one set in Default Settings.
Right now, the email provider in Default Settings is only used for outbound fax email notifications, but that requirement will be removed soon.

Mailgun is currently used mainly for handling inbound fax webhooks. If someone sends a fax out, FS PBX will receive a webhook notification from Mailgun and process the fax appropriately. This must stay in place. The only other provider we support for inbound fax is Postmark but it comes at a higher cost.

Don't confuse it with email. You can choose either Mailgun or Brevo as your email provider — just make sure the settings in your .env file and your Default Settings match.

I hope this clarifies your confusion.
 
I was able to get it to work by changing the FROM address in the Default Settings to be something allowed by Brevo (.env).
Thanks.

I see there is a field for "Mobile Number to Receive Voicemail Notifications."

Are there settings to get that to work?