<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We have been experimenting with how many licenses are needed when making calls, recording calls and using chanspy to listen in on calls when G729 is involved. I can tell you that way more licenses are needed then I had understood previously. We are making calls via AMI originate and both legs of the calls are controlled by extensions in a dial plan. The outbound leg computes a few things then does a dial to a sip provider that does G729. The other leg is an extension that queues the call to be passed off to an agent that has logged in from a G729 SIP phone. When the call is setup we use 1 encoder and 1 decoder. If we start recording with a monitor AMI action this jumps to 3 encoders and 7 decoders. If we then use a G729 SIP phone to call an extension that allows the caller to use chanspy to listen in this goes up to 4 encoders and 7 decoders. If we stop recording but keep listening in this goes down to 4 encoders and 5 decoders.<div><br></div><div>The value of transcode_via_sln in asterisk.conf does not seem to effect the number of licenses used.</div><div>;transcode_via_sln = yes ; Build transcode paths via SLINEAR, instead of directly</div><div><br></div><div>I would think that once the agent gets bridged to the called leg there would be no need for any licenses as both the SIP phone and SIP provider are using G729.</div><div><br></div><div>I sort of understand why maybe 2 encoders and 2 decoders would be needed if one was recording the call to a non G729 file. You would need to decode each leg of the call, do the recording, and encode each leg of the call. I have no idea why 3 encoders and more important 7 decoders are needed.</div><div><br></div><div>This is all a long email to say that it is not at all clear to me how the software figures out what and when to decode and encode in the internals of Asterisk.<br><div>
<span class="Apple-style-span" style="font-family: Helvetica; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Apr 8, 2010, at 6:24 AM, Arun Sasidhar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br>
<br>
I just purchased an additional license from Digium but the problem is still there.<br>
<br>
The output g729 show licenses command when not in a call<br>
<br>
#g729 show licenses<br>
0/0 encoders/decoders of 2 licensed channels are currently in use<br>
<br>
<i>The output </i>g729 show licenses command<i> when there is a outgoing call.</i><br>
<br>
#g729 show licenses<br>
1/2 encoders/decoders of 2 licensed channels are currently in use<br>
<br>
<br>
<br>
The Asterisk log showing this while on a call:<br>
<br>
/var/log/asterisk/full<br>
[Apr 8 18:12:30] WARNING[5742] translate.c: g729tolin did not update samples 0<br>
[Apr 8 18:12:30] WARNING[5742] codec_g729a.c: out of G.729 decoder licenses<br>
<br>
<br>
Please Help me..<br><br><br><br>Thanks,<br>Arun s.<br>
<br><br><div class="gmail_quote">On Wed, Mar 24, 2010 at 1:48 AM, Arun Sasidhar <span dir="ltr"><<a href="mailto:arun.sasidhar@cabotsolutions.com">arun.sasidhar@cabotsolutions.com</a>></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;">
Hi,<div><br></div><div> I purchased a <span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;"> G.729 1 channel codec license from digium. And installed as per the documentation. Then configured the sip.conf to use the new codec. For that, I am added the following entries in sip.conf (via web interface, as i am using asterisknow 1.5)</span></div>
<div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;"><br></span></div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">disallow=all</span></div>
<div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">allow=g729</span></div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">allow=ulaw</span></div>
<div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">allow=alaw</span></div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">allow=gsm</span></div>
<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">After that, when try to call through the PSTN line I can hear the voice of called party, but he can't hear me. And also we have sip trunks from <a href="http://callcentric.com/" target="_blank">callcentric.com</a>, but it is functioning as normal. Also the sip to sip local extension calls works fine. </span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">When I make a call through PSTN, the Asterisk log showing the following error: </span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><div>
r 24 13:59:27] WARNING[18090] translate.c: g729tolin did not update samples 0</div><div>[Mar 24 13:59:27] WARNING[18090] translate.c: No translator path from alaw to unknown</div><div>[Mar 24 13:59:27] WARNING[18090] codec_g729a.c: out of G.729 decoder licenses</div>
<div>[Mar 24 13:59:27] WARNING[18090] translate.c: g729tolin did not update samples 0</div><div>[Mar 24 13:59:27] WARNING[18090] translate.c: No translator path from alaw to unknown</div><div>[Mar 24 13:59:27] WARNING[18090] codec_g729a.c: out of G.729 decoder licenses</div>
<div>[Mar 24 13:59:27] WARNING[18090] translate.c: g729tolin did not update samples 0</div><div>[Mar 24 13:59:27] WARNING[18090] translate.c: No translator path from alaw to unknown</div><div>[Mar 24 13:59:27] WARNING[18090] codec_g729a.c: out of G.729 decoder licenses</div>
<div>[Mar 24 13:59:27] WARNING[18090] translate.c: g729tolin did not update samples 0</div><div>[Mar 24 13:59:27] WARNING[18090] translate.c: No translator path from alaw to unknown</div><div>[Mar 24 13:59:27] WARNING[18090] codec_g729a.c: out of G.729 decoder licenses</div>
<div>[Mar 24 13:59:27] WARNING[18090] translate.c: g729tolin did not update samples 0</div><div>[Mar 24 13:59:27] WARNING[18090] translate.c: No translator path from alaw to unknown</div><div>[Mar 24 13:59:27] WARNING[18090] codec_g729a.c: out of G.729 decoder licenses</div>
<div>[Mar 24 13:59:27] WARNING[18090] translate.c: g729tolin did not update samples 0</div><div><br></div><div>Please suggest a solution. Do we need additional licence?</div><div><br></div><div><br></div><div>Thanking you in anticipation,</div>
<div><b><br></b></div><div><b>Arun Sasidhar</b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><br></div></span></font></div>
</blockquote></div><br>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></div></body></html>