Asterisk
  1. Asterisk
  2. ASTERISK-3276

[patch] PREFERRED_CODEC - codec preference override

    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/General
    • Labels:
      None
    • Mantis ID:
      3346
    • Regression:
      No

      Description

      This patch adds a new channel variable, "PREFERRED_CODEC" to chan_sip and chan_iax2. If the variable is set, then when a call is initiated, that codec will be the preferred one (prefcodec in SIP, format in IAX2), if it's part of the capabilities.

      When setting the variable from the dialplan, be sure to use a leading "_" so that the variable is copied over to the new channel.

                • ADDITIONAL INFORMATION ******

      [Disclaimer faxed a few minutes ago]

      Example usage, assuming allow=all:

      exten => 1,1,SetVar(_PREFERRED_CODEC=lpc10)
      exten => 1,2,Dial(IAX2/foo/123)

      LPC10 will now be the preferred codec for that call.

        Activity

        Hide
        Michael Jerris added a comment -

        poke. Where does this one stand?

        Show
        Michael Jerris added a comment - poke. Where does this one stand?
        Hide
        Kevin P. Fleming (Inactive) added a comment -

        Like all the other complex projects, it's waiting for everything else to get out of the way...

        Show
        Kevin P. Fleming (Inactive) added a comment - Like all the other complex projects, it's waiting for everything else to get out of the way...
        Hide
        Michael Jerris added a comment -

        suspending due to no activity, re-open when there is updated code for review. Thanks.

        Show
        Michael Jerris added a comment - suspending due to no activity, re-open when there is updated code for review. Thanks.
        Hide
        Michael Jerris added a comment -

        just a note that I closed this one out for now due to no activity.

        Show
        Michael Jerris added a comment - just a note that I closed this one out for now due to no activity.
        Hide
        Digium Subversion added a comment -

        Repository: dahdi
        Revision: 559

        U trunk/fxotune.c

        ------------------------------------------------------------------------
        r559 | markster | 2008-06-07 10:47:37 -0500 (Sat, 07 Jun 2008) | 2 lines

        Fix FXOTUNE to know which zaptel.h to use (bug ASTERISK-3276)

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

        http://svn.digium.com/view/dahdi?view=rev&revision=559

        Show
        Digium Subversion added a comment - Repository: dahdi Revision: 559 U trunk/fxotune.c ------------------------------------------------------------------------ r559 | markster | 2008-06-07 10:47:37 -0500 (Sat, 07 Jun 2008) | 2 lines Fix FXOTUNE to know which zaptel.h to use (bug ASTERISK-3276 ) ------------------------------------------------------------------------ http://svn.digium.com/view/dahdi?view=rev&revision=559

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development