Index: app_record.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v retrieving revision 1.28 diff -u -r1.28 app_record.c --- app_record.c 23 Nov 2004 02:35:46 -0000 1.28 +++ app_record.c 4 Feb 2005 19:23:25 -0000 @@ -42,6 +42,7 @@ " 'n' : do not answer, but record anyway if line not yet answered\n" " 'a' : append to existing recording rather than replacing\n" " 't' : use alternate '*' terminator key instead of default '#'\n" +" 'b' : do not play a beep tone - check legality in your area before using\n" "\n" "If filename contains '%d', these characters will be replaced with a number\n" "incremented by one each time the file is recorded. \n\n" @@ -79,6 +80,7 @@ int option_noanswer = 0; int option_append = 0; int terminator = '#'; + int option_nobeep = 0; int rfmt = 0; int flags; @@ -143,6 +145,8 @@ option_append = 1; if (strchr(options, 't')) terminator = '*'; + if (strchr(options, 'b')) + option_nobeep = 1; } } @@ -174,14 +178,17 @@ } if (!res) { - /* Some code to play a nice little beep to signify the start of the record operation */ - res = ast_streamfile(chan, "beep", chan->language); - if (!res) { - res = ast_waitstream(chan, ""); - } else { - ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", chan->name); + + if (!option_nobeep) { + /* Some code to play a nice little beep to signify the start of the record operation */ + res = ast_streamfile(chan, "beep", chan->language); + if (!res) { + res = ast_waitstream(chan, ""); + } else { + ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", chan->name); + } + ast_stopstream(chan); } - ast_stopstream(chan); /* The end of beep code. Now the recording starts */