Skip to content

Commit

Permalink
app_rpt: Use wav for recordings instead of wav49
Browse files Browse the repository at this point in the history
Resolves #485
  • Loading branch information
jxmx committed Feb 15, 2025
1 parent 76c9fdb commit b5b110a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/app_rpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2962,7 +2962,7 @@ static inline void log_keyed(struct rpt *myrpt)
time(&myt);
strftime(mydate, sizeof(mydate) - 1, "%Y%m%d%H%M%S", localtime(&myt));
sprintf(myfname, "%s/%s/%s", myrpt->p.archivedir, myrpt->name, mydate);
myrpt->monstream = ast_writefile(myfname, "wav49", "app_rpt Air Archive", O_CREAT | O_APPEND, 0, 0644);
myrpt->monstream = ast_writefile(myfname, "wav", "app_rpt Air Archive", O_CREAT | O_APPEND, 0, 0644);
if (myrpt->p.monminblocks) {
blocksleft = diskavail(myrpt);
if (blocksleft >= myrpt->p.monminblocks) {
Expand Down Expand Up @@ -3793,7 +3793,7 @@ static inline int rxchannel_read(struct rpt *myrpt, const int lasttx)
blocksleft = diskavail(myrpt);
if (blocksleft >= myrpt->p.monminblocks) {
myrpt->monstream =
ast_writefile(myfname, "wav49", "app_rpt Air Archive", O_CREAT | O_APPEND, 0,
ast_writefile(myfname, "wav", "app_rpt Air Archive", O_CREAT | O_APPEND, 0,
0644);
}
}
Expand Down Expand Up @@ -7073,7 +7073,7 @@ static int rpt_exec(struct ast_channel *chan, const char *data)
mkdir(mycmd, 0775);
time(&myt);
strftime(mydate, sizeof(mydate) - 1, "%Y%m%d%H%M%S", localtime(&myt));
sprintf(mycmd, "mixmonitor start %s %s/%s/%s.wav49 a", ast_channel_name(chan), myrpt->p.archivedir, myrpt->name,
sprintf(mycmd, "mixmonitor start %s %s/%s/%s.wav a", ast_channel_name(chan), myrpt->p.archivedir, myrpt->name,
mydate);
if (myrpt->p.monminblocks) {
blocksleft = diskavail(myrpt);
Expand Down

0 comments on commit b5b110a

Please sign in to comment.