[asterisk-dev] unable to pass default attribute_data from codec_xyz.c to res_format_attr_xyz.c

Mohit Dhiman mohitdhiman736 at gmail.com
Wed Aug 28 06:36:10 CDT 2019


Ok, now I am a little confused here because when Asterisk initiate a SIP
transaction (INVITE)
and it generates SDP, then without any prior knowledge how
ref_format_attr_xyz.c
can set the
SDP parameters which were read by codec_opus.so from codecs.conf file.

On Wed, 28 Aug 2019 at 16:55, Joshua C. Colp <jcolp at digium.com> wrote:

> On Wed, Aug 28, 2019, at 8:10 AM, Mohit Dhiman wrote:
> > Ok.
> > could it be related to the order in which modules get loaded in
> > asterisk?
> > also can you please suggest some way to pass this information somehow
> > from codec_xyz.c to ref_format_attr_xyz.c?
> > because I believe codec_opus.so does this sort of thing.
>
> The codec_opus module as provided by Sangoma does not do this. Attributes
> are created as part of the SDP negotiation using the defined format
> attribute API at negotiation time, nothing is created ahead of time. No
> module, to my knowledge, has created a cached format with attributes
> already present so the specific code flow may drop it somewhere.
>
> --
> Joshua C. Colp
> Digium - A Sangoma Company | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20190828/c025c93e/attachment.html>


More information about the asterisk-dev mailing list