[asterisk-bugs] [JIRA] (ASTERISK-28346) useless transcoding
Thomas Sevestre (JIRA)
noreply at issues.asterisk.org
Tue Mar 26 05:37:47 CDT 2019
[ https://issues.asterisk.org/jira/browse/ASTERISK-28346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246639#comment-246639 ]
Thomas Sevestre commented on ASTERISK-28346:
--------------------------------------------
I force the same codec on both channels. The idea is to prevent asterisk transcoding.
>From the outside, asterisk behave as expected (requested codecs are used)
But when I force codecs that are not the first ones in order of preference, asterisk does transcode.
I'll try to provide a full configuration but it will take some time
> useless transcoding
> -------------------
>
> Key: ASTERISK-28346
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28346
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Codecs/codec_opus
> Affects Versions: 13.25.0
> Reporter: Thomas Sevestre
> Assignee: Thomas Sevestre
>
> Here is the revelant informations :
> /etc/asterisk/sip.conf :
> [100]
> disallow=all
> allow=alaw
> allow=opus
> ...
> [200]
> disallow=all
> allow=alaw
> allow=opus
> ...
> /etc/asterisk/extensions.conf :
> I force opus codec with SIP_CODEC and SIP_CODEC_OUTBOUND variables
> The call is established with Dial application.
> In asterisk console, both channels have the following transcoding information :
> NativeFormats: (opus)
> WriteFormat: slin48
> ReadFormat: slin48
> WriteTranscode: Yes (slin at 48000)->(opus at 48000)
> ReadTranscode: Yes (opus at 48000)->(slin at 48000)
> If I force alaw on both channels, it works as expected without transcoding.
> If I change codec order in sip.conf :
> [100]
> disallow=all
> allow=opus
> allow=alaw
> ...
> [200]
> disallow=all
> allow=opus
> allow=alaw
> ...
> Then I can force opus passthrough but when I force alaw there is a useless transcoding :
> NativeFormats: (alaw)
> WriteFormat: slin48
> ReadFormat: slin48
> WriteTranscode: Yes (slin at 48000)->(slin at 8000)->(alaw at 8000)
> ReadTranscode: Yes (alaw at 8000)->(slin at 8000)->(slin at 48000)
> Is it a known issue?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list