[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 07:35:35 CDT 2019


Ok, Thanks Joshua.
I'll try and make it work.

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

> On Wed, Aug 28, 2019, at 8:36 AM, Mohit Dhiman wrote:
> > 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.
>
> Ah yes, I forgot about that functionality. The way it works is that it
> constructs an fmtp string which is passed to the ast_format_parse_sdp_fmtp
> function, which creates the appropriate format. This is then cached. It
> also stores the configuration on the format itself for later retrieval if
> need be.
>
> If you are doing something similar and it isn't working then I'd suggest
> following the path of things and identifying where it goes wrong.
>
> --
> 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/baf5150a/attachment.html>


More information about the asterisk-dev mailing list