Skip to content

Codec bandwidth #2

@sickpig

Description

@sickpig

Hi Lorenzo,

I'm the same Andrea that was bothering you about Opus bandwidth on asterisk-dev mailing list :) (see for reference http://www.mail-archive.com/asterisk-dev@lists.digium.com/msg59507.html). Since Digium doesn't even want to talk about opus codec due to legal issues, I just decided to stop pestering the *-dev mailing list with opus related questions.

just to summarize: the opus leg of the call use 48KHz codec/decoder despite the fact that on the other leg we're using a 8KHz codec (e.g. g729, gsm etc. etc)

I've applied your patch to a pristine asterisk 11.4.0 source tree, a part a few solved hunks everything went well. I've set a sip peer just like that:

[1061]
type=peer
username=1061
host=dynamic
secret=1061
context=test
disallow=all
allow=opus
hasiax =no
hassip = yes
encryption = no
avpf = no
icesupport = yes
videosupport=no
directmedia=no

I've used PhonerLite Beta to register using the above account. The test context is as simple as that:

[test]
exten => _X.,1,Dial(SIP/mysipprovider/${EXTEN},20,Tt)

this is the a call console log

== Using SIP RTP CoS mark 5
-- Executing [3XXXXXXX@test:1] Dial("SIP/1061-00000023", "SIP/mysipprovider/3XXXXXXX,20,Tt") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/mysipprovider/3XXXXXX
[Opus] Created encoder #10 (48000->opus)[Opus] Created decoder #13 (opus->48000)
-- SIP/mysipprovider-00000024 is ringing
-- SIP/mysipprovider-00000024 answered SIP/1061-00000023
> 0x7fa100016620 -- Probation passed - setting RTP source address to 192.168.1.50:46933
> 0x2bf7f80 -- Probation passed - setting RTP source address to 85.158.217.167:14208
[2013-06-19 11:52:20] WARNING[30995][C-00000020]: res_rtp_asterisk.c:1477 __rtp_recvfrom: PJ ICE Rx error status code: 370400 'Bad Request'.
== Spawn extension (test, 3XXXXXXXXX, 1) exited non-zero on SIP/1061-00000023'
[Opus] Destroyed encoder #10 (48000->opus)
[Opus] Destroyed decoder #13 (opus->48000)

here we have a screenshoot of the PhonerLIte (PB) beta networks tabs. As you can see we transmit 19Kbps, since that PB use opus@18Kbps, but we receive at 54Kbps.

opus

The env I was referring in the initial report posted to the asterisk-dev ml involved google-chrome/webrtc/JsSip as sip client and we saw in that case a transmission flow bandwidth equal to 54 Kbps. So it seems that setting a "fixed bitrate" as PB does solve the upstream problem, but do not solve the downstream one (from asterisk to the sip client).

Andrea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions