IT Management Portal with Technical Articles
Home
Sunday, 05 September 2010
Login Form
Username

Password

Remember me
Password Reminder
No account yet? Create one
Syndicate
Asterisk and Bristuff and Asterisk Voice Changer Compilation Error PDF Print E-mail
User Rating: / 2
PoorBest 
Tuesday, 07 November 2006
If you try to install the "Asterisk Voice Changer" on an Asterisk system that has the Bristuff version of Asterisk installed, you may receive a compiler error for the line 365 in the file "app_voicechangedial.c" saying you are not supplying enough arguments / parameters in the calling of the function "ast_request".

The cause of this is a change in the function "ast_request" that now requires an additional argument that you will need to supply. The resolution of this is fairly easy:

Open the file "app_voicechangedial.c" with an editor and jump to line 365.

You'll find yourself in the middle of the function "make_call".

The variable declarations for this function should be right above and look like this:

        int rc;
        struct localuser *peer;
        char status[64] = "";
        int cause = 0;

Replace them with this set of lines:

        int rc;
        struct localuser *peer;
        char status[64] = "";
        char uniqueID[20] = "VoiceChanged";
        int cause = 0;

Then, locate this line (which has now become line 366):

        if (!(peer->chan = ast_request(ops->tech, ops->chan->nativeformats, ops->dest, &cause ))) {

Replace it with this code:

        if (!(peer->chan = ast_request(ops->tech, ops->chan->nativeformats, ops->dest, &cause , uniqueID))) {

Now, try to compile the voicechanger again (rerun "make"). It should work fine now.

You can find the voicechanger application for download (and installation instructions) here.

 

Last Updated ( Tuesday, 07 November 2006 )
Polls
Are you a...
  
The dominating OS on your network is...
  
The last virus outbreak on your network was within the...
  
Who's Online
We have 11 guests online
 

Mambo is Free Software released under the GNU/GPL License.
Design by Mamboteam.com | Powered by Mambobanner.de