app_meetme entrance, leave sound?

Hello Everyone,

Can someone please point me where the sound played when entering or leaving a conference is played?

I’ve been told it is hard coded, but in [color=darkred]app_meetme.c[/color] all i coud see was

switch(sound) {
00553    case ENTER:
00554       data = enter;
00555       len = sizeof(enter);
00556       break;
00557    case LEAVE:
00558       data = leave;
00559       len = sizeof(leave);
00560       break;
00561    default:
00562       data = NULL;
00563       len = 0;
00564    }

can someone point me how can i modify app_meetme so it plays a longer, louder sound?

Thank you!


I see now that the file in question is


How could i change enter.h so it plays a different sound? what utility can be used?

Hi there… can someome please tell me in what format should i record the sound file before converting it into hex?

The original enter.h reads:

U-law 8 bit, source enter.raw

but I fail to understand if it is 8 bit unsigned, 8 bit signed, etc… can someone please tell what should i use? or how to convert a wav into this format using sox?

maybe someone could point me into this enter.raw file?

Thank you!


I know this is a bit of an old topic, but I just did this and documented it somewhat for the astguiclient/VICIDIAL project, so I thought I’d post more info here.

For some reason, possibly effeciency, the enter and leave sounds that you hear in standard Asterisk meetme rooms are actually hex dumps of RAW ULAW 8bit audio that have been compiled into the code of Asterisk in a header file. This makes them somewhat difficult to change, especially since there are no instructions.

This should slightly reduce time that it takes for calls to get to agents, as well as reduce the time of the locks that occur when these sounds are played in Asterisk. The new enter and leave sounds I include with VICIDIAL are 0.12 and 0.13 seconds respectively as compared to the default sounds which are more than double that.

Here are the steps I went to to change the meetme enter and leave sounds:

  1. grab the source audio file you want and open it in your favorite editor

    • In my case I tweaked the audio I used for the app_conference build I made and shrunk them a bit until they were at most, half the length as the Asterisk default sounds they would be replacing
  2. Save the audio as 8-bit, 8k ULAW audio and save as .raw

  3. used “hexdump” to dump the audio file into two-character hex chunks
    /usr/bin/hexdump -C ./enter.raw

    • I’m sure this could be made prettier with the proper formatting strings, but I didn’t have time for that
    • Here’s some of the output:

    00000000 d6 dc 55 5f 63 67 f0 f0 74 75 d6 ee 5d 73 66 60 |ÖÜU_cgððtuÖî]sf| 00000010 dc fd 62 68 5b 5a 57 5e 5b 5c ef fc 4d 51 57 4c |Üýbh[ZW^[\ïüMQWL| 00000020 5d 66 60 51 6c 5f 3e 4d 59 47 72 e4 52 53 58 48 |]fQl_>MYGräRSXH|

  4. Used favorite text edotor to format the data properly:

    • 60 character length lines comma-space separated in the same format as enter.h and leave.h were in. Don’t forget the header and footer to this raw hex audio, they are important

    0xd6, 0xdc, 0x55, 0x5f, 0x63, 0x67, 0xf0, 0xf0, 0x74, 0x75,
    0xd6, 0xee, 0x5d, 0x73, 0x66, 0x60, 0xdc, 0xfd, 0x62, 0x68,
    0x5b, 0x5a, 0x57, 0x5e, 0x5b, 0x5c, 0xef, 0xfc, 0x4d, 0x51,

  5. Copied the new enter.h and leave.h files over the old ones, and compile Asterisk

mv -f enter.h apps/enter.h
mv -f leave.h apps/leave.h