Stefan Sayer writes:

> opus.conf may contain an fmtp line with opus codec parameters,
> all in one line, e.g.
> maxplaybackrate=16000;stereo=0;useinbandfec=1

I created opus.conf file:

maxplaybackrate=16000;stereo=1;useinbandfec=1

and checked that it is read at sems start:

> Mar 15 07:48:26 lohi sems[3198]: [#7fb4930e6740] [opus_load, opus.c:153] 
> INFO:  *********** initialized default format parameters as 
> 'maxplaybackrate=16000;stereo=1;useinbandfec=1.'

but when sems makes outbound call, no a=fmtp line is included in sdp of
outgoing invite:

v=0.
o=sems 417575112 138667685 IN IP4 192.98.102.10.
s=sems.
c=IN IP4 192.98.102.10.
t=0 0.
m=audio 50032 RTP/AVP 110 105 106 107 108 109 101 102 103 104 8 0 3 2 9 96 97 
98 99 100.
a=rtpmap:110 opus/48000/2.
a=rtpmap:105 isac/16000.
a=rtpmap:106 SILK/24000.
a=rtpmap:107 SILK/16000.
a=rtpmap:108 SILK/12000.
a=rtpmap:109 SILK/8000.
a=rtpmap:101 speex/32000.
a=rtpmap:102 speex/16000.
a=rtpmap:103 speex/8000.
a=rtpmap:104 iLBC/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:3 GSM/8000.
a=rtpmap:2 G721/8000.
a=rtpmap:9 g722/8000.
a=rtpmap:96 telephone-event/8000.
a=rtpmap:97 G726-32/8000.
a=rtpmap:98 G726-24/8000.
a=rtpmap:99 G726-40/8000.
a=rtpmap:100 G726-16/8000.
a=direction:both.
a=sendrecv.
a=rtcp:50033.

I added info calls to opus_create function and got:

Mar 15 07:50:32 lohi sems[3198]: [#7fb47cb38700] [opus_create, opus.c:280] 
INFO:  ************ OPUS params: 
>>stereo=1;sprop-stereo=1;maxaveragebitrate=48000<<.
Mar 15 07:50:32 lohi sems[3198]: [#7fb47cb38700] [opus_create, opus.c:290] 
INFO:  ********* OPUS: creating encoder with maxbandwidth=24000, stereo=true, 
useinbandfec=true

Is opus.conf supposed to apply to outgoing calls?

-- Juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to