Hello all, This is my first attempt at posting a patch. So if I screw this all up, my apologies and please someone let me know without beating me up too bad. To use this patch. You need to have an extra line in /etc/asterisk/voicemail.conf that looks like volgain=10.0 The 10.0 gets passed to sox which you will need installed on your system. 10.0 is what works for me, anything over 1.0 will increase the volume. To use the patch, while playing a message, hit 3. This will increase the volume of the file and put you back to the menu where you will hit 5 to replay the message. I hope someone finds this useful. If people like it I will clean it up to use the formats file. Right now it increases the volume on all three files. Thanks, Richard Tomson II Pinnacle Access Inc. -------------- next part -------------- 1639a1640,1642> char sys[256] = ""; /* Added for system call to increase / descrease message volume */ > char *volgain; /* Added for volume gain to increase / descrease message volume > to be read from voicemail.conf */1920a1924,1940> case '3': > if (volgain = ast_variable_retrieve(cfg, "general", "volgain")) > { > ast_log(LOG_NOTICE,"New Increase Volume Messages # %04d\n",curmsg); > snprintf(sys, sizeof(sys), "sox %s/msg%04d.WAV %s/new.WAV vol %s; mv %s/new.WAV %s/msg%04d.WAV\n", curdir, curmsg, curdir, volgain, curdir, curdir, curmsg); > ast_log(LOG_NOTICE,"%s\n",sys); > system(sys); /* Make system call to increase volume */ > snprintf(sys, sizeof(sys), "sox %s/msg%04d.wav %s/new.wav vol %s; mv %s/new.wav %s/msg%04d.wav\n", curdir, curmsg, curdir, volgain, curdir, curdir, curmsg); > ast_log(LOG_NOTICE,"%s\n",sys); > system(sys); /* Make system call to increase volume */ > snprintf(sys, sizeof(sys), "sox %s/msg%04d.gsm %s/new.gsm vol %s; mv %s/new.gsm %s/msg%04d.gsm\n", curdir, curmsg, curdir, volgain, curdir, curdir, curmsg); > ast_log(LOG_NOTICE,"%s\n",sys); > system(sys); /* Make system call to increase volume */ > } else { > ast_log(LOG_NOTICE,"No Volume Gain Set in voicemail.conf\n"); > } > goto instructions; /* Jump back to the instructions list */1924c1944 < goto out; ---> goto out;