Volgain patch for asterisk v1.2


I’m attaching a patch that will allow users of the 1.2 version of asterisk to increase (or decrease) the gain on voicemails that are emailed.

The version we use on campus also converts to mp3 for better client support, as well as a number of other patches if anyone would be interested in that. Just post a comment and I’ll see what I can do.

In order to install the patch, run these commands:

cd /path/to/asterisk/source
patch -p0 --verbose < /path/to/volgain.patch
make
make install # you can run this or just copy app_voicemail.so
             # from apps to /usr/lib/asterisk/modules and restart asterisk

<edit>

Sorry guys, I left a section in the code that was part of our CONVERTMP3 function, it’s been removed.

Volgain Patch 2006-10-11

<edit 2>

Alright, I’ve updated the patch to work in 1.2.32, for those of you still on 1.2.  I’d recommend switching to 1.4 or 1.6 even, as the patch you’re looking at here is actually part of the source code in future versions.

20090810_volgain_onlydiff

  1. #1 by Alex - August 10th, 2009 at 01:51

    Hi,

    we use a asterisk 1.2.32, i just searched for such a patch you published, but something was changed in app_voicemail.c, because your patch does not work, i get the follwing error:

    File to patch: app_voicemail.c
    Patching file app_voicemail.c using Plan A…
    Hunk #1 succeeded at 387 (offset 1 line).
    Hunk #2 FAILED at 1654.
    Hunk #3 succeeded at 1819 (offset 36 lines).
    Hunk #4 succeeded at 1838 (offset 36 lines).
    Hunk #5 succeeded at 5981 (offset 69 lines).
    Hunk #6 succeeded at 6019 (offset 69 lines).
    1 out of 6 hunks FAILED — saving rejects to file app_voicemail.c.rej
    done

    Maybe you can adapt your patch for the newest asterisk 1.2.32 version? We need to gain the emailed recordings!

    Best regards from Germany,
    Alex

  2. #2 by Aaron - August 10th, 2009 at 08:34

    Alex, I’ve gone and updated the patch for you. I don’t have the resources to test it, but it was fairly simple. I don’t anticipate you having any trouble with it.

(will not be published)
  1. No trackbacks yet.