arnaudcoquelet / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Voicemails forwarded to email enabled mailbox are not emailed #905

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.set mailbox enables = true
2.set voicemail mail to address
3.set voicemail file to "audio file attachment"
4.set voicemail keep local to false
5.forward voicemail to programmed ext

What is the expected output?
Would expect the voicemail to be emailed to the correct recipient and not left 
in the mailbox

What do you see instead?
MWI lamp is illuminated and user does not get email.

What version of the product are you using? 3.7.1
On what operating system? Ubuntu

Please provide any additional information below.
Voicemail messages that are not forwarded are emailed correctly.

Original issue reported on code.google.com by dddv...@gmail.com on 6 Apr 2015 at 10:38

GoogleCodeExporter commented 9 years ago
After testing - found the email is sent but the message remains in destination 
users mailbox even though the keep voicemail flag is false.

Ext 202 has voicemail to email set up and has chosen not to keep messages in 
the mailbox but delete them after sending the email.

User at 201 receives a voicemail and forwards it to the user at 202.
The message is deleted from 202. This may not be desired as forwarding a 
message in any other format (email, sms) does not delete the original message.

The message is emailed to the address in mailbox 202 "email to" field but is 
left in the mailbox as a new message even though the "voicemail keep local" 
flag is false.

Original comment by dddv...@gmail.com on 7 Apr 2015 at 2:17

GoogleCodeExporter commented 9 years ago
Possible Solve:

Add test to script app/voicemail/resources/functions/forward_to_extension

before line #94 insert:
        if (forward_voicemail_local_after_email)  then

Insert matching "end" between 'set message waiting event' and 'send email'.

I have tested this on my dev system and it seems to work OK.

Original comment by dddv...@gmail.com on 7 Apr 2015 at 4:01

Attachments:

GoogleCodeExporter commented 9 years ago
forward_to_extension simply had the wrong uuid.
corrected and tested.

only change required:
line 147
from:           send_email(forward_voicemail_id, uuid);

to:             send_email(forward_voicemail_id, voicemail_message_uuid);

Original comment by dddv...@gmail.com on 7 Apr 2015 at 5:59

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks.  Fix verified and committed as r8205.

Original comment by sevenate on 10 Apr 2015 at 1:23