[asterisk-bugs] [JIRA] (ASTERISK-28346) opus transcoding

Thomas Sevestre (JIRA) noreply at issues.asterisk.org
Fri Mar 22 09:34:47 CDT 2019


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Sevestre updated ASTERISK-28346:
---------------------------------------

    Description: 
When I force opus codec with SIP_CODEC and SIP_CODEC_OUTBOUND, asterisk needlessly transcode both channels from opus at 48000 to slin at 48000 and back to opus at 48000

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 :

          State: Up (6)
  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 sip.conf to allow only opus, it works as expected without transcoding.

Is it a known issue?

  was:
When I force opus codec with SIP_CODEC and SIP_CODEC_OUTBOUND, asterisk needlessly transcode both channels to opus at 48000 to slin at 48000 to opus at 48000

Here is the revelant informations :

sip.conf :
[100]
disallow=all
allow=alaw
allow=opus
...
[200]
disallow=all
allow=alaw
allow=opus
...

I force opus codec with SIP_CODEC and SIP_CODEC_OUTBOUND variables and establish the call with Dial application.

In asterisk console, both channels have the following transcoding information :
          State: Up (6)
  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 sip.conf to allow only opus, it works as expected without transcoding.

Is it a known issue?


> opus 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
>
> When I force opus codec with SIP_CODEC and SIP_CODEC_OUTBOUND, asterisk needlessly transcode both channels from opus at 48000 to slin at 48000 and back to opus at 48000
> 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 :
>           State: Up (6)
>   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 sip.conf to allow only opus, it works as expected without transcoding.
> Is it a known issue?



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list