karlma / fusionpbx

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

No Voicemail to Emai when using other language #938

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup default language as another language other than English
2. Configure Voicemail to Email

What is the expected output? What do you see instead?
System should send out an email after VM recording is completed but instead I 
get this error:

2015-04-28 04:20:24.383306 [NOTICE] switch_cpp.cpp:1328 [voicemail] 
2015-04-28 04:20:24.403291 [ERR] mod_lua.cpp:203 
...scripts/app/voicemail/resources/functions/send_email.lua:135: bad argument 
#2 to 'gsub' (string/function/table expected)
stack traceback:
    [C]: in function 'gsub'
    ...scripts/app/voicemail/resources/functions/send_email.lua:135: in function 'send_email'
    /usr/local/freeswitch/scripts/app/voicemail/index.lua:460: in main chunk
    /usr/local/freeswitch/scripts/app.lua:50: in main chunk

Please use labels and text to provide additional information.

When FusionPBX is setup to use English as its default language for sounds there 
is no issue. All the sound prompts for this language are working as expect just 
that it is not sending the voicemail to email.

Here is the vars config:

default_language    de      True            
default_dialect     at      True            
default_voice       ute         True

sound_prefix        $${sounds_dir}/de/at/ute        True

Other system details:

FreeSWITCH Version 1.4.17~64bit ( 64bit)
Debian Wheezy 7.8 bit

FusionPBX Dev 3.7.1 
Last Changed Rev: 8328
Last Changed Date: 2015-04-28 02:25:59 +0200 (Tue, 28 Apr 2015)

Original issue reported on code.google.com by ewsamu...@gmail.com on 28 Apr 2015 at 2:32

GoogleCodeExporter commented 9 years ago
It won't work without voicemail template for that language. Since there isn't 
one for that language no surprise its not working.

Original comment by markjcrane@gmail.com on 28 Apr 2015 at 3:47

GoogleCodeExporter commented 9 years ago
If we didn't have a voicemail template then we wouldn't be able to access 
voicemail in German but we can, all the German voicemail prompts are working 
fine the only issue is voicemail to email.  

I copied the lang/de from another server with an older installation of 
FusionPBX 3.7.1 is working where the voicemail to email is working without 
issue.

Original comment by ewsamu...@gmail.com on 28 Apr 2015 at 8:19

GoogleCodeExporter commented 9 years ago
Okay I will take a look at it.

Original comment by markjcrane@gmail.com on 29 Apr 2015 at 4:14

GoogleCodeExporter commented 9 years ago
Still have the same issue after upgrade to 3.8.3.

Original comment by ewsamu...@gmail.com on 23 May 2015 at 10:19

GoogleCodeExporter commented 9 years ago
here you go, the german voicemail to email template.
Mark, maybe you can add this to trunk.

Original comment by roman.di...@gmail.com on 11 Jun 2015 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you Roman!

Original comment by ewsamu...@gmail.com on 11 Jun 2015 at 10:39

GoogleCodeExporter commented 9 years ago
Ok I added the patch but still getting the error below when the system is 
trying to send out an email and this is even after update to the current svn up 
to the time of writing this:

2015-06-11 20:02:09.757620 [ERR] mod_lua.cpp:203 
...scripts/app/voicemail/resources/functions/send_email.lua:135: bad argument 
#2 to 'gsub' (string/function/table expected)
stack traceback:
    [C]: in function 'gsub'
    ...scripts/app/voicemail/resources/functions/send_email.lua:135: in function 'send_email'
    /usr/local/freeswitch/scripts/app/voicemail/index.lua:460: in main chunk
    /usr/local/freeswitch/scripts/app.lua:50: in main chunk

Original comment by ewsamu...@gmail.com on 11 Jun 2015 at 6:07