Details

    • Type: New Feature New Feature
    • Status: Open
    • Severity: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Channels/NewFeature
    • Labels:
      None
    • Mantis ID:
      15484
    • Regression:
      No

      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 :

      1. wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.2e.tar.gz [^]
      2. tar zxvf rtmpdump-2.2e.tar.gz
      3. cd rtmpdump-2.2e/
      4. make
      5. make install

      To install Asterisk :

      1. svn co http://svn.digium.com/svn/asterisk/team/phsultan/rtmp-support asterisk-rtmp
      2. cd asterisk-rtmp
      3. ./configure
      4. make menuselect
        [check here that chan_rtmp is eligible for installation]
      5. make
      6. make install
                • ADDITIONAL INFORMATION ******

      Audio packets only are supported for the moment.

      A documentation file is available (doc/rtmp.txt), as well as a sample configuration file (configs/rtmp.conf.sample).

      1. deleolajide-chan_rtmp.c
        22 kB
        Dele Olajide
      2. jtodd-sip-debug.txt
        39 kB

        Activity

        Hide
        tatiana added a comment -

        Hi, I am testing this channel with red 5 server and with eyebeam
        I get to see a movie that is in oflademo application from eyebeam , with this in extensions
        exten => 201,n,FFPlayback(rtmp://localhost:1935/oflaDemo/avatar)

        But now, I want to see the live stream that I publish with demo Publisher on the eyebeam with this url rmp://localhost:1935/oflaDemo/publisher/

        but I can't..!! I think the url is wrong but I make some testing and I don't know what is the correct url

        Could someone help me please? I am new on this.

        Show
        tatiana added a comment - Hi, I am testing this channel with red 5 server and with eyebeam I get to see a movie that is in oflademo application from eyebeam , with this in extensions exten => 201,n,FFPlayback(rtmp://localhost:1935/oflaDemo/avatar) But now, I want to see the live stream that I publish with demo Publisher on the eyebeam with this url rmp://localhost:1935/oflaDemo/publisher/ but I can't..!! I think the url is wrong but I make some testing and I don't know what is the correct url Could someone help me please? I am new on this.
        Hide
        Grzegorz Kocyk added a comment -

        Sound works great with Dial to rtmp channel, but is it possible to handle video also?

        Show
        Grzegorz Kocyk added a comment - Sound works great with Dial to rtmp channel, but is it possible to handle video also?
        Hide
        Chris Mendes added a comment -

        @Grzegorz Kocyk: Its currently audio only I believe. It was mentioned earlier in the thread.

        I'm having an issue when using the RTMP channel. The connections never seem to close. I have been running live streams for the weekend and had about 7000 calls come through in the rtmp channel. Started having an issue with asterisk not being able to open any more connections. I had to do: ulimit -n 65000 since by default its 1024. I have not had any other issues so far except for needing to increase that.

        I can view the open of connections at the moment with: ls -l /proc/<PID of Asterisk>/fd | wc -l
        Its showing about 3000 and thats about how many streams were started since asterisk started. Is there something that is not closing properly, or any suggestions on what to look into? Increasing the connection limits would only be a temporary fix. I'm using FMS and that seems to be closing the streams on that side.

        Show
        Chris Mendes added a comment - @Grzegorz Kocyk: Its currently audio only I believe. It was mentioned earlier in the thread. I'm having an issue when using the RTMP channel. The connections never seem to close. I have been running live streams for the weekend and had about 7000 calls come through in the rtmp channel. Started having an issue with asterisk not being able to open any more connections. I had to do: ulimit -n 65000 since by default its 1024. I have not had any other issues so far except for needing to increase that. I can view the open of connections at the moment with: ls -l /proc/<PID of Asterisk>/fd | wc -l Its showing about 3000 and thats about how many streams were started since asterisk started. Is there something that is not closing properly, or any suggestions on what to look into? Increasing the connection limits would only be a temporary fix. I'm using FMS and that seems to be closing the streams on that side.
        Hide
        Lorenzo Miniero added a comment -

        I get segfaults both trying to originate a call using chan_rtmp and using FFplayback, in both cases after a few seconds. Is the FFmpeg version the only plausible cause for this? I also have librtmp 2.4 which is higher than the suggested version (2.3), I don't know if this may be related.

        Show
        Lorenzo Miniero added a comment - I get segfaults both trying to originate a call using chan_rtmp and using FFplayback, in both cases after a few seconds. Is the FFmpeg version the only plausible cause for this? I also have librtmp 2.4 which is higher than the suggested version (2.3), I don't know if this may be related.
        Hide
        Juan Carlos Castro y Castro added a comment -

        I want to implement server functionality so RTMP clients can authenticate against us. Does librtmp have support for that?

        Show
        Juan Carlos Castro y Castro added a comment - I want to implement server functionality so RTMP clients can authenticate against us. Does librtmp have support for that?

          Dates

          • Created:
            Updated:

            Development