[Freeswitch-users] Tracking codec g729 by event

Antonio asilva at wirelessmundi.com
Wed Feb 15 20:44:50 MSK 2012


Hi,

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.

Is it impossible to have an event when it creates a decoder/encoder for
g729 codec or when it happens transcoding? 









On Wed, 2012-02-15 at 09:24 +0000, Oz Mortimer wrote: 

> Hi Antonio,
> 
>  
> 
> 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 ;)
> 
>  
> 
>  
> 
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
> Antonio
> Sent: 15 February 2012 09:14
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Tracking codec g729 by event
> 
> 
>  
> 
> 
> 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.
> 
> 
> 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.
> 
> 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.
> 
> 
> Thanks,
> 
> Antonio
> 
> 
> 
> 
> 
> On Tue, 2012-02-14 at 10:20 -0800, Michael Collins wrote:
> 
> 
> 
> 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. 
> 
> -MC
> 
> On Tue, Feb 14, 2012 at 4:00 AM, Antonio <asilva at wirelessmundi.com>
> wrote:
> 
> Hi,
> 
> I'm trying to keep tracking  on the use of codec g729 licenses on my
> server.
> 
> 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. 
> This doesn't work, i try it on event CODEC, and EXECUTE.
> 
> Is there any event that i can use that is trigger by the
> encoder/decoder in mod_com_g729 when it actives a license?
> 
> Thanks,
> 
>  
> _________________________
>  
> António Silva
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
>  
> 
> 
>  
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>  
> 
> 
>  
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>  
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
>  
> 
>  
>  
> 
>  
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org


-- 

Un cordial saludo / Best regards, 

 _________________________

António Silva

E-mail:asilva at wirelessmundi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120215/82ebaacd/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list