<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; Asterisk Tuning</title>
	<atom:link href="http://bipinb.com/tag/asterisk-tuning/feed" rel="self" type="application/rss+xml" />
	<link>http://bipinb.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 02:14:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Load Balancing Asterisk Servers</title>
		<link>http://bipinb.com/load-balancing-asterisk-servers.htm</link>
		<comments>http://bipinb.com/load-balancing-asterisk-servers.htm#comments</comments>
		<pubDate>Fri, 17 Apr 2009 13:01:57 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Asterisk Tuning]]></category>
		<category><![CDATA[Load Balancing Asterisk Servers]]></category>
		<category><![CDATA[Optimizing Asterisk servers.]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=99</guid>
		<description><![CDATA[





Some of  common question among the asterisk users  are.

What is the minimum hardware to setup asterisk ?
How many simultaneous call can asterisk machine can handle?
How many E1s can be plugged to a single machine?
Which is the best server for call making?
How an asterisk machine can be tuned?

Lets start to Discuss from one by one.
Minimum Hardware [...]]]></description>
			<content:encoded><![CDATA[<!-- Easy AdSense V2.83 -->
<!-- Post[count: 3] -->
<div class="ezAdsense adsense adsense-leadin" style="text-align:center;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-8516280820391538";
/* 468x60, created 6/14/10 */
google_ad_slot = "2348800126";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p><img src="http://bipinb.com/wp-content/uploads/2009/04/high-server-load-wordpress.jpg" alt="high-server-load-wordpress.jpg" /></p>
<p>Some of  common question among the asterisk users  are.</p>
<ul>
<li>What is the minimum hardware to setup asterisk ?</li>
<li>How many simultaneous call can asterisk machine can handle?</li>
<li>How many E1s can be plugged to a single machine?</li>
<li>Which is the best server for call making?</li>
<li>How an asterisk machine can be tuned?</li>
</ul>
<p>Lets start to Discuss from one by one.</p>
<p><strong>Minimum Hardware to setup Asterisk</strong></p>
<p>The answer is simple.All we need is a normal PC installed with any of the Linux flavour in it and a lan card  if we are trying to make SIP calls only.Not a single extra hard ware required.</p>
<p>How to make asterisk sip calls, i have mentioned in my previous posts.</p>
<p><strong>Simultaneous call can asterisk machine can handle / Max E1s</strong></p>
<p><strong>Asterisk 1.2</strong> start to run into problems around 220 concurrent SIP calls. <strong>Asterisk 1.4</strong> scales much better and can handle nearly double the call setups/second as well as total concurrent traffic with a hard ware of dual core processor with 4GB RAM</p>
<p>Digium  claims asterisk can  handle up to<strong> 240 calls</strong> simultaneous in both SIP/ Zap channels.I have experience of setting of server for outdialing application which can make 240 simultaneous calls at a time, ie with 2 quad span card connected to<strong> 8 PRI lines</strong>.</p>
<p>Hardware configiration is :</p>
<p>Server : IBM System x3400</p>
<p>Card : Digium TE420P</p>
<p>RAM : 4GB</p>
<p>Processor : <span class="small">Dual-Core <a href="http:///" onclick="JavaScript:win=window.open('http://syndication.intel.com/DistributeModule.aspx?ppc_cid=WTM_00799067501','00799067501','resizable=1,sc rollbars=0,width=340,height=150');win.focus();return false">Intel</a> Xeon Processor</span></p>
<p><strong>Best server for call making</strong></p>
<p>I have tried IBM System x3400, HP Proliant 110 G4 ,   IBM System x3200 for our IVR and outdialing application which handles minimum of 120 calls at a time and its running smooth without any issues.</p>
<p><strong>Tuning asterisk Machine </strong></p>
<p>The best practice to make your asterisk sever to get it maximum performance are</p>
<p><em>Try to implement almost every logic in dailplan itself.</em></p>
<p>Dial Plans are just like shell script, we can implement almost all our logic with it.Go forAGI if and only if we are 100% sure that i cant be done with dail plan only.The communication between the AGI scripts and Asterisk was via standard input and standard output writing and reading cause a large memory and CPU usage.</p>
<p><em>Tur</em><em>n off Log files. </em></p>
<p>Asterisk uses a too many log files while running.Logs files are good when used for debugging but once we got a stable asterisk running you can turn it off or make log rotate to empty log file once in a week.This will make huge difference in the load in the machine.</p>
<p>Can tun off the logging by editing /etc/asterisk/asterisk.conf also.</p>
<p><em>Tune mysql to its best</em></p>
<p>If we are using MySQL as our DB in the<a href="http://www.voip-info.org/wiki-Asterisk+AGI"> AGI</a> scripts tuning will give us better performance. It can be done  indexing in tables,increasing concurrent connection parameter, threading parameter in the my.cnf file</p>
<p><em>Use FastAGI</em></p>
<p>Implements the Asterisk Gateway Interface (<a href="http://www.voip-info.org/wiki/view/Asterisk+AGI" title="Asterisk AGI">AGI</a>) over TCP sockets. This can help alleviate CPU load on your telephony server by relocating resource hungry scripts to another networked server. In order to instruct Asterisk to attempt a network connection, you must supply the hostname or IP address of the server where your FastAGI service is hosted and preface it with <em>agi://</em>:</p>
<p>Those having similar experience  can share their questions and experiences here&#8230;.:)</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/load-balancing-asterisk-servers.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
