Hi we have a small problems. We have a Asterisk 1.6.1 old server with music on old. we have updated to AsteriskNow 11.4.0 and now, when we want play sound, we have a errors: -- Executing [334xx at Accueil_HNO:2] BackGround("SIP/SIP000005-0000000c", "Fermeture") in new stack [Jun 16 07:35:06] WARNING[7634][C-00000006]: file.c:701 ast_openstream_full: File Fermeture does not exist in any format [Jun 16 07:35:06] WARNING[7634][C-00000006]: file.c:1017 ast_streamfile: Unable to open Fermeture (format (alaw)): No such file or directory [Jun 16 07:35:06] WARNING[7634][C-00000006]: pbx.c:11180 pbx_builtin_background: ast_streamfile failed on SIP/SIP000005-0000000c for Fermeture -- Executing [334xx at Accueil_Phibee_HNO:4] Hangup("SIP/SIP000005-0000000c", "") in new stack == Spawn extension (Accueil_HNO, 334xx, 4) exited non-zero on 'SIP/SIP000005-0000000c' I understand that he search the file in .ulaw, but why i don't use the mp3 ? musiconhold.conf [default] mode=quietmp3 directory=/var/lib/asterisk/moh [Horaires] mode=quietmp3 directory=/var/lib/asterisk/moh/Horaires ps fax: 7555 pts/0 S 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk 7558 pts/0 Sl 0:06 \_ /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c 7578 pts/0 S 0:00 \_ mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 Fermeture.mp3 7580 pts/0 S 0:00 | \_ mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 Fermeture.mp3 find /var/lib/asterisk/moh/ /var/lib/asterisk/moh/Horaires/Fermeture.mp3 ll -rw-r--r-- 1 asterisk asterisk 1396613 Nov 24 2010 /var/lib/asterisk/moh/Horaires/Fermeture.mp3 thanks for your help Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130616/2e779066/attachment.htm>
On Sun, Jun 16, 2013 at 2:43 AM, Olivier CALVANO <o.calvano at gmail.com>wrote:> > > Hi > > we have a small problems. > > We have a Asterisk 1.6.1 old server with music on old. > > we have updated to AsteriskNow 11.4.0 > > and now, when we want play sound, we have a errors: > > -- Executing [334xx at Accueil_HNO:2] > BackGround("SIP/SIP000005-0000000c", "Fermeture") in new stack > [Jun 16 07:35:06] WARNING[7634][C-00000006]: file.c:701 > ast_openstream_full: File Fermeture does not exist in any format > [Jun 16 07:35:06] WARNING[7634][C-00000006]: file.c:1017 ast_streamfile: > Unable to open Fermeture (format (alaw)): No such file or directory > [Jun 16 07:35:06] WARNING[7634][C-00000006]: pbx.c:11180 > pbx_builtin_background: ast_streamfile failed on SIP/SIP000005-0000000c for > Fermeture > -- Executing [334xx at Accueil_Phibee_HNO:4] > Hangup("SIP/SIP000005-0000000c", "") in new stack > == Spawn extension (Accueil_HNO, 334xx, 4) exited non-zero on > 'SIP/SIP000005-0000000c' > > > I understand that he search the file in .ulaw, but why i don't use the mp3 > ? > > > musiconhold.conf > > [default] > mode=quietmp3 > directory=/var/lib/asterisk/moh > > [Horaires] > mode=quietmp3 > directory=/var/lib/asterisk/moh/Horaires > > > > ps fax: > 7555 pts/0 S 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G > asterisk > 7558 pts/0 Sl 0:06 \_ /usr/sbin/asterisk -f -U asterisk -G > asterisk -vvvg -c > 7578 pts/0 S 0:00 \_ mpg123 -q -s --mono -r 8000 -b 2048 -f > 8192 Fermeture.mp3 > 7580 pts/0 S 0:00 | \_ mpg123 -q -s --mono -r 8000 -b 2048 > -f 8192 Fermeture.mp3 > > > find /var/lib/asterisk/moh/ > > /var/lib/asterisk/moh/Horaires/Fermeture.mp3 > > ll > -rw-r--r-- 1 asterisk asterisk 1396613 Nov 24 2010 > /var/lib/asterisk/moh/Horaires/Fermeture.mp3 > > > > >Do you have the format_mp3 module loaded? Add-on modules are in the addons subdirectory. Typically, these modules are not built and installed by default, and have to be enabled in menuselect. Matt -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130616/aff35de9/attachment.htm>
Take a look here: http://blog.our-files.com/2012/07/format_mp3-so-building-for-asterisk-1-8-11-using-packages-asterisk-org/ Am 16.06.2013 09:43, schrieb Olivier CALVANO:> > > Hi > > we have a small problems. > > We have a Asterisk 1.6.1 old server with music on old. > > we have updated to AsteriskNow 11.4.0 > > and now, when we want play sound, we have a errors: > > -- Executing [334xx at Accueil_HNO:2] > BackGround("SIP/SIP000005-0000000c", "Fermeture") in new stack > [Jun 16 07:35:06] WARNING[7634][C-00000006]: file.c:701 > ast_openstream_full: File Fermeture does not exist in any format > [Jun 16 07:35:06] WARNING[7634][C-00000006]: file.c:1017 > ast_streamfile: Unable to open Fermeture (format (alaw)): No such file > or directory > [Jun 16 07:35:06] WARNING[7634][C-00000006]: pbx.c:11180 > pbx_builtin_background: ast_streamfile failed on > SIP/SIP000005-0000000c for Fermeture > -- Executing [334xx at Accueil_Phibee_HNO:4] > Hangup("SIP/SIP000005-0000000c", "") in new stack > == Spawn extension (Accueil_HNO, 334xx, 4) exited non-zero on > 'SIP/SIP000005-0000000c' > > > I understand that he search the file in .ulaw, but why i don't use the > mp3 ? > > > musiconhold.conf > > [default] > mode=quietmp3 > directory=/var/lib/asterisk/moh > > [Horaires] > mode=quietmp3 > directory=/var/lib/asterisk/moh/Horaires > > > > ps fax: > 7555 pts/0 S 0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk > -G asterisk > 7558 pts/0 Sl 0:06 \_ /usr/sbin/asterisk -f -U asterisk -G > asterisk -vvvg -c > 7578 pts/0 S 0:00 \_ mpg123 -q -s --mono -r 8000 -b 2048 > -f 8192 Fermeture.mp3 > 7580 pts/0 S 0:00 | \_ mpg123 -q -s --mono -r 8000 -b > 2048 -f 8192 Fermeture.mp3 > > > find /var/lib/asterisk/moh/ > > /var/lib/asterisk/moh/Horaires/Fermeture.mp3 > > ll > -rw-r--r-- 1 asterisk asterisk 1396613 Nov 24 2010 > /var/lib/asterisk/moh/Horaires/Fermeture.mp3-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130617/c3f29733/attachment.htm>