Page 1 of 1

Codec failover?

PostPosted: Sat Dec 13, 2008 10:52 am
by Nortelguy
Hey everyone, just wondering is there a way to have codec failover if I run out of G729 licenses ?? I am doing this between asterisk and my provider. Local lan traffic is Ulaw. I enabled G726 and G729 on the siptrunk config however, I am getting an error msg
"Dec 12 17:29:42 WARNING[19431]: codec_g729.c:173 g729tolin_framein: Out of G.729 Decoder Licenses!"

It doesn't seem to rollover to G726 when it runs out of licenses ?? I'm assuming since when the call is placed asterisk has no idea its out of licenses until the call is connected. Any help would be appreicated.

PostPosted: Sun Dec 14, 2008 12:43 am
by mflorell
Which Asterisk version is this?

PostPosted: Sun Dec 14, 2008 11:12 am
by Nortelguy
Asterisk 1.2.30.2

PostPosted: Sun Dec 14, 2008 9:08 pm
by mflorell
I did some searching around and it doesn't look like there's much of a solution for you.

PostPosted: Mon Dec 15, 2008 1:26 am
by williamconley
it would require a solution similar to FreePBX which allows a specific number of channels per account. you could investigate how FreePBX does it ...

or put in an extra query at the moment of the call to determine if there are any licenses available in the preset amount, if so dial g729, if not dial ... other.

it adds a step to your dial plan no matter how you do it, so you can only afford to do it if your system is not "fully loaded" already. if you do it "right" it will also add some storage (so you can put in a qty limit per trunk or a license counter to automatically set the # of licenses)

not too terribly tough, but not a simple thing, either.

PostPosted: Mon Dec 15, 2008 11:19 am
by Nortelguy
Thanks guys, good idea about the dial string. I found a much easier unorthodox approach to fixing the problem though .. 8)