Rename newp to newpvt (bug #2190), change hold music.
authorMark Spencer <markster@digium.com>
Sun, 1 Aug 2004 14:19:04 +0000 (14:19 +0000)
committerMark Spencer <markster@digium.com>
Sun, 1 Aug 2004 14:19:04 +0000 (14:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3560 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
configs/musiconhold.conf.sample
include/asterisk/translate.h
sounds/fpm-calm-river.mp3 [new file with mode: 0755]
sounds/sample-hold.mp3 [deleted file]
translate.c

index bfd3b25..6efb482 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -444,6 +444,7 @@ samples: all datafiles adsi
        for x in sounds/*.mp3; do \
                install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/mohmp3 ; \
        done
+       rm -f $(DESTDIR)$(ASTVARLIBDIR)/mohmp3/sample-hold.mp3
        mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
        :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm
        for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \
index 991ccae..78e7022 100755 (executable)
@@ -2,7 +2,7 @@
 ; Music on hold class definitions
 ;
 [classes]
-;default => quietmp3:/var/lib/asterisk/mohmp3
+default => quietmp3:/var/lib/asterisk/mohmp3
 ;loud => mp3:/var/lib/asterisk/mohmp3
 ;random => quietmp3:/var/lib/asterisk/mohmp3,-z
 ;unbuffered => mp3nb:/var/lib/asterisk/mohmp3
index a1cfd91..4ab0d91 100755 (executable)
@@ -34,7 +34,7 @@ struct ast_translator {
        /*! Destination format */
        int dstfmt;
        /*! Private data associated with the translator */
-       struct ast_translator_pvt *(*new)(void);
+       struct ast_translator_pvt *(*newpvt)(void);
        /*! Input frame callback */
        int (*framein)(struct ast_translator_pvt *pvt, struct ast_frame *in);
        /*! Output frame callback */
diff --git a/sounds/fpm-calm-river.mp3 b/sounds/fpm-calm-river.mp3
new file mode 100755 (executable)
index 0000000..4fd6d76
Binary files /dev/null and b/sounds/fpm-calm-river.mp3 differ
diff --git a/sounds/sample-hold.mp3 b/sounds/sample-hold.mp3
deleted file mode 100755 (executable)
index 012bdc6..0000000
Binary files a/sounds/sample-hold.mp3 and /dev/null differ
index 1bf22b5..2bbda14 100755 (executable)
@@ -107,7 +107,7 @@ struct ast_trans_pvt *ast_translator_build_path(int dest, int source)
                                tmp->nextout.tv_sec = 0;
                                tmp->nextout.tv_usec = 0;
                                tmp->step = tr_matrix[source][dest].step;
-                               tmp->state = tmp->step->new();
+                               tmp->state = tmp->step->newpvt();
                                if (!tmp->state) {
                                        ast_log(LOG_WARNING, "Failed to build translator step from %d to %d\n", source, dest);
                                        free(tmp);
@@ -237,7 +237,7 @@ static void calc_cost(struct ast_translator *t,int samples)
                t->cost = 99999;
                return;
        }
-       pvt = t->new();
+       pvt = t->newpvt();
        if (!pvt) {
                ast_log(LOG_WARNING, "Translator '%s' appears to be broken and will probably fail.\n", t->name);
                t->cost = 99999;