Ticket #3976 (closed Feature Requests: fixed)

Opened 3 years ago

Last modified 2 years ago

Add codec priority to SIP Settings module

Reported by: mustardman Assigned to: p_lindheimer
Priority: minor Milestone: 2.7
Component: Asterisk SIP Settings Version: 2.6-branch
Keywords: codec prioritization feature Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

I use G722 (High definition audio) on some of my phones. Right now I have to disable the other codecs on the phone or in the individual extension settings. If I do not do that, ulaw gets selected because it is set as the highest priority codec in FreePBX by default. There is currently no way to change that in FreePBX.

The SIP Settings module is the most logical place to add the ability to prioritize codecs. The module already has the ability to select and deselect codecs. It would probably be quite simple to add the ability to re-arrange the order those codecs appear in the sip.conf file.

Change History

01/10/10 17:55:44 changed by mbrevda

  • milestone changed from 2.6 to 2.7.

01/24/10 18:38:01 changed by p_lindheimer

it's a valid request. In the meantime, you can simply do the following in the extension settings:

disallow=all
allow=g722&ulaw

which will put g722 higher.

02/08/10 20:46:50 changed by p_lindheimer

OK, I've got a change that will allow you to do the following. It is not exactly 'obvious' though it is mentioned in the tooltips and results in achieving what you want to accomplish:

  • un-check all the codecs, then hit submit
  • now check the highest priority one and hit submit
  • check the next priority one and hit submit
  • keep doing this for all desired codecs

This will result in a re-ordering of the priorities. Not the most flexible but gets the job done...

checking in momentarily.

02/08/10 20:56:50 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

02/08/11 17:12:22 changed by mbrevda

(In [11321]) really closes #3976

02/08/11 17:17:06 changed by mbrevda

(In [11322]) re #3976; styling touch up

02/09/11 15:25:30 changed by mbrevda

(In [11333]) re #3976 - more drag to sort goodness

02/12/11 18:03:29 changed by p_lindheimer

(In [11349]) merge sort changes from sipsettings to iaxsettings re #3976