Change phones' codec priority through templates

Status
Not open for further replies.

George Ts

Free User
Advanced Certified
Joined
Jul 3, 2017
Messages
184
Reaction score
12
Hello,

We are using latest 15.5 SP6 for our 3cx and latest provisioning templates for our Polycom VVX 4xx,6xx and Yealinks T2xP (version 80502).

We have been trying to change the priority of the G.711a-law codec on the phones, so that it is used first in the SDP. Our target is to change the codec priority via the template, and not by going under Phone Provisioning - - > Codecs for each single extension/phone.

In the Yealinks we have managed to do this, by setting the following parameters:
account.1.codec.1.enable = 1
account.1.codec.1.payload_type = %%payload2%%
account.1.codec.1.priority = 1
account.1.codec.1.rtpmap = %%codec2%%

(We are using codec2 and payload2, which by default seems to apply for G711a-law, instead of codec1 and payload1 which applies for G.711u-law)

Question1:
Is there a more efficient way to do this for the Yealinks?

Now, we are having trouble to set this for the Polycoms however. This is the first entry their provisioning templates:

<Codecspriorities>
<Codecspriority variableName="codec1" priority="1">
<!--The first entry is the selected entry in management console-->
<option value="voice.codecPref.G711_Mu=&quot;1&quot;">PCMU</option>
<option value="voice.codecPref.G711_A=&quot;1&quot;">PCMA</option>
<option value="voice.codecPref.G722=&quot;1&quot;">G722</option>
<option value="voice.codecPref.G729_AB=&quot;1&quot;">G729A/B</option>

Trying to swap the first two lines above so that G711_A goes on top of G711_Mu does not work.

Any ideas?

Thank you,
George
 
@YiannisH_3CX so, I understand that the only way to do this massively, is to select all the extensions, Edit those and prioritize the PCMA codec. There is no way to massively provision all phones to use PCMA first by editing the templates. Is that correct? If so, please feel free to close this thread.

Regards,
George
 
Editing the template will not work for your case. The template has a set of options which are applied when a new phone is added to an extension. In your case it is the order of the codecs. If you change those options in the template then the already added phones will not be affected by the template change, only newly added phones. They will not be affected because you do not want to apply some changes under the phone provisioning tab and have the template override those options every time.
So for already added phones the only way to change the order of the codecs is by applying the change manually under each extension and re-provisioning the phone. Multi selecting the extensions and editing them will also not work i think as the management console only allows changes to settings that are common to all extensions by default.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,358
Messages
592,091
Members
165,527
Latest member
jmarshall