[asterisk-dev] Opus and VP8

Andrea Suisani sickpig at opinioni.net
Thu Jun 6 02:49:12 CDT 2013


On 06/05/2013 09:08 PM, Andrea Suisani wrote:
> On Wed, June 5, 2013 5:53 pm, Lorenzo Miniero wrote:
>> Hi Andrea,
>
>>> [cut explanation of a maybe false theory]

[cut]

>> The same scenario, in my setup, works fine: a browser calling a softphone
>> using a narrowband codec (e.g., u-Law) is capped to 8kHz, opus<->8000.
>>
>> I guess the only difference between our scenarios (except for the several
>> MACROS that are not in my test extension) is the protocol: in my
>> extensions, only SIP is involved, and not IAX2. This may be what is
>> causing
>> the issue, as recently someone posted a similar problem on github:
>>
>> https://github.com/meetecho/asterisk-opus/issues/1#issuecomment-18926261
>>
>> Unfortunately I'm unfamiliar with IAX, so I don't know how codecs are
>> negotiated and the related translation paths put in place for a call.
>
>
> many thanks Lorenzo tomorrow I will try to test using SIP protocol
> on both call legs.

done. still 48kHz encoder/decoder. Unfortunately today I've no time
to dig it, hope to get a few hours tomorrow. this is the console
log (opus set debug huge)

   == Using SIP RTP CoS mark 5
[Jun  6 09:40:06] WARNING[17108][C-00000003]: chan_sip.c:11101 process_sdp_a_audio: Got Opus minptime=10
     -- Executing [83XX5XXXXX at iaxtest:1] Set("SIP/1060-00000005", "__session=") in new stack
     -- Executing [83XX5XXXXX at iaxtest:2] Set("SIP/1060-00000005", "__numero=3XX5XXXXX") in new stack
     -- Executing [83XX5XXXXX at iaxtest:3] Set("SIP/1060-00000005", "__prefix=8") in new stack
     -- Executing [83XX5XXXXX at iaxtest:4] Macro("SIP/1060-00000005", "choose-provider,8") in new stack
     -- Executing [s at macro-choose-provider:1] NoOp("SIP/1060-00000005", "8") in new stack
     -- Executing [s at macro-choose-provider:2] Set("SIP/1060-00000005", "GLOBAL(PROVIDER)=") in new stack
   == Setting global variable 'PROVIDER' to ''
     -- Executing [s at macro-choose-provider:3] Set("SIP/1060-00000005", "GLOBAL(PROVIDER)=SIP/myprovider") in new stack
   == Setting global variable 'PROVIDER' to 'SIP/myprovider'
     -- Executing [s at macro-choose-provider:4] Set("SIP/1060-00000005", "GLOBAL(PROVIDER)=SIP/myprovider") in new stack
   == Setting global variable 'PROVIDER' to 'SIP/myprovider'
     -- Executing [s at macro-choose-provider:5] Set("SIP/1060-00000005", "GLOBAL(PROV_NOCHAN)=myprovider") in new stack
   == Setting global variable 'PROV_NOCHAN' to 'myprovider'
     -- Executing [s at macro-choose-provider:6] Set("SIP/1060-00000005", "GLOBAL(PROV_CHAN)=SIP") in new stack
   == Setting global variable 'PROV_CHAN' to 'SIP'
     -- Executing [83XX5XXXXX at iaxtest:5] NoOp("SIP/1060-00000005", "SIP/myprovider") in new stack
     -- Executing [83XX5XXXXX at iaxtest:6] NoOp("SIP/1060-00000005", "myprovider") in new stack
     -- Executing [83XX5XXXXX at iaxtest:7] NoOp("SIP/1060-00000005", "SIP") in new stack
     -- Executing [83XX5XXXXX at iaxtest:8] GotoIf("SIP/1060-00000005", "0?diax:dsip") in new stack
     -- Goto (iaxtest,83XX5XXXXX,10)
     -- Executing [83XX5XXXXX at iaxtest:10] GotoIf("SIP/1060-00000005", "0?backupadsl:dial") in new stack
     -- Goto (iaxtest,83XX5XXXXX,11)
     -- Executing [83XX5XXXXX at iaxtest:11] SendText("SIP/1060-00000005", "VOIP") in new stack
     -- Executing [83XX5XXXXX at iaxtest:12] Set("SIP/1060-00000005", "CHANNEL(userfield)=") in new stack
     -- Executing [83XX5XXXXX at iaxtest:13] Set("SIP/1060-00000005", "DYNAMIC_FEATURES=testfeature#listensergiu#listensergiu2") in new stack
     -- Executing [83XX5XXXXX at iaxtest:14] Dial("SIP/1060-00000005", "SIP/myprovider/3XX5XXXXX,22)") in new stack
   == Using SIP RTP CoS mark 5
     -- Called SIP/myprovider/3XX5XXXXX
[Opus] Created encoder #6 (48000->opus)
[Opus] Created decoder #9 (opus->48000)
     -- SIP/myprovider-00000006 is making progress passing it to SIP/1060-00000005
[Opus] [Encoder #6 (48000)] 960 samples, 1920 bytes
[Opus] [Encoder #6 (48000)]   >> Got 960 samples, 220 bytes
[Opus] [Encoder #6 (48000)] 960 samples, 1920 bytes
[Opus] [Encoder #6 (48000)]   >> Got 960 samples, 124 bytes
[Opus] [Encoder #6 (48000)] 960 samples, 1920 bytes

Andrea



More information about the asterisk-dev mailing list