[asterisk-bugs] [Asterisk 0015484]: [branch] RTMP support in Asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 1 23:30:53 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15484 
====================================================================== 
Reported By:                phsultan
Assigned To:                phsultan
====================================================================== 
Project:                    Asterisk
Issue ID:                   15484
Category:                   Channels/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Target Version:             1.10
Asterisk Version:           SVN 
JIRA:                       SWP-1477 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-10 07:30 CDT
Last Modified:              2010-09-01 23:30 CDT
====================================================================== 
Summary:                    [branch] RTMP support in Asterisk
Description: 
I created a new branch that implements Adobe's RTMP (Real Time Media
Protocol).

It allows Asterisk to connect as a client to an RTMP media server like
Red5 or FMS (Flash Media Server), and then publish or receive media streams
from such server. I only tested the connection with Red5.

To install the branch, you'll need several libavcodec, included in FFMPEG
version 0.6. Be careful to configure FFMPEG's sources with the
--enable-shared option activated in the configure script.

Prior to install Asterisk, you need to have librtmp on your system.
librtmp is part of the rtmpdump program : http://rtmpdump.mplayerhq.hu/

To install it :
# wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.2e.tar.gz [^]
# tar zxvf rtmpdump-2.2e.tar.gz
# cd rtmpdump-2.2e/
# make
# make install

To install Asterisk :
# svn co http://svn.digium.com/svn/asterisk/team/phsultan/rtmp-support
asterisk-rtmp
# cd asterisk-rtmp
# ./configure
# make menuselect
[check here that chan_rtmp is eligible for installation]
# make
# make install
====================================================================== 

---------------------------------------------------------------------- 
 (0126548) cmendes0101 (reporter) - 2010-09-01 23:30
 https://issues.asterisk.org/view.php?id=15484#c126548 
---------------------------------------------------------------------- 
I'm following the the steps to install but I installed FFMPEG from SVN
instead of the 0.6 release. I've been getting the errors for the chan_rtmp
during the make of asterisk. Couldn't find a solution so far to work but
then saw a document that avcodec_decode_audio2 is depreciated
(http://cekirdek.uludag.org.tr/~ismail/ffmpeg-docs/avcodec_8h.html#d8bc42dbb60426c9fd28cfbf1d7a3c35)
but could not tell what version. I have instead the 0.6 version of FFMPEG
but am still receiving this error.

Generating embedded module rules ...
   [CC] astcanary.c -> astcanary.o
   [LD] astcanary.o -> astcanary
   [CC] chan_agent.c -> chan_agent.o
   [LD] chan_agent.o -> chan_agent.so
   [CC] chan_bridge.c -> chan_bridge.o
   [LD] chan_bridge.o -> chan_bridge.so
   [CC] chan_iax2.c -> chan_iax2.o
   [CC] iax2-parser.c -> iax2-parser.o
   [CC] iax2-provision.c -> iax2-provision.o
   [LD] chan_iax2.o iax2-parser.o iax2-provision.o -> chan_iax2.so
   [CC] chan_local.c -> chan_local.o
   [LD] chan_local.o -> chan_local.so
   [CC] chan_multicast_rtp.c -> chan_multicast_rtp.o
   [LD] chan_multicast_rtp.o -> chan_multicast_rtp.so
   [CC] chan_oss.c -> chan_oss.o
   [CC] console_video.c -> console_video.o
   [CC] vgrabbers.c -> vgrabbers.o
   [CC] console_board.c -> console_board.o
   [LD] chan_oss.o console_video.o vgrabbers.o console_board.o ->
chan_oss.so
   [CC] chan_phone.c -> chan_phone.o
   [LD] chan_phone.o -> chan_phone.so
   [CC] chan_rtmp.c -> chan_rtmp.o
chan_rtmp.c: In function ârtmp_readâ:
chan_rtmp.c:310: warning: the address of âbufâ will always evaluate as
âtrueâ
chan_rtmp.c: In function ârtmp_handle_apacketâ:
chan_rtmp.c:613: warning: âavcodec_decode_audio2â is deprecated
(declared at /usr/local/include/libavcodec/avcodec.h:3390)
   [LD] chan_rtmp.o -> chan_rtmp.so
/usr/bin/ld: /usr/local/lib/librtmp.a(rtmp.o): relocation R_X86_64_32S
against `.rodata' can not be used when making a shared object; recompile
with -fPIC
/usr/local/lib/librtmp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [chan_rtmp.so] Error 1
make: *** [channels] Error 2 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-01 23:30 cmendes0101    Note Added: 0126548                          
======================================================================




More information about the asterisk-bugs mailing list