[asterisk-bugs] [JIRA] (ASTERISK-26901) OPUS doesn't generate SDP accordingly to codecs.conf

Jens Vogler (JIRA) noreply at issues.asterisk.org
Tue May 15 13:45:56 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243413#comment-243413 ] 

Jens Vogler commented on ASTERISK-26901:
----------------------------------------

Using codec_opus v1.3.0 I still have the same issue with max_playback_rate.
Asterisk Version: 13.14.1

{code:title=codecs.conf}
[opus]                
type=opus             
packet_loss=75        
complexity=5          
signal=voice          
application=voip      
; bitrate=8000        
max_playback_rate=8000
; max_bandwidth=narrow
dtx=1                 
fec=yes               
{code}

{code:title=200 OK Packet}
SIP/2.0 200 OK
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5080;branch=z9hG4bKPj1c1c95b1-b5d6-4789-8028-afd13f2e0e62;received=xxx.xxx.xxx.xxx;rport=5080
From: sip:testa_552 at localhost;tag=cd1a8abc-3c27-4a94-bd2e-e4f4b057d522
To: sip:1testa_10 at redacted.com;tag=as0b055cb0
Call-ID: 12788761-43b4-4199-be66-1445997d6047
CSeq: 28758 INVITE
Server: Asterisk PBX 13.14.1~dfsg-2+deb9u3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:1testa_10 at xxx.xxx.xxx.xxx:5080>
Content-Type: application/sdp
Require: timer
Content-Length: 305

v=0
o=root 543638521 543638522 IN IP4 xxx.xxx.xxx.xxx
s=Asterisk PBX 13.14.1~dfsg-2+deb9u3
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 37472 RTP/AVP 120 96
a=rtpmap:120 opus/48000/2
a=fmtp:120 useinbandfec=1;usedtx=1
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
{code}

> OPUS doesn't generate SDP accordingly to codecs.conf
> ----------------------------------------------------
>
>                 Key: ASTERISK-26901
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26901
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/CodecHandling, Codecs/codec_opus
>    Affects Versions: 13.14.0, 14.3.0
>            Reporter: TSAREGORODTSEV Yury
>
> Testing opus between 2 asterisk hosts.
> On 1st host config with parameters, 2nd host use SDP values.
> {noformat}
> 1st host codecs.conf
> [opus]
> type=opus
> packet_loss=40
> complexity=10
> max_playback_rate=8000
> fec=1
> dtx=1
> 2nd host codecs.conf:
> [opus]
> type=opus
> packet_loss=40
> complexity=10
> {noformat}
> {noformat}
> Contact: <sip:test_x-lite2 at 10.0.151.1:5065>
> Call-ID: 3ae4b0d36d96054955ea4e440cd3bb30 at 10.0.151.1:5065
> CSeq: 102 INVITE
> User-Agent: Asterisk PBX 14.3.0
> Date: Tue, 28 Mar 2017 23:11:38 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
> Supported: replaces, timer
> Content-Type: application/sdp
> Content-Length: 219
> v=0
> o=root 569990228 569990228 IN IP4 10.0.151.1
> s=Asterisk PBX 14.3.0
> c=IN IP4 10.0.151.1
> t=0 0
> m=audio 32446 RTP/AVP 107
> a=rtpmap:107 opus/48000/2
> a=fmtp:107 useinbandfec=1;usedtx=1
> a=maxptime:20
> a=sendrecv
> {noformat}
> REPLY:
> <------------>
> Audio is at 21428
> Adding codec opus to SDP
> {noformat}
> <--- Reliably Transmitting (no NAT) to 10.0.151.1:5065 --->
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 10.0.151.1:5065;branch=z9hG4bK1ae768f6;received=10.0.151.1
> From: "test_x-lite2" <sip:test_x-lite2 at 10.0.151.1:5065>;tag=as2e7fddcc
> To: <sip:100 at xxxxxx:5065>;tag=as3579828e
> Call-ID: 259150181ae3c91f3a2521ab6d740cec at 10.0.151.1:5065
> CSeq: 102 INVITE
> Server: Asterisk PBX 14.3.0
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
> Supported: replaces, timer
> Session-Expires: 1800;refresher=uas
> Contact: <sip:100 at xxxxxxx>
> Content-Type: application/sdp
> Require: timer
> Content-Length: 212
> v=0
> o=root 914654045 914654045 IN IP4 xxxxx
> s=Asterisk PBX 14.3.0
> c=IN IP4 xxxxx
> t=0 0
> m=audio 21428 RTP/AVP 107
> a=rtpmap:107 opus/48000/2
> a=fmtp:107 usedtx=1
> a=maxptime:20
> a=sendrecv
> {noformat}
> as result max_playback_rate is missing in original SDP
> and useinbandfec in SDP answer. What a mystique ?
> Of course none of sides using playback rate 8000.
> packet_loss also seems doesn't do any effect.
> bandwidth always same no matter if its 0 or 100.



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



More information about the asterisk-bugs mailing list