[asterisk-dev] Asterisk 18 Planning: Codec Negotiation

Kevin Harwell kharwell at digium.com
Mon Feb 3 10:42:51 CST 2020


On Fri, Jan 31, 2020 at 1:06 AM Michael Maier <m1278468 at mailbox.org> wrote:

> On 30.01.20 at 23:20 Kevin Harwell wrote:
> ...
> > No worries it's my bad. I can see how what I wrote was ambiguous. What I
> > meant was "if *either* remote *or* local is chosen". As in it doesn't
> > matter which option value you choose. Either one would result (in this
> > example) in opus not being included in list 2.
>
> Hmm, that's how I understood it - but I still can't see any possibility
> to not provide either remote or local value. Therefore I can't see any
> possibility to ever get opus in your given example above to the
> resulting list 2. But that would be ok anyway, because I don't ever want
> to have opus in the list in this specific case.
>

That's correct. A local or remote value, or some derivative of them
(_single/_limit), will always be specified. And opus will never be included
in list 2.


>
> Could you please tell me, how outgoing_sdp_send_prefs can be used
> *without* any active "value" (like local, local_limit, local_single,
> remote, remote_limit, remote_single) as long as *remote* is
> automatically used ("default") according documentation if no other value
> is provided? This would be the same for all other lists, too.
>
>
> From documentation:
> --------------------------------------------------
> remote - Order by what is optionally given by a "caller". Note, the
> resulting list will contain those codecs specified by Bob's
> configuration, which are not found also in the given remote list, as
> least preferred. Meaning they will be at the end, or bottom of the list
> (*default*)
> --------------------------------------------------
>
>
For any of the options a value can be specified by the user (e.g. local,
remote, local_single, etc...). If no value is specified then the default
value for that option is used. From the code's perspective there will never
be a case for outgoing_sdp_send_prefs, or any of the other options, where
one of its legal values is not always set for it. Either specified by the
user in the configuration, or using it uses the default.

So for example in the case of outgoing_sdp_send_prefs there is no way it
can be used *without* any active "value". It's impossible. Within the
code outgoing_sdp_send_prefs will always be set to one of its values.

-- 
Kevin Harwell
Senior Software Developer
Sangoma Technologies
Check us out at: https://sangoma.com & https://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20200203/73c99336/attachment.html>


More information about the asterisk-dev mailing list