[asterisk-users] Asterisk offline compiling with get_mp3_source.sh

2013-07-15 Thread leonardo collantes
I need to make a Asterisk 18.0's offline compiling,  SVN mp3 support
sources downloading does't particulary works cause my asterisk is in an
isolated network with NO network access whatsoever, I ve read this thread (
http://lists.digium.com/pipermail/asterisk-users/2013-June/279298.html) but
I 'm not understading one thing, because I download the file and run the
script but there is no asterisk-contrib-mp3.tar.gz in my tmp folder


--- contrib/scripts/get_mp3_source.sh.orig  2013-06-04 12:41:08.222602824 
+0200
+++ contrib/scripts/get_mp3_source.sh   2013-06-04 12:40:45.218602846 +0200
@@ -9,6 +9,15 @@
 exit 1
 fi

+LOCAL_COPY=/tmp/asterisk-contrib-mp3.tar.gz
+if [ -f ${LOCAL_COPY} ]; then
+echo ***
+echo Found ${LOCAL_COPY} - unpacking it, not downloading
+echo ***
+tar xzf ${LOCAL_COPY}
+exit 0
+fi
+
 svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@

 exit 0




and i don't know what to do with the mpglib file




asterisk (1:1.8.13.1~dfsg-3) mpglib Summary

 addons/mp3/MPGLIB_README |   39
 addons/mp3/MPGLIB_TODO   |2
 addons/mp3/Makefile  |   24
 addons/mp3/README|1
 addons/mp3/common.c  |  267 ++
 addons/mp3/dct64_i386.c  |  335 +++
 addons/mp3/decode_i386.c |  153 +++
 addons/mp3/decode_ntom.c |  219 +
 addons/mp3/huffman.h |  332 +++
 addons/mp3/interface.c   |  323 +++
 addons/mp3/layer3.c  | 2029 +++
 addons/mp3/mpg123.h  |  132 +++
 addons/mp3/mpglib.h  |   75 +
 addons/mp3/tabinit.c |   81 +
 14 files changed, 4012 insertions(+)
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk offline compiling with get_mp3_source.sh

2013-07-15 Thread Carlos Rojas
Hi

You must copy the directory mp3, to the addons directory, where you put the
source asterisk code, and recompile it, again.

Kind Regards




On Mon, Jul 15, 2013 at 9:25 AM, leonardo collantes leonardo07...@gmail.com
 wrote:

 I need to make a Asterisk 18.0's offline compiling,  SVN mp3 support
 sources downloading does't particulary works cause my asterisk is in an
 isolated network with NO network access whatsoever, I ve read this thread (
 http://lists.digium.com/pipermail/asterisk-users/2013-June/279298.html)
 but I 'm not understading one thing, because I download the file and run
 the script but there is no asterisk-contrib-mp3.tar.gz in my tmp folder


 --- contrib/scripts/get_mp3_source.sh.orig2013-06-04 12:41:08.222602824 
 +0200
 +++ contrib/scripts/get_mp3_source.sh 2013-06-04 12:40:45.218602846 +0200
 @@ -9,6 +9,15 @@
  exit 1
  fi

 +LOCAL_COPY=/tmp/asterisk-contrib-mp3.tar.gz
 +if [ -f ${LOCAL_COPY} ]; then
 +echo ***
 +echo Found ${LOCAL_COPY} - unpacking it, not downloading
 +echo ***
 +tar xzf ${LOCAL_COPY}
 +exit 0
 +fi
 +
  svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@

  exit 0




 and i don't know what to do with the mpglib file




 asterisk (1:1.8.13.1~dfsg-3) mpglib Summary

  addons/mp3/MPGLIB_README |   39
  addons/mp3/MPGLIB_TODO   |2
  addons/mp3/Makefile  |   24
  addons/mp3/README|1
  addons/mp3/common.c  |  267 ++
  addons/mp3/dct64_i386.c  |  335 +++
  addons/mp3/decode_i386.c |  153 +++
  addons/mp3/decode_ntom.c |  219 +
  addons/mp3/huffman.h |  332 +++
  addons/mp3/interface.c   |  323 +++
  addons/mp3/layer3.c  | 2029 
 +++
  addons/mp3/mpg123.h  |  132 +++
  addons/mp3/mpglib.h  |   75 +
  addons/mp3/tabinit.c |   81 +
  14 files changed, 4012 insertions(+)




 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk offline compiling with get_mp3_source.sh

2013-07-15 Thread A J Stiles
On Monday 15 July 2013, leonardo collantes wrote:
 I need to make a Asterisk 18.0's offline compiling,  SVN mp3 support
 sources downloading does't particulary works cause my asterisk is in an
 isolated network with NO network access whatsoever, I ve read this thread (
 http://lists.digium.com/pipermail/asterisk-users/2013-June/279298.html) but
 I 'm not understading one thing, because I download the file and run the
 script but there is no asterisk-contrib-mp3.tar.gz in my tmp folder

You need to download asterisk-contrib-mp3.tar.gz from somewhere on a machine 
with Internet access, save it on a USB stick and save the file in /tmp/ .  
Alternatively, you could go to a connected machine, and run

$ mkdir /tmp/mp3
$ svn export http://svn.digium.com/svn/thirdparty/mp3/trunk /tmp/mp3
$ cp -a /tmp/mp3 /media/usb0/

When finished, cp -a the mp3 folder to /usr/src/asterisk/addons/ on the 
Asterisk machine.


If all else fails, you can set up a temporary Internet connection by plugging 
in a mobile phone and tethering to it!  If there is wi-fi on site, you won't 
even run up any data charges.

-- 
AJS

Answers come *after* questions.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users