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.

i am running the usecallmanager.nz the asterisk patch for cisco phones, i got struck inbetween
the command did not complete so is the patch.

because of this error , i tried multiple times,i could not . even the asterisk server is conencted directly to internet with out any FW or proxy. i dont what developer thought of giving this BAD url which always give problem…

i need to revert back the snapshot, waste to 2 days of work.

Generating input for menuselect …
menuselect/menuselect --check-deps menuselect.makeopts
menuselect/menuselect --check-deps menuselect.makeopts

  • menuselect/menuselect --disable-category MENUSELECT_CORE_SOUNDS --disable-category MENUSELECT_EXTRA_SOUNDS --disable-category MENUSELECT_MOH --enable-category MENUSELECT_ADDONS --enable res_pktccops --enable chan_mgcp --enable chan_motif --enable app_meetme --enable app_page --enable res_snmp --enable res_srtp --disable BUILD_NATIVE --enable DONT_OPTIMIZE --enable res_chan_stats --enable res_endpoint_stats --enable codec_opus --enable codec_silk --enable codec_siren7 --enable codec_siren14 --enable app_macro --enable app_voicemail_odbc --enable app_voicemail_imap --disable chan_misdn menuselect.makeopts
  • contrib/scripts/get_mp3_source.sh

svn: E175002: Unable to connect to a repository at URL ‘https://svn.digium.com/svn/thirdparty/mp3/trunk
svn: E175002: OPTIONS of ‘https://svn.digium.com/svn/thirdparty/mp3/trunk’: SSL handshake failed: SSL socket read failed (https://svn.digium.com)
error: Bad exit status from /var/tmp/rpm-tmp.2uKd6z (%build)

You are the only individual who has reported any issue with it, and it’s the same server used for everything - sound downloads, Asterisk downloads, binary module downloads. I think any issue is something specific to your connectivity.

i am extremely sorry to bother you on the same issue , pls help me with some other alternative way to complete the command , this is the 6th time i struck up , i checked with my FW engineer ,no issue with connectivity, iam installing SNG7-PBX16-64bit-2302-1.iso and following this url : UseCallManager-FreePBX-2024-Commands.md · GitHub .

i got struck up again in this command :
rpmbuild -ba ~/rpmbuild/SPECS/asterisk20.spec

i could not complete the installation …

I have no further information or input to give. I don’t know spec files, and I already stated you can download the repo elsewhere, tarball it up, and place it.