I will pay someone if they can figure out how to change the recording length on 2 voicemail boxes on my system. I am able to change all of the voicemail boxes length by changing the voicemail_general.inc file but I only need to change 2 of them. I tried adding the same variable into the extension voicemail options but that doesn't work. So I have decided to stop raking my brain and just pay someone for a simple solution to my problems. Thanks.
$35 BOUNTY TO CHANGE VOICEMAIL BOX RECORDING LENGTH
Anyone willing to take a stab at this???
Try by adding an additional CONTEXT for voicemail settings. Then use that additonal context when configuring the voicemail for the extension you want to modify.
Which file would I add the context to for the voicemail? Do you have an example of what I would add? If you can figure this out for me, I will pay you the $35 bounty that I have up for this. Thanks for your help.
Like this
#include vm_email.inc [default] 103 => 1111,Guest Bedroom,,,attach=no|saycid=no|envelope=no|delete=no 111 => 1111,Old Home Line,,,attach=no|saycid=no|envelope=no|delete=no [restricted] forcename=yes 110 => 1111,Test,,,attach=no|saycid=no|envelope=no|delete=no
What variable are you trying to change? It may not be possible to do what you want. I am not sure you can redeclare general settings in a new context, I thought that was only used for timezones. This is just an exampls. You restrivted vm users would be 110@resricted in the extension.
I am trying to add the maxmessage=10 variable for the individual voicemail box. The variable won't work in the extension VM options, but it will work in the vm_general.inc. However the vm_general.inc changes the time for all the voicemail boxes. I am looking for a solution that will only change 2 of the voicemail boxes.
Right, and I gave you that answer. You can also set it on the user option line. There is some ambiguity in the sample confs if it is maxmessage of maxmsg so I would try both.
I have update my example to show you botht he user option and context approach.
Like this
#include vm_email.inc [default] 103 => 1111,Guest Bedroom,,,attach=no|saycid=no|envelope=no|delete=no 111 => 1111,Old Home Line,,,attach=no|saycid=no|envelope=no|delete=no [restricted] maxmessage=20 110 => 1111,Test,,,attach=no|saycid=no|envelope=no|delete=no|maxmsg=10 What variable are you trying to change? It may not be possible to do what you want. I am not sure you can redeclare general settings in a new context, I thought that was only used for timezones. This is just an exampls. You restrivted vm users would be 110@resricted in the extension. --
I tried your example with both the maxmessage=20 and the maxmsg=20 and neither worked. Is it possible that the variable only work in .inc files and not .conf??? Is there a way to test this theory? I did change the context for the extension to restricted if you are wondering.
It's not the context of the extension. It's the voice mail field. It would be extension@restricted
The .conf and .inc are all connected by voicemail.conf
I meant to say that I changed it in the voicemail content and not the extension. It still didn't work, any other suggestions?
I used the VM option under the extension and put in maxmessage=#, I believe that number is in seconds. Your voicemail.conf should reference this change also.
500 => ####,Office,maxmessage=120|attach=no|saycid=no|envelope=no|delete=no
as apposed to
500 => ####,Office,,,attach=no|saycid=no|envelope=no|delete=no
hope this is what you're looking for
Ogio did that actually work for you and which version are you using? I've tried that as well and it didn't work either.
I've only tried it on one extension we use strictly for voicemail, we kept running into messages getting cut short causing the caller to have to call back and leave the rest of their message. Im using v 2.6.1. Did your voicemail.conf reference the change as well?
This is what is showing up in voicemail.conf
105 => 12345,test user,email@xxx.com,xxxxxxxx@xxx.com,maxmessage=10|review=no|attach=yes|saycid=yes|envelope=yes|delete=no
Maxmessage time is in seconds though, so you are only allowing them to leave a 10 second message, this setting should also appear in your recordings tab. Enter in the extension and password and go to settings and it should appear just below "pager email notification to" and should say [##] Maximum time in seconds a voicemail will record. You can change it there also.
I don't have that setting in my version of trixbox. I am running v2.2.9. I am too scared to upgrade to 2.6 because everything has been running so good in this version and this the only problem I have.
Well everything in your voicemail.conf appears to be correct besides the maxmessage time, you should try putting in like 180=3min. Thats all I had to do on mine for that setting to work correctly, sorry I wasn't much more help.
I appreciate the effort. I actually want the recording time to be 10 seconds.
It's still not working? Are you starting and stopping Asterisk to reread the changes?
The command from the CLI is 'amportal restart'
You can safely upgrade v2.2 to FreePBX 2.5 through the webmin. Simple go to FreePBX/Module Admin and install the update tool and work your way up to 2.5. You will be very happy.
I did the upgrade but now everything is screwed up. I can't get any of my calls to come in and the one DID that does come in just say an error has occured. Is there anyway to downgrade????
Slow down.....This is probably easy to fix.
Everything is working accept your inbound trunks?
Outbound is working fine?
You probably just had your allow and disallow in the wrong order. Later versions are pickier.
Lol, I got a little jumpy! I was thinking why did I do this at 11:30 at night. I was able to get it back working by reloading the trunks. I will test out the maxmessage and see if it works in the morning. Thanks for your help.
I would not tell you to do anything dangerous.
Let us know if that works for you.
I just tried it but it still didn't work. Are there any other options?
Hmm, I tried it does not work.
Research:
Looks like you can only set maxmessage in global settings:
The user_option(s) field can be used to override default settings defined in the general section, or set a specific time zone for this user. Specifically, there are 9 setting=value pairs which can be specified in the user_option(s) field. There can be multiple setting=value pairs defined in the user_option(s) field. Each setting=value pair after the first must be delimited with a vertical bar (|). The settings which may be used are: attach, attachfmt, serveremail, tz, imapuser, imappassword, delete, sendvoicemail, review, tempgreetwarn, envelope, sayduration, saydurationm, forcename, forcegreetings, maxmsg, volgain, saycid, review, operator, callback, dialout and exitcontext. With the exception of tz , the functions of the 8 remaining settings are exactly the same as those defined in the
So there's no way around this problem? For all the things that this system can do, this just seem like it would be very simple! They actually even gave the example for maxmessage variable in the voicemail settings on the extension page. I'm guessing someone forgot to turn this feature on. I'll keep digging and see if I can find a solution. Thanks for your help.
Yes, that example is incorrect in the FreePBX tool tips. What I sent you is the Asterisk documentation.
Here is the link to the current app_voicemail in the svn Of course you are running a much older version.
http://svn.digium.com/svn/asterisk/trunk/apps/app_voicemail.c
Here is the link for the 1.2 branch you are running:
http://svn.digium.com/svn/asterisk/branches/1.2-netsec/apps/app_v...
Here is the latest 1.6 voicemail.conf example file.
http://svn.digium.com/svn/asterisk/branches/1.6.2/configs/voicema...
Lastly the 1.2 sample voicemail.conf:
http://svn.digium.com/svn/asterisk/branches/1.2-netsec/configs/vo...
I noticed there is a new parameter in 1.6. That may hold promise.
If you follow the instructions in the wiki for upgrading trix 2.2 to Asterisk 1.4 you can understand the process of updating the Asterisk from source. If you have never built a program from source I would not consider it.
Perhaps someone running 2.8 would be willing to test the parameter 'maxsecs' and see if it works as expected.
I think I have found another solution that will work for me. I've been playing around with the caller-id call back module and I think it will be a better solution than the voicemail solution I was trying to setup. Do anyone know how to set the prefix for the call back number?
Is there a way to specify a custom context in v2.2.9 for an IVR? I have a script that will solve my problem for the call back but I can't specify it like I use to be able to do in the previous version. How do I specifiy it?
FreePBX has a module called Voicemail Administrator
http://www.freepbx.org/support/documentation/module-documentation...
This module granulates the settings for each user.. it allows you to change it for all.. or just one - very nice too - also gives
you usage stats - ability to see who has recorded greetings - how many messages.. nice stuff.
JD

Member Since:
2006-09-26