[Freeswitch-dev] codecs initialization flags in endpoint modules

Anthony Minessale anthony.minessale at gmail.com
Fri Apr 10 10:40:25 PDT 2009


fixed, thx

On Fri, Apr 10, 2009 at 9:53 AM, Lele Forzani <lele at windmill.it> wrote:

> On Thu, 2009-04-09 at 12:41 -0500, Anthony Minessale wrote:
>
> > please try now with latest code that should delay the init of the
> > resources until they are in use so cases where they are not used both
> > ways will not cost a hw resource.
> >
>
> Thanks a lot Anthony,
>
> there is still a minor typo in mod_dahdi_codec, that was already there,
> but not causing as much harm as now, since encoders and decoders were
> always initialized in pairs.
>
> I'm pasting the diff in the mail body since it's a two letters change.
>
> --- src/mod/codecs/mod_dahdi_codec/mod_dahdi_codec.c-   2009-04-11
> 18:24:04.000000000 +0200
> +++ src/mod/codecs/mod_dahdi_codec/mod_dahdi_codec.c    2009-04-11
> 18:24:11.000000000 +0200
> @@ -126,7 +126,7 @@
>        fmts.dstfmt = (codec->implementation->ianacode ==
> CODEC_G729_IANA_CODE)
>                ? DAHDI_FORMAT_G729A : DAHDI_FORMAT_G723_1;
>        context->encoding_fd = switch_dahdi_get_transcoder(&fmts);
> -       if (context->decoding_fd < 0) {
> +       if (context->encoding_fd < 0) {
>  #ifdef DEBUG_DAHDI_CODEC
>                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
> "encoding requested and denied with %d/%d.\n",
>                                                  fmts.srcfmt, fmts.dstfmt);
>
>
> Other than that, it seems working, and the resource usage is what it was
> expected.
>
> Thanks,
> l.
>
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090410/c3af1182/attachment-0001.html 


More information about the Freeswitch-dev mailing list