LinuxMCE Forums

General => Users => Topic started by: brononius on January 10, 2013, 02:56:34 pm

Title: [SOLVED] Voicemail in 1004
Post by: brononius on January 10, 2013, 02:56:34 pm
Hey,

My voicemail seems to be failing. After the 'ringtime', the call just stops. Nothing more, nothing less.
Any idea what's going on?

When i check /var/log/asterisk/full, this is what i see:
Code: [Select]
[Jan 10 14:42:33] WARNING[7112] file.c: File pluto/pluto-default-voicemenu does not exist in any format
[Jan 10 14:42:33] WARNING[7112] file.c: Unable to open pluto/pluto-default-voicemenu (format 0x8 (alaw)): Permission denied
[Jan 10 14:42:33] WARNING[7112] pbx.c: ast_streamfile failed on SIP/012345678-0000001e for pluto/pluto-default-voicemenu
[Jan 10 14:42:54] WARNING[7112] file.c: File pluto/pluto-default-voicemenu does not exist in any format
[Jan 10 14:42:54] WARNING[7112] file.c: Unable to open pluto/pluto-default-voicemenu (format 0x8 (alaw)): Permission denied
[Jan 10 14:42:54] WARNING[7112] pbx.c: ast_streamfile failed on SIP/012345678-0000001e for pluto/pluto-default-voicemenu

Where should this file (pluto_default-voicemenu) be located?

Title: Re: Voicemail in 1004
Post by: cfernandes on January 10, 2013, 03:48:48 pm
the voice menu files is on 

/usr/share/asterisk/sounds/pluto

and is created by /usr/pluto/bin/generate_users_voicemenu.pl



Cfernandes
Title: Re: Voicemail in 1004
Post by: brononius on January 11, 2013, 12:38:55 pm
Strange...
A problem with the format? Files are gsm, and the error talks about alaw?


ls -l pluto/
Code: [Select]
total 104
-rwxrwx--- 1 root root  5115 2013-01-11 12:35 invalid-entry.gsm
-rwxrwx--- 1 root root  2640 2012-09-14 11:17 pluto-default-voicemenu1.gsm
-rwxrwx--- 1 root root  4389 2012-09-14 11:17 pluto-default-voicemenu2.gsm
-rwxrwx--- 1 root root  3927 2012-09-14 11:17 pluto-default-voicemenu3.gsm
-rwxrwx--- 1 root root  3960 2012-09-14 11:17 pluto-default-voicemenu4.gsm
-rwxrwx--- 1 root root 28116 2013-01-11 12:35 pluto-default-voicemenu.gsm
-rwxrwx--- 1 root root  1452 2012-09-14 11:17 pluto-goodbye.gsm
-rwxrwx--- 1 root root  2838 2012-09-14 11:17 pluto-hello.gsm
-rwxrwx--- 1 root root  2145 2012-09-14 11:17 pluto-security-ignore.gsm
-rwxrwx--- 1 root root  3300 2012-09-14 11:17 pluto-security-option1.gsm
-rwxrwx--- 1 root root  3366 2012-09-14 11:17 pluto-security-option2.gsm
-rwxrwx--- 1 root root  4191 2012-09-14 11:17 pluto-security-option3.gsm
-rwxrwx--- 1 root root  3762 2012-09-14 11:17 pluto-security-option4.gsm
-rwxrwx--- 1 root root  4587 2012-09-14 11:17 pluto-security-option5.gsm
-rwxrwx--- 1 root root  2838 2012-09-14 11:17 pluto-security-reset.gsm
-rwxrwx--- 1 root root  1947 2012-09-14 11:17 pluto-security-sos.gsm


perl /usr/pluto/bin/generate_users_voicemenu.pl
Code: [Select]
Generating speech for IVR Main Menu (language: 1).
Text 2173: Thank you for calling.
Text 2168: If you know the extension of the person you wish to call, you may enter it at any time.
Text 2167: To call everybody in the house, dial 0.
Text 2169: To leave a message, please press the pound sign.
Generating speech for USER1 extension: 301
Text 2170: To call
Text 2171: , dial
Result: To call USER1, dial 1.
Generating speech for USER2 extension: 302
Text 2170: To call
Text 2171: , dial
Result: To call USER2, dial 2.
Generating speech for invalid IVR entries.
Text 2172: Your selection is not valid, please try again.

Title: Re: Voicemail in 1004
Post by: cfernandes on January 11, 2013, 12:47:48 pm
the  file owner  is root   the correct is asterisk

chwon asterisk:asterisk *.gsm
Title: Re: Voicemail in 1004
Post by: brononius on January 11, 2013, 05:55:47 pm
Strange, can't recall that i changed the permission.
But i can confirm that after the permission change (www-data) the voicemail is working!!!



Thanks!!!
Title: Re: [SOLVED] Voicemail in 1004
Post by: pw44 on January 11, 2013, 08:46:09 pm
I remember i corrected the permissions twice after install and updates.
Title: Re: [SOLVED] Voicemail in 1004
Post by: hanafi on January 12, 2013, 04:13:28 pm
i have the same problem in languae French
i make chown www-data:www-data gsm*
no IVR after ring
Title: Re: [SOLVED] Voicemail in 1004
Post by: brononius on January 14, 2013, 07:56:40 am
i have the same problem in languae French
i make chown www-data:www-data gsm*

I think you've got an issue with the command. Shouldn't it be:
Code: [Select]
chown asterisk:asterisk *.gsmor with complete path:
Code: [Select]
chown asterisk:asterisk /usr/share/asterisk/sounds/pluto/*.gsm

Can you else give us an output of following command?
Code: [Select]
ls -l /usr/share/asterisk/sounds/pluto