[pjsip] Add new codec in pjsua
nanang.izzuddin at gmail.com
Thu Feb 14 17:17:50 EST 2008
First of all, you should send your technical question to pjsip mailing list,
you need to subscribe to the list first:
So we can share problems-solutions and it can be documented/refered better.
About the codec integration problem, from a couple lines you
identified, it seems the error might be caused by improper
implementation of enum_info of pjmedia_codec_factory_op, it is usually
named as *_enum_codecs, which is called by
pjmedia_codec_mgr_register_factory in codec initialization (perhaps
pjmedia_codec_g729_init in your case).
To make it sure, you have to debug your codec initializer, step in to
pjmedia_codec_mgr_register_factory(), and check the value of 'count'
after calling factory->op->enum_info(factory, &count, info). The
'count' variable represents number of codecs implemented by specified
On 14/02/2008, Fabio Cappelletti <f.cappelletti at selta.it> wrote:
> Hi all,
> I'm tring to include new codec into pjsua, so I create a new set
> functions for my codec. When I try to init this codec an error occurred:
> pjsua_media.c Error initializing G729 codec: Too many objects of the
> specified type (PJ_ETOOMANY) [status=70010]
> and the application shout down!
> Some one could help me?
> I don't understand why there are too many objects.
> I try to remove the other codec, but nothig change!
More information about the pjsip