[asterisk-bugs] [JIRA] (ASTERISK-28436) Transcoding happening even though it is not necessary
Flole Systems (JIRA)
noreply at issues.asterisk.org
Mon Jun 3 17:29:47 CDT 2019
Flole Systems created ASTERISK-28436:
----------------------------------------
Summary: Transcoding happening even though it is not necessary
Key: ASTERISK-28436
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28436
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: pjproject/pjsip
Affects Versions: 15.3.0
Reporter: Flole Systems
A phone has G722,ulaw,alaw set as allowed codecs. The SIP Provider only allows G722 when the number dialed does support it. For the provider I set allow to G722,ulaw,alaw aswell.
When setting up a call asterisk first negotiates a codec with the phone (G722) and then with the provider (ulaw in the worst case). Instead of switching the phone to ulaw aswell (it does support that), asterisk starts to transcode using 5 times the CPU power a normal call would take. This is not only a waste of resources but also reduces audio quality while having absolutely no benefit.
I would expect asterisk to start re-negotiating the codec once it knows which codec each party supports selecting the most prefered one (aka the first one in my allow list) that both parties support. Only if there is none, use transcoding. If transcoding is not possible, fail.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list