Details

    • Type: New Feature New Feature
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Core/CodecInterface
    • Labels:
      None
    • Mantis ID:
      2536
    • Regression:
      No

      Description

      This patch makes it possible to control the quality of the speex codec from a configuration file [codecs.conf]

      [speex]
      ;0-10
      quality => 3
      ;0-10
      complexity => 4
      ; true / false
      enhancement => true
      ; true / false
      vad => false
      ; true / false
      vbr => false
      ;0-10
      abr_quality => 5
      ; true / false
      abr => false
      ;0-10
      vbr_quality => 5
      ; true / false
      dtx => false

                • ADDITIONAL INFORMATION ******

      If you find use in any of the asterisk features I
      have made, Go Ahead! Send me some money at paypal anthmct@yahoo.com

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        zoa added a comment -

        But what will it negotiate to ?

        And cant we have some kind of aliases in codec.conf that we can use in for example sip.conf ? Even if we cannot include this alias into the stuff we send to the other side for negotiating.

        That way we can set it per peer, as that will be needed if you have a lot of customers.

        Show
        zoa added a comment - But what will it negotiate to ? And cant we have some kind of aliases in codec.conf that we can use in for example sip.conf ? Even if we cannot include this alias into the stuff we send to the other side for negotiating. That way we can set it per peer, as that will be needed if you have a lot of customers.
        Hide
        stevekstevek added a comment -

        " But what will it negotiate to ?"

        OK, maybe I can clarify:

        1) The speex settings are set on the encode side: speex decoders can decode any valid speex bit-stream: This is just like mp3 encoders: You can encode with whatever encoder and settings you want, and any decoder can decode them.

        2) These settings, in particular, will tell asterisk how to encode speex. So, if you set these settings on server (A), it will affect all outgoing speex streams. It will not affect how other servers using speex send things to you. They'll use either the default settings, or whatever they're configured to send.

        ==================================

        Why would you want to change the remote side? To save incoming bandwidth?

        A future idea I have, for iax2, is to have receiver reports. Using these, (as well as RTCP reciever reports), one could do stuff like automatically switch to lower-bandwidth codecs (or codec settings) if you detect packet loss, etc..

        Show
        stevekstevek added a comment - " But what will it negotiate to ?" OK, maybe I can clarify: 1) The speex settings are set on the encode side: speex decoders can decode any valid speex bit-stream: This is just like mp3 encoders: You can encode with whatever encoder and settings you want, and any decoder can decode them. 2) These settings, in particular, will tell asterisk how to encode speex. So, if you set these settings on server (A), it will affect all outgoing speex streams. It will not affect how other servers using speex send things to you. They'll use either the default settings, or whatever they're configured to send. ================================== Why would you want to change the remote side? To save incoming bandwidth? A future idea I have, for iax2, is to have receiver reports. Using these, (as well as RTCP reciever reports), one could do stuff like automatically switch to lower-bandwidth codecs (or codec settings) if you detect packet loss, etc..
        Hide
        Mark Spencer added a comment -

        Cleaned up and added to CVS

        Show
        Mark Spencer added a comment - Cleaned up and added to CVS
        Hide
        Russell Bryant added a comment -

        new feature - not included in the 1.0 branch

        Show
        Russell Bryant added a comment - new feature - not included in the 1.0 branch
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 3868

        U trunk/codecs/codec_speex.c
        A trunk/configs/codecs.conf.sample

        ------------------------------------------------------------------------
        r3868 | markster | 2008-01-15 15:08:35 -0600 (Tue, 15 Jan 2008) | 2 lines

        Add configurable options to Speex (from anthm) (bug ASTERISK-2495)

        ------------------------------------------------------------------------

        http://svn.digium.com/view/asterisk?view=rev&revision=3868

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 3868 U trunk/codecs/codec_speex.c A trunk/configs/codecs.conf.sample ------------------------------------------------------------------------ r3868 | markster | 2008-01-15 15:08:35 -0600 (Tue, 15 Jan 2008) | 2 lines Add configurable options to Speex (from anthm) (bug ASTERISK-2495 ) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=3868

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development