Contrib/scripts/get_mp3_source.sh

i am trying to install asterisk 18 , i failed several times to complete, every time i stuck up in the command.
contrib/scripts/get_mp3_source.sh , which it never runs successfully or it gives error , connection reset , command not found ,
pls help to get this command to run successfully .

iam using redhat 8.3 .

Show what actually happens and is output.

I’m using RHEL 9.3 Installation worked just fine, why don’t you switch to a more newer version.
If you are stuck on " contrib/scripts/get_mp3_source.sh" skip that step for now. Go tru with the rest of the configurations. Then come back to it.

yes, that’s what i did , i went to menuselect , deselect the format_mp3 and completed the installation.

i get this below error :

[root@saps scripts]# get_mp3_source.sh
svn: E170013: Unable to connect to a repository at URL ‘https://svn.digium.com/svn/thirdparty/mp3/trunk
svn: E670002: Name or service not known

but , by doing a wget to the url , it get connected.

[root@saps scripts]# wget https://svn.digium.com/svn/thirdparty/mp3/trunk
–2024-04-20 14:01:16-- https://svn.digium.com/svn/thirdparty/mp3/trunk
Resolving svn.digium.com (svn.digium.com)… 165.22.184.19, 2604:a880:400:d0::14:9001
Connecting to svn.digium.com (svn.digium.com)|165.22.184.19|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://svn.digium.com/svn/thirdparty/mp3/trunk/ [following]
–2024-04-20 14:01:17-- http://svn.digium.com/svn/thirdparty/mp3/trunk/
Connecting to svn.digium.com (svn.digium.com)|165.22.184.19|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://svn.digium.com/svn/thirdparty/mp3/trunk/ [following]
–2024-04-20 14:01:17-- https://svn.digium.com/svn/thirdparty/mp3/trunk/
Connecting to svn.digium.com (svn.digium.com)|165.22.184.19|:443… connected.

the command is not succesfull.

pls help

There’s been no other reports of this that I’ve seen or received. Do you have multiple upstream DNS servers, with one or more being non-functional or having issues? Does the get_mp3_source.sh script always exhibit this? Does:

svn ls https://svn.digium.com/svn/thirdparty/mp3/trunk

Work manually?

[root@saps asterisk]# svn ls https://svn.digium.com/svn/thirdparty/mp3/trunk
MPGLIB_README
MPGLIB_TODO
Makefile
README
common.c
dct64_i386.c
decode_i386.c
decode_ntom.c
huffman.h
interface.c
layer3.c
mpg123.h
mpglib.h
tabinit.c
[root@saps asterisk]#

And the script still does not function?

[root@saps asterisk-18.22.0]# contrib/scripts/get_mp3_source.sh


The MP3 source code appears to already be present and does not
need to be downloaded.


grep: addons/mp3/interface.c: No such file or directory
sed: can’t read addons/mp3/interface.c: No such file or directory

i don’t know how the MP3 source code already present, this command was NOT sucessfull .
during , but while troubleshooting i updated the OS .

It would seem to be an incomplete download then, in which case deleting “addons/mp3” would remove it and then executing the script again would re-download.

---> IMPORTANT INFORMATION ABOUT format_mp3 <---    ***

*** format_mp3 has been selected to be installed, but the ***
*** MP3 decoder library has not yet been downloaded into ***
*** the source tree. To do so, please run the following ***
*** command: ***


*** $ contrib/scripts/get_mp3_source.sh

Installing modules from addons…
/usr/bin/install: cannot stat ‘format_mp3.so’: No such file or directory
make[1]: *** [/root/asterisk-18.22.0/Makefile.moddir_rules:109: install] Error 1
make: *** [Makefile:587: addons-install] Error 2

[root@saps asterisk-18.22.0]# contrib/scripts/get_mp3_source.sh
svn: E170013: Unable to connect to a repository at URL ‘https://svn.digium.com/svn/thirdparty/mp3/trunk
svn: E000104: Error running context: Connection reset by peer
[root@saps asterisk-18.22.0]#

[root@saps asterisk-18.22.0]# wget ‘https://svn.digium.com/svn/thirdparty/mp3/trunk
–2024-04-29 14:36:22-- https://svn.digium.com/svn/thirdparty/mp3/trunk
Resolving svn.digium.com (svn.digium.com)… 165.22.184.19, 2604:a880:400:d0::14:9001
Connecting to svn.digium.com (svn.digium.com)|165.22.184.19|:443… connected.

this script (/get_mp3_source.sh ) is still giving problem,is there any alternate way get this script working.

The specific command it is doing is:

svn export https://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3

From the root of the Asterisk directory. If you can do it manually, then it would work. There are no releases of it, and it’s not on Github currently.

[root@saps asterisk-18.22.0]# pwd
/root/asterisk-18.22.0

[root@saps asterisk-18.22.0]# svn export https://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3
svn: E170013: Unable to connect to a repository at URL ‘https://svn.digium.com/svn/thirdparty/mp3/trunk
svn: E000104: Error running context: Connection reset by peer

[root@saps asterisk-18.22.0]# wget svn export https://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3
–2024-04-29 15:41:58-- http://svn/
Resolving svn (svn)… failed: Name or service not known.
wget: unable to resolve host address â€کsvn’
–2024-04-29 15:41:58-- http://export/
Resolving export (export)… failed: Name or service not known.
wget: unable to resolve host address â€کexport’
–2024-04-29 15:41:58-- https://svn.digium.com/svn/thirdparty/mp3/trunk
Resolving svn.digium.com (svn.digium.com)… 165.22.184.19, 2604:a880:400:d0::14:9001
Connecting to svn.digium.com (svn.digium.com)|165.22.184.19|:443… connected.

You can’t use wget, it’s an SVN repository. You could try to do it on another network, and then tarball up the contents of addons/mp3 and transfer it over.