fixed, thx<br><br><div class="gmail_quote">On Fri, Apr 10, 2009 at 9:53 AM, Lele Forzani <span dir="ltr">&lt;<a href="mailto:lele@windmill.it">lele@windmill.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, 2009-04-09 at 12:41 -0500, Anthony Minessale wrote:<br>
<br>
&gt; please try now with latest code that should delay the init of the<br>
&gt; resources until they are in use so cases where they are not used both<br>
&gt; ways will not cost a hw resource.<br>
&gt;<br>
<br>
</div>Thanks a lot Anthony,<br>
<br>
there is still a minor typo in mod_dahdi_codec, that was already there,<br>
but not causing as much harm as now, since encoders and decoders were<br>
always initialized in pairs.<br>
<br>
I&#39;m pasting the diff in the mail body since it&#39;s a two letters change.<br>
<br>
--- src/mod/codecs/mod_dahdi_codec/mod_dahdi_codec.c-   2009-04-11 18:24:04.000000000 +0200<br>
+++ src/mod/codecs/mod_dahdi_codec/mod_dahdi_codec.c    2009-04-11 18:24:11.000000000 +0200<br>
@@ -126,7 +126,7 @@<br>
        fmts.dstfmt = (codec-&gt;implementation-&gt;ianacode == CODEC_G729_IANA_CODE)<br>
                ? DAHDI_FORMAT_G729A : DAHDI_FORMAT_G723_1;<br>
        context-&gt;encoding_fd = switch_dahdi_get_transcoder(&amp;fmts);<br>
-       if (context-&gt;decoding_fd &lt; 0) {<br>
+       if (context-&gt;encoding_fd &lt; 0) {<br>
 #ifdef DEBUG_DAHDI_CODEC<br>
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, &quot;encoding requested and denied with %d/%d.\n&quot;,<br>
                                                  fmts.srcfmt, fmts.dstfmt);<br>
<br>
<br>
Other than that, it seems working, and the resource usage is what it was<br>
expected.<br>
<br>
Thanks,<br>
<font color="#888888">l.<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>