Good Morning Colleagues
I hope you are doing safe and good .
I have a question regarding FreePBX-MissedCalls dialplan created by pitzkey. Regarding the " to email" , Is it possible to add more than one email ? If applicable , How can i do this ?
Hi Lorne
Thx for your replay . I donât mean the mail command but i am talking about FreePBX Missed Calls dialplan below . I need to know how to send the notifications to more than one email.
The dialplan pulls the email address defined for the extensionâs voicemail. You can populate that vm email address field in the GUI with multiple addresses separated by commas, and FreePBX will write that out in voicemail.conf as addresses separated by | characters. The mail command wonât be able to deal with them in that format, so after the line that gets the email address, you will need to change pipe(s) to space(s). Not tested:
Not sure how to make it any clearer. Add multiple email addresses to the vm email address field for the extension separated by commas. Add the additional dialplan line noted above in the correct place and reload.
I wasnât aware of REPLACE. How odd that there be two nearly (but not quite) identical functions. With your line, donât you require a space between the two final commas?
Ack, reading more carefully, I can see how it works. I think this is a change you can permanently add to the dialplan. If the VM_INFO function ever returns an email string with a | character, it will only ever be a separator between multiple addresses.