<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY LINK="#0000ff">
Hi,<BR>
<BR>
I already add try that approach, but there is some cases like recording, ivr, playbacks,... that i cannot do by checking into the cdr, if the channel is in G729 a license is used.<BR>
<BR>
Is it impossible to have an event when it creates a decoder/encoder for g729 codec or when it happens transcoding? <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Wed, 2012-02-15 at 09:24 +0000, Oz Mortimer wrote: <BR>
<BLOCKQUOTE TYPE=CITE>
Hi Antonio,<BR>
<BR>
<BR>
<BR>
I “think” all you need to do is inject ${read_codec} and ${write_codec} into your cdrs. You then look at calls in a given timeframe where read_codec != write_codec, which will essentially tell you that the call has been transcoded (and 729 license required). I may have over simplified this though ;)<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<B>From:</B> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <B>On Behalf Of </B>Antonio<BR>
<B>Sent:</B> 15 February 2012 09:14<BR>
<B>To:</B> FreeSWITCH Users Help<BR>
<B>Subject:</B> Re: [Freeswitch-users] Tracking codec g729 by event<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
The reason is that i want check if the number of licenses that i have active gives me margin or do i need to active more licenses.<BR>
<BR>
<BR>
The ESL script updates the maximum of simultaneous g729 licenses used every time that a call need to use g729. A second script runs in a X period, fetch the maximum used licenses used and put this value into a rrd database. So it's quite easy to me to check latter in the graph the g729 used licenses.<BR>
<BR>
I could do a poll every X time, the problem is that i can't get the exact value, since the calls can already be drop at the time the script fetch the values. Also i want to avoid to do a polling every X time if the g729 is not used.<BR>
<BR>
<BR>
Thanks,<BR>
<BR>
Antonio<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Tue, 2012-02-14 at 10:20 -0800, Michael Collins wrote:<BR>
<BR>
<BR>
<BR>
What is the ultimate goal of this process? The reason I ask is that if the only trigger for running "g729_used" API is an event related to a channel then maybe you could just poll the server at regular intervals. ESL can totally handle that, as long as you're not doing something crazy like polling 1000 times per second. <BR>
<BR>
-MC<BR>
<BR>
On Tue, Feb 14, 2012 at 4:00 AM, Antonio <<A HREF="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</A>> wrote:<BR>
<BR>
Hi,<BR>
<BR>
I'm trying to keep tracking on the use of codec g729 licenses on my server.<BR>
<BR>
I've a little ESL program that check all the events for a new call and if the call uses g729 i execute the api "g729_used" to fetch the value. <BR>
This doesn't work, i try it on event CODEC, and EXECUTE.<BR>
<BR>
Is there any event that i can use that is trigger by the encoder/decoder in mod_com_g729 when it actives a license?<BR>
<BR>
Thanks,<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
_________________________
António Silva
</PRE>
</TD>
</TR>
</TABLE>
<BR>
<BR>
_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<A HREF="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A><BR>
<A HREF="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</A><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<A HREF="http://www.cudatel.com">http://www.cudatel.com</A><BR>
<BR>
Official FreeSWITCH Sites<BR>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A><BR>
<A HREF="http://wiki.freeswitch.org">http://wiki.freeswitch.org</A><BR>
<A HREF="http://www.cluecon.com">http://www.cluecon.com</A><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<A HREF="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR>
<A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>
UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A><BR>
<BR>
<BR>
<BR>
<PRE>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<A HREF="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A>
<A HREF="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</A>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<A HREF="http://www.cudatel.com">http://www.cudatel.com</A>
Official FreeSWITCH Sites
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
<A HREF="http://wiki.freeswitch.org">http://wiki.freeswitch.org</A>
<A HREF="http://www.cluecon.com">http://www.cluecon.com</A>
FreeSWITCH-users mailing list
<A HREF="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A>
<A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A>
UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
</PRE>
<BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
</PRE>
</TD>
</TR>
</TABLE>
<BR>
<BR>
<BR>
<BR>
<PRE>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<A HREF="mailto:consulting@freeswitch.org">consulting@freeswitch.org</A>
<A HREF="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</A>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<A HREF="http://www.cudatel.com">http://www.cudatel.com</A>
Official FreeSWITCH Sites
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
<A HREF="http://wiki.freeswitch.org">http://wiki.freeswitch.org</A>
<A HREF="http://www.cluecon.com">http://www.cluecon.com</A>
FreeSWITCH-users mailing list
<A HREF="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A>
<A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A>
UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Un cordial saludo / Best regards,
_________________________
António Silva
E-mail:<A HREF="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>