streaming video with asterisk

paguira

Joined
Jan 17, 2008
Messages
127
Likes
0
Points
0
#1
Hello,
Is it possible to play streaming video from a camera network and see this movie with x-lite and possibly protect this extension with a PIN.
 

paguira

Joined
Jan 17, 2008
Messages
127
Likes
0
Points
0
#2
My installation method is as follows:

install.sh
Code:
#!/bin/sh

echo "+--------------------------------------------------------+"
echo "|  Install Streaming Video  for Elastix                  |"
echo "|                                                        |"
echo "|  By paguira                                            |"
echo "|                                                        |"
echo "+--------------------------------------------------------+"

##### Installation    #####
while [ "$q_install" != "y" ] && [ "$q_install" != "n" ] ;do
        echo
	echo -n "Voulez-vous installer le streaming video pour Elastix ? [y/n]"        
	read q_install
done

if [ "$q_install" != "y" ];then 
	echo
	exit
fi
#####    Fin    #####

###################################
#         Configuration           #
###################################



echo "+----------------------------------------------------------------+"
echo "|                     Appuyer sur <Enter>                        |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|         Creation dur rep tar       |"
echo "+------------------------------------+"
echo " "

cd /usr/src
mkdir tar

echo " "
echo "+------------------------------------+"
echo "|         Installation des dep       |"
echo "+------------------------------------+"
echo " "

yum -y install subversion openssl openssl-devel gettext-devel expat-devel curl-devel libtool SDL SDL-devel


echo " "
echo "+------------------------------------+"
echo "|         Installation de yasm       |"
echo "+------------------------------------+"
echo " "

YASM_RPM="http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/yasm-0.6.2-1.el5.rf.i386.rpm"
wget $YASM_RPM
rpm -ivh yasm-0.6.2-1.el5.rf.i386.rpm

echo "+----------------------------------------+"
echo "|    Appuyer sur <Enter> Inst yasm       |"
echo "+----------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|      Installation de AUTOCONF      |"
echo "+------------------------------------+"
echo " "

AUTOCONF_VERSION="2.60"
AUTOCONF_SRC="ftp://ftp.gnu.org/gnu/autoconf/autoconf-$AUTOCONF_VERSION.tar.gz"

cd /usr/src/tar
wget $AUTOCONF_SRC
tar -xzvf autoconf-$AUTOCONF_VERSION.tar.gz
mv /usr/src/tar/autoconf-$AUTOCONF_VERSION /usr/src/autoconf
cd /usr/src/autoconf
./configure
make clean
make && make install

echo "+----------------------------------------------------------------+"
echo "|                     Appuyer sur <Enter>                        |"
echo "+----------------------------------------------------------------+"
echo " "
read


echo " "
echo "+------------------------------------+"
echo "|         Installation de GIT        |"
echo "+------------------------------------+"
echo " "

GIT_VERSION="1.6.3.3"
GIT_SRC="http://kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz"

cd /usr/src/tar
wget $GIT_SRC
tar xvfz git-$GIT_VERSION.tar.gz
cd /usr/src/tar/git-$GIT_VERSION
make clean
make && make install

#make prefix=/usr/local all
#make prefix=/usr/local install

echo "+----------------------------------------------------------------+"
echo "|       Appuyer sur <Enter> Inst GIT                             |"
echo "+----------------------------------------------------------------+"
echo " "
read


echo " "
echo "+------------------------------------+"
echo "|         Installation mpeg2dec      |"
echo "+------------------------------------+"
echo " "

MPEG2DEC_VERSION="0.4.1"
MPEG2DEC_SRC="http://libmpeg2.sourceforge.net/files/mpeg2dec-$MPEG2DEC_VERSION.tar.gz"

cd /usr/src/tar
wget $MPEG2DEC_SRC
tar -xvzf mpeg2dec-$MPEG2DEC_VERSION.tar.gz
mv /usr/src/tar/mpeg2dec-$MPEG2DEC_VERSION /usr/src/mpeg2dec
cd /usr/src/mpeg2dec
./configure
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|       Appuyer sur <Enter> Inst mpeg2dec                        |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|         Installation AMRnb         |"
echo "+------------------------------------+"
echo " "

#AMRNB_VERSION="6.1.0.4"
AMRNB_VERSION="7.0.0.2"
AMRNB_SRC="http://ftp.penguin.cz/pub/users/utx/amr/amrnb-$AMRNB_VERSION.tar.bz2"

cd /usr/src/tar
#wget $AMRNB_SRC
#tar -jxvf amrnb-$AMRNB_VERSION.tar.bz2
#mv /usr/src/tar/amrnb-$AMRNB_VERSION /usr/src/amrnb
#cd /usr/src/amrnb
#./configure
#make clean 
#make && make install
#ldconfig

echo "+----------------------------------------------------------------+"
echo "|          Appuyer sur <Enter> Inst AMRnb                        |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo "+------------------------------------+"
echo "|         Installation AMRwb         |"
echo "+------------------------------------+"
echo " "

#AMRWB_VERSION="7.0.0.1"
AMRNB_VERSION="7.0.0.3"
AMRWB_SRC="http://ftp.penguin.cz/pub/users/utx/amr/amrwb-$AMRWB_VERSION.tar.bz2"

cd /usr/src/tar
#wget $AMRWB_SRC
#tar -jxvf amrwb-$AMRWB_VERSION.tar.bz2
#mv /usr/src/tar/amrwb-$AMRWB_VERSION /usr/src/amrwb
#cd /usr/src/amrwb
#./configure
#make clean 
#make && make install
#ldconfig

echo "+----------------------------------------------------------------+"
echo "|            Appuyer sur <Enter> Inst AMRwb                      |"
echo "+----------------------------------------------------------------+"
echo " "
read


echo "+----------------------------------------+"
echo "|         Installation opencore-amr      |"
echo "+----------------------------------------+"
echo " "

cd /usr/src
git clone --depth=1 git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr 
cd /usr/src/opencore-amr
make clean
make
make install

echo "+----------------------------------------------------------------+"
echo "|            Appuyer sur <Enter> Inst opencore-amr               |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|           Installation LAME        |"
echo "+------------------------------------+"
echo " "

LAME_VERSION="3.97"
LAME_SRC="http://ovh.dl.sourceforge.net/sourceforge/lame/lame-$LAME_VERSION.tar.gz"

cd /usr/src/tar
wget $LAME_SRC
tar -xvzf lame-$LAME_VERSION.tar.gz
mv /usr/src/tar/lame-$LAME_VERSION /usr/src/lame
cd /usr/src/lame
./configure
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|           Appuyer sur <Enter> Inst Lame                        |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|         Installation LIBOGG        |"
echo "+------------------------------------+"
echo " "

LIBOGG_VERSION="1.1.3"
LIBOGG_SRC="http://downloads.xiph.org/releases/ogg/libogg-$LIBOGG_VERSION.tar.gz"

cd /usr/src/tar
wget $LIBOGG_SRC
tar -xvzf libogg-$LIBOGG_VERSION.tar.gz
mv /usr/src/tar/libogg-$LIBOGG_VERSION /usr/src/libogg
cd /usr/src/libogg
./configure
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|             Appuyer sur <Enter> Inst Libogg                    |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|      Installation LIBVORBIS        |"
echo "+------------------------------------+"
echo " "

LIBVORBIS_VERSION="1.2.0"
LIBVORBIS_SRC="http://downloads.xiph.org/releases/vorbis/libvorbis-$LIBVORBIS_VERSION.tar.gz"

cd /usr/src/tar
wget $LIBVORBIS_SRC
tar -xvzf libvorbis-$LIBVORBIS_VERSION.tar.gz
mv /usr/src/tar/libvorbis-$LIBVORBIS_VERSION /usr/src/libvorbis
cd /usr/src/libvorbis
./configure --with-ogg-libraries=/usr/local/lib
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|          Appuyer sur <Enter> Inst Libvorbis                    |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|          Installation FAAC         |"
echo "+------------------------------------+"
echo " "

FAAC_VERSION="1.25"
FAAC_SRC="http://heanet.dl.sourceforge.net/sourceforge/faac/faac-$FAAC_VERSION.tar.gz"

cd /usr/src/tar
wget $FAAC_SRC
tar -xvzf faac-$FAAC_VERSION.tar.gz
mv /usr/src/tar/faac /usr/src/faac
cd /usr/src/faac
sed -i '/[2de].M/d' configure.in
echo "AC_OUTPUT(common/Makefile common/mp4v2/Makefile libfaac/Makefile frontend/Makefile include/Makefile Makefile)" >> configure.in
autoreconf -vif 
./configure --enable-shared --with-mp4v2=no
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|                 Appuyer sur <Enter> Inst Faac                  |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|          Installation x264         |"
echo "+------------------------------------+"
echo " "

cd /usr/src
#svn co svn://svn.videolan.org/x264/trunk x264

git clone git://git.videolan.org/x264.git

cd /usr/src/x264
./configure --prefix=/usr
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|              Appuyer sur <Enter> Inst x264                     |"
echo "+----------------------------------------------------------------+"
read

echo " "
echo "+------------------------------------+"
echo "|          Installation SRTP         |"
echo "+------------------------------------+"
echo " "

SRTP_VERSION="1.4.4"
SRTP_SRC="http://switch.dl.sourceforge.net/sourceforge/srtp/srtp-$SRTP_VERSION.tgz"

cd /usr/src/tar
wget $SRTP_SRC
tar -xvzf srtp-$SRTP_VERSION.tgz
mv /usr/src/tar/srtp /usr/src/srtp
cd /usr/src/srtp
./configure
make clean
make && make install
# make runtest apres make

echo "+----------------------------------------------------------------+"
echo "|                Appuyer sur <Enter> Inst SRTP                   |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|          Installation XVID         |"
echo "+------------------------------------+"
echo " "

XVID_VERSION="1.1.3"
XVID_SRC="http://downloads.xvid.org/downloads/xvidcore-$XVID_VERSION.tar.gz"

cd /usr/src/tar
wget $XVID_SRC
tar -xvzf xvidcore-$XVID_VERSION.tar.gz
mv /usr/src/tar/xvidcore-$XVID_VERSION /usr/src/xvidcore
cd /usr/src/xvidcore/build/generic
./configure
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst XVID                    |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|        Installation TWOLAME        |"
echo "+------------------------------------+"
echo " "

TWOLAME_VERSION="0.3.9"
TWOLAME_SRC="http://hivelocity.dl.sourceforge.net/project/twolame/twolame/0.3.9/twolame-$TWOLAME_VERSION.tar.gz"

cd /usr/src/tar
wget $TWOLAME_SRC
tar -xzvf twolame-$TWOLAME_VERSION.tar.gz
mv /usr/src/tar/twolame-$TWOLAME_VERSION /usr/src/twolame
cd /usr/src/twolame
./configure
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst Twolame                 |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|         Installation FFMPEG        |"
echo "+------------------------------------+"
echo " "

cd /usr/src
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-libmp3lame --enable-libfaac --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb  --enable-shared --enable-pthreads --enable-gpl  --enable-encoder=h263 --enable-demuxer=mpegps --enable-decoder=mpegvideo --enable-nonfree --enable-version3
#./configure --enable-libmp3lame --enable-libfaac --enable-libx264 --enable-libxvid --enable-libamr-nb --enable-libamr-wb  --enable-shared --enable-pthreads --enable-gpl  --enable-encoder=h263 --enable-demuxer=mpegps --enable-decoder=mpegvideo
#./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libtheora
make clean
make && make install
ldconfig

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst FFMPEG                  |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|        Installation MPEG4IP        |"
echo "+------------------------------------+"
echo " "

MPEG4IP_VERSION="1.6"
MPEG4IP_SRC="http://ufpr.dl.sourceforge.net/sourceforge/mpeg4ip/mpeg4ip-$MPEG4IP_VERSION.tar.gz"

cd /usr/src/tar
wget $MPEG4IP_SRC
tar -xzvf mpeg4ip-$MPEG4IP_VERSION.tar.gz
mv /usr/src/tar/mpeg4ip-$MPEG4IP_VERSION /usr/src/mpeg4ip
cd /usr/src/mpeg4ip
./bootstrap --disable-player --prefix=/usr --enable-ffmpeg
make clean
make && make install

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst Mpeg4ip                 |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|          Installation FAAD         |"
echo "+------------------------------------+"
echo " "
# APRES MPG4IP

FAAD_VERSION="2.5"
FAAD_SRC="http://kent.dl.sourceforge.net/sourceforge/faac/faad2-$FAAD_VERSION.tar.gz"

cd /usr/src/tar
wget $FAAD_SRC
tar -xvzf faad2-$FAAD_VERSION.tar.gz
mv /usr/src/tar/faad2 /usr/src/faad2
cd /usr/src/faad2

echo > plugins/Makefile.am
echo > plugins/xmms/src/Makefile.am
sed -i '/E_B/d' configure.in
autoreconf -vif

./configure
make clean && make && make install

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst Faad                    |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|          Installation PWLIB        |"
echo "+------------------------------------+"
echo " "

PWLIB_VERSION="v1_10_3"
PWLIB_SRC="http://downloads.sourceforge.net/openh323/pwlib-$PWLIB_VERSION-src-tar.gz"

cd /usr/src/tar
wget $PWLIB_SRC
tar -xzvf pwlib-$PWLIB_VERSION-src-tar.gz
mv /usr/src/tar/pwlib_$PWLIB_VERSION /usr/src/pwlib
cd /usr/src/pwlib
./configure --prefix=/usr
make clean
make && make install

echo "+----------------------------------------------------------------+"
echo "|                Appuyer sur <Enter> Inst Pwlib                  |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|       Installation LIBH324M        |"
echo "+------------------------------------+"
echo " "

cd /usr/src
#svn co http://sip.fontventa.com/svn/asterisk/libh324m libh324m
svn co https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/libh324m libh324m
cd /usr/src/libh324m

sed -i "s|TIFFReverseBits(buffer,len);|// TIFFReverseBits(buffer,len);|" h324m.cpp
make clean
make
cp libh324m.so /usr/lib/libh324m.so
cp include/h324m.h /usr/include/h324m.h

echo "+----------------------------------------------------------------+"
echo "|              Appuyer sur <Enter> Inst LibH324M                 |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|      Installation d ASTERISK       |"
echo "+------------------------------------+"
echo " "

ASTERISK_VERSION="1.4.24"
ASTERISK_SUBVERSION="-1"
ASTERISK_RPM="http://repo.elastix.org/elastix/1/base/SRPMS/asterisk-$ASTERISK_VERSION$ASTERISK_SUBVERSION.src.rpm"

cd /usr/src/
mkdir redhat
wget $ASTERISK_RPM
rpm -ivh asterisk-$ASTERISK_VERSION$ASTERISK_SUBVERSION.src.rpm
cp /usr/src/redhat/SOURCES/asterisk-$ASTERISK_VERSION.tar.gz /usr/src/asterisk-$ASTERISK_VERSION.tar.gz
tar -xvzf asterisk-$ASTERISK_VERSION.tar.gz
mv /usr/src/asterisk-$ASTERISK_VERSION /usr/src/asterisk


echo " "
echo "+------------------------------------+"
echo "|        Installation app_mp4        |"
echo "+------------------------------------+"
echo " "

cd /usr/src
#svn co http://sip.fontventa.com/svn/asterisk/app_mp4 app_mp4
svn co https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/app_mp4/ app_mp4
cp /usr/src/app_mp4/app_mp4.c /usr/src/asterisk/apps/app_mp4.c

echo "app_mp4.so: app_mp4.o" >> /usr/src/asterisk/apps/Makefile
echo "	\$(CC) \$(SOLINK) -o \$@ \${CYGSOLINK} \$< \${CYGSOLIB} -lmp4 -lmp4v2" >> /usr/src/asterisk/apps/Makefile

echo " "
echo "+------------------------------------+"
echo "|         Installation tools         |"
echo "+------------------------------------+"
echo " "

cd /usr/src
#svn co http://sip.fontventa.com/svn/asterisk/tools/ tools
svn co https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/tools/ tools
cd tools
make clean
make

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst tools                   |"
echo "+----------------------------------------------------------------+"
echo " "
read

echo " "
echo "+------------------------------------+"
echo "|        Installation app_rtsp       |"
echo "+------------------------------------+"
echo " "

cd /usr/src
svn co https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/app_rtsp/ app_rtsp
cp /usr/src/app_rtsp/app_rtsp.c /usr/src/asterisk/apps/app_rtsp.c

echo " "
echo "+------------------------------------+"
echo "|     Installation app_transcoder    |"
echo "+------------------------------------+"
echo " "

cd /usr/src
svn co https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/app_transcoder/ app_transcoder
cp /usr/src/app_transcoder/app_transcoder.c /usr/src/asterisk/apps/app_transcoder.c

echo "app_transcoder.so: app_transcoder.o" >> /usr/src/asterisk/apps/Makefile
echo "	\$(CC) \$(SOLINK) -o \$@ \${CYGSOLINK} \$< \${CYGSOLIB} -lavcodec" >> /usr/src/asterisk/apps/Makefile

echo " "
echo "+------------------------------------+"
echo "|       Installation app_h324m       |"
echo "+------------------------------------+"
echo " "

cd /usr/src
svn co https://asteriskvideo.svn.sourceforge.net/svnroot/asteriskvideo/app_h324m/ app_h324m
# Modification ?
cp /usr/src/app_h324m/app_h324m.c /usr/src/asterisk/apps/app_h324m.c

echo "app_h324m.so: app_h324m.o" >> /usr/src/asterisk/apps/Makefile
echo "	\$(CC) \$(SOLINK) -o \$@ \${CYGSOLINK} \$< \${CYGSOLIB} -lh324m" >> /usr/src/asterisk/apps/Makefile








#############################################

cd /usr/src/asterisk/apps
cp /usr/src/redhat/SOURCES/app_rxfax.c /usr/src/asterisk/apps/app_rxfax.c
cp /usr/src/redhat/SOURCES/app_txfax.c /usr/src/asterisk/apps/app_txfax.c
cp /usr/src/redhat/SOURCES/asterisk-1.4-spandsp.patch /usr/src/asterisk/apps/asterisk-1.4-spandsp.patch


#APPNVFAX_SRC="http://nerdvittles.com/aah2/app_nv_faxdetect.c"
#APPNVBACK_SRC="http://www.sems.org/content/download/asterisk/app_nv_backgrounddetect-1.0.6_1.c"

#############################################
#APPRXFAX_SRC="http://www.sems.org/content/download/asterisk/app_rxfax.c"
#APPTXFAX_SRC="http://www.sems.org/content/download/asterisk/app_txfax.c"

# app_nv_faxdetect-1.0.6_1.c et app_nv_backgrounddetect-1.0.6_1.c déjà modifier 
#APPNVFAX_SRC="http://www.sems.org/content/download/asterisk/app_nv_faxdetect-1.0.6_1.c"
#wget $APPNVFAX_SRC
#mv /usr/src/asterisk/apps/app_nv_faxdetect-1.0.6_1.c /usr/src/asterisk/apps/app_nv_faxdetect.c
#APPNVBACK_SRC="http://www.sems.org/content/download/asterisk/app_nv_backgrounddetect-1.0.6_1.c"
#wget $APPNVBACK_SRC
#mv /usr/src/asterisk/apps/app_nv_backgrounddetect-1.0.6_1.c /usr/src/asterisk/apps/app_nv_backgrounddetect.c
#############################################


#wget $APPNVBACK_SRC
#mv /usr/src/asterisk/apps/app_nv_backgrounddetect-1.0.6_1.c /usr/src/asterisk/apps/app_nv_backgrounddetect.c

# Path de pour spanDSP Manuel
cp /usr/src/asterisk/build_tools/menuselect-deps.in /usr/src/asterisk/build_tools/menuselect-deps.in.orig
cp /usr/src/asterisk/configure.ac /usr/src/asterisk/configure.ac.orig
cp /usr/src/asterisk/makeopts.in /usr/src/asterisk/makeopts.in.orig

sed -i "s|RADIUS=@PBX_RADIUS@|RADIUS=@PBX_RADIUS@\nSPANDSP=@PBX_SPANDSP@|" /usr/src/asterisk/build_tools/menuselect-deps.in
sed -i "s|AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])|AST_EXT_LIB_SETUP([RADIUS], [Radius Client], [radius])\nAST_EXT_LIB_SETUP([SPANDSP], [spandsp Library], [spandsp])|" /usr/src/asterisk/configure.ac
sed -i "s|AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])|AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])\nAST_EXT_LIB_CHECK([SPANDSP], [spandsp], [fax_init], [spandsp.h], [-ltiff])|" /usr/src/asterisk/configure.ac
sed -i "s|RADIUS_LIB=@RADIUS_LIB@|RADIUS_LIB=@RADIUS_LIB@\nSPANDSP_INCLUDE=@SPANDSP_INCLUDE@\nSPANDSP_LIB=@SPANDSP_LIB@|" /usr/src/asterisk/makeopts.in
# Path Manuel fin

# Path de pour spanDSP Automatique
#cd /usr/src/asterisk

#patch -p0 < asterisk-1.4-spandsp.patch
# Path Automatique fin

echo "app_rxfax.so : app_rxfax.o" >> /usr/src/asterisk/apps/Makefile
echo "	\$(CC) \$(SOLINK) -o \$@ \$< -lspandsp -ltiff" >> /usr/src/asterisk/apps/Makefile

echo "app_txfax.so : app_txfax.o" >> /usr/src/asterisk/apps/Makefile
echo "	\$(CC) \$(SOLINK) -o \$@ \$< -lspandsp -ltiff" >> /usr/src/asterisk/apps/Makefile


# Path de pour app_nv_faxdetect Manuel

#cp /usr/src/asterisk/apps/app_nv_faxdetect.c /usr/src/asterisk/apps/app_nv_faxdetect.c.original
#sed -i "s|struct localuser *u|//struct localuser *u|" /usr/src/asterisk/apps/app_nv_faxdetect.c
#sed -i "s|LOCAL_USER_ADD(u);|//LOCAL_USER_ADD(u);|" /usr/src/asterisk/apps/app_nv_faxdetect.c
#sed -i "s|LOCAL_USER_REMOVE(u);|//LOCAL_USER_REMOVE(u);|" /usr/src/asterisk/apps/app_nv_faxdetect.c
#sed -i "s|STANDARD_HANGUP_LOCALUSERS;|//STANDARD_HANGUP_LOCALUSERS;|" /usr/src/asterisk/apps/app_nv_faxdetect.c
#echo " " >> /usr/src/asterisk/apps/app_nv_faxdetect.c
#echo "AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, \"Fax detection application\");" >> /usr/src/asterisk/apps/app_nv_faxdetect.c

#cp /usr/src/asterisk/build_tools/menuselect-deps.in /usr/src/asterisk/build_tools/menuselect-deps.in.orig
#sed -i "s|NEWT=@PBX_NEWT@|NEWT=@PBX_NEWT@\nNV_DETECT=@PBX_NV_DETECT@ |" /usr/src/asterisk/build_tools/menuselect-deps.in

# Path Manuel fin

#echo " " >> /usr/src/asterisk/apps/app_nv_faxdetect.c
#echo "AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, \"NV BG Detection Application\");" >> /usr/src/asterisk/apps/app_nv_backgrounddetect.c

# Path de pour app_nv_faxdetect Manuel

echo "+----------------------------------------------------------------+"
echo "| ATTENTION !!! Verifier que le patch a bien fonctionner pour les|"
echo "| fichier \"menuselect-deps.in\" , \"configure.ac\"              |"
echo "| et \"makeopts.in\"                                             |"
echo "+----------------------------------------------------------------+"
read

# Patch
cd /usr/src/asterisk
cp /usr/src/redhat/SOURCES/13892_2.patch /usr/src/asterisk/13892_2.patch
patch -p0 < 13892_2.patch
# Patch fin

#cp /usr/src/asterisk/include/asterisk/plc.h /usr/src/asterisk/include/asterisk/plc.h.original
#rm -Rf /usr/src/asterisk/include/asterisk/plc.h
#cp /usr/src/spandsp/src/spandsp/plc.h /usr/src/asterisk/include/asterisk/plc.h

cd /usr/src/asterisk

#./configure --with-netsnmp --with-ssl --with-spandsp
./configure  --with-ssl --with-spandsp
#make menuselect
make clean
make && make install && make samples && make config

mkdir /var/lib/asterisk/sounds/custom

echo "+----------------------------------------------------------------+"
echo "|               Appuyer sur <Enter> Inst Asterisk                |"
echo "+----------------------------------------------------------------+"
echo " "
read
However I have a problem when compiling asterisk
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#3
Nice work :)

Does the streaming is working?

regards,

rafael
 

paguira

Joined
Jan 17, 2008
Messages
127
Likes
0
Points
0
#4

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#5
Hi Paguira.

Do you have some news about the video streaming?
I would like to see a IP cam from my GXP3410..

Regards
 

mjvd87

Joined
Nov 18, 2010
Messages
3
Likes
0
Points
0
#6
Hello, I'm trying to stream video with RTSP protocol with asterisk. I want connect a
video streaming server with RTSP protocol to the asterisk! Somebody have a tutorial (help document) to configure the elastix or asterisk for this propose?

I have a network camera with 3GPP, with RTSP protocol! I want send the video of network camera to the asterisk extensions. I just test the RTSP protocol of the network camera, sending streaming to the realplayer and quicktime, and works fine! I want make the same thing but to the asterisk extension.

Somebody help me?
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,591
Latest member
dalibor66
Top