<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Asterisk HowTo</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Asterisk HowTo</h1>
</div>
<div id="content">



<div class="wikitext"><h2>Asterisk How To</h2>
<div class="plugin tightenable" id="CommentPlugin31"></div>
<hr />
<h3>Classification Group Name</h3>
<p class="tightenable top bottom">SME Versions Supported:<b> 5.6 </b> - - Contribs.org <a href="Certification%20Process.html" class="named-wiki" title="Certification Process">certified</a> on:<b> v </b></p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable top bottom"><th><i>Nav Bar</i></th>
<th><a href="Documentation.html" class="wiki">Documentation</a></th>
<th><a href="How-to%20Classification.html" class="wiki">How-to Classification</a></th>
<th>[Topic Page]</th>
<td>Asterisk HowTo</td>
</tr>
<tr class="tightenable top"><th><i>Comments</i></th>
<td colspan="4"><a href="Asterisk%20HowTo%20Feedback.html" class="named-wiki" title="Asterisk HowTo Feedback">Please add your comments about this How To</a> <br /></td>
</tr>
</table>
<p class="tightenable">Author(s):   <b> Duncan </b> <br />
Contributor(s):   <b> name </b> <br />
License: <b>GPL</b> <br /></p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable bottom"><th>Created:</th>
<th><i>8Feb2004</i></th>
<th>Last updated:</th>
<td>NA</td>
</tr>
</table>
<p class="tightenable top bottom"><i>This wiki page has been prepared by Contribs Doc Team</i></p>
<hr />
<h3>About this How To</h3>
<p class="tightenable top"><b>Summary:</b> How to install Asterisk PBX on your SME Server <br /></p>
<p class="tightenable"><b>Keywords:</b> Asterisk, PBX, VOIP <br /></p>
<p class="tightenable"><b>Tips:</b> <br /></p>
<p class="tightenable"><b>Known Limitations and Caveats:</b> <br /></p>
<p class="tightenable bottom"><b>Downloads:</b> <br /></p>
<hr />
<h3>How To</h3>
<h4>ASTERISK HOWTO</h4>
<p class="tightenable bottom">This is for 5.6 – you may need to adjust things if you are running something else
My server is in server only mode and is protected by another firewall
The following software represents a security risk – so remove the compiler stuff when done (This is entirely up to you)
If you want to keep copies of the software just download each item and run rpm –ivh *.rpm from the directory
h.323 is not included in this howto – use sip. <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><br /></p>
</blockquote>
<p class="tightenable top">rpm -ivh <a href="http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/cpp-2.96-112.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/cpp-2.96-112.i386.rpm</span></a> <br />
rpm -ivh <a href="ftp://at.rpmfind.net/linux/redhat.com/dist/linux/updates/7.2/en/os/i386/kernel-headers-2.4.9-34.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/ftp.png" alt="" class="linkicon" border="0" />ftp://at.rpmfind.net/linux/redhat.com/dist/linux/updates/7.2/en/os/i386/kernel-headers-2.4.9-34.i386.rpm</span></a> <br />
rpm -ivh <a href="http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/glibc-devel-2.2.5-40.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/glibc-devel-2.2.5-40.i386.rpm</span></a> <br />
rpm -ivh <a href="http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/gcc-2.96-112.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/gcc-2.96-112.i386.rpm</span></a> <br />
rpm -ivh <a href="http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/ncurses-devel-5.2-26.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/ncurses-devel-5.2-26.i386.rpm</span></a> <br />
rpm -ivh <a href="ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/bison-1.35-1.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/ftp.png" alt="" class="linkicon" border="0" />ftp://rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/bison-1.35-1.i386.rpm</span></a> <br />
rpm -ivh <a href="http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/openssl-devel-0.9.6b-28.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/dev-tools/SME56/openssl-devel-0.9.6b-28.i386.rpm</span></a> <br /></p>
<h4>GETTING THE SOFTWARE</h4>
<hr />
<h2>Mpg123 for music on hold (optional)</h2>
<p class="tightenable">cd /usr/src <br />
wget <a href="http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz</span></a> <br />
tar -zxvf mpg123-0.59r.tar.gz <br />
cd  mpg123-0.59r <br />
make linux <br />
make install <br /></p>
<hr />
<h2>Asteriskpbx</h2>
<p class="tightenable">cd /usr/src <br />
export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot <br />
cvs login <br /></p>
<p class="tightenable">(The password is anoncvs)</p>
<p class="tightenable">cvs checkout zaptel libpri asterisk</p>
<p class="tightenable">(You will most likely need the kernel sources if you want to install zaptel and libpri. This stuff is for digiums cards and is not necessary if you are only going to be running Sip.</p>
<p class="tightenable">cd asterisk</p>
<p class="tightenable">make clean ; make install</p>
<p class="tightenable">(you will see some errors – don’t worry too much about them – they are generally about X – and codecs you don`t have etc )</p>
<p class="tightenable">make samples</p>
<p class="tightenable">(Lets test to see if it starts ok)
asterisk –vvvvc</p>
<p class="tightenable">(To stop type in - stop now)</p>
<h4>SET IT TO START AT BOOT TIME</h4>
<p class="tightenable">cp /usr/src/asterisk/contrib/init.d/rc.redhat.asterisk /etc/rc.d/init.d/asterisk
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk</p>
<p class="tightenable">/sbin/e-smith/db configuration setprop asterisk status enabled
/sbin/e-smith/signal-event console-save
/sbin/reboot</p>
<p class="tightenable">You should be able to connect to the server by typing asterisk –r</p>
<p class="tightenable">Config files are in  /etc/asterisk</p>
<p class="tightenable">Most of this stuff was ripped off from <a href="http://www.automated.it/guidetoasterisk.htm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.automated.it/guidetoasterisk.htm</span></a> so credits go to Andy Powell
A good place to start is <a href="http://www.voip-info.org/wiki-Asterisk" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.voip-info.org/wiki-Asterisk</span></a> as well as the above link.
A nice free sip client can be got from here
<a href="http://www.xten.com/download/download.php?A=D&amp;brand=x-lite&amp;F1=2910514834" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.xten.com/download/download.php?A=D&amp;brand=x-lite&amp;F1=2910514834</span></a></p>
<p class="tightenable">Feel free to add or flame as you see fit.</p>
<p class="tightenable">Regards Duncan</p>
<div class="plugin tightenable" id="CommentPlugin32"></div>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable bottom"><th><i>Nav Bar</i></th>
<th><a href="Documentation.html" class="wiki">Documentation</a></th>
<th><a href="How-to%20Classification.html" class="wiki">How-to Classification</a></th>
<th>[Topic Page]</th>
<td>Asterisk HowTo</td>
</tr>
<tr class="tightenable top bottom"><th><i>Comments</i></th>
<td colspan="4"><a href="Asterisk%20HowTo%20Feedback.html" class="named-wiki" title="Asterisk HowTo Feedback">Please add your comments about this How To</a></td>
</tr>
</table>
<hr />
<h3>Feedback</h3>
<p class="tightenable top"><a href="Asterisk%20HowTo%20Feedback.html" class="wiki">Asterisk HowTo Feedback</a> Add your comments to this page.</p>
<div class="plugin tightenable bottom" id="CommentPlugin33"></div>
<hr />
<h3>Wiki Links List</h3>
<span class="plugin" id="BackLinksPlugin15"><table cellpadding="0" cellspacing="1" border="0" class="pagelist" width="100%" summary="Columns: Page Name, Hits.">
<caption align="top">
Those pages link to <a href="Asterisk%20HowTo.html" class="wiki">Asterisk HowTo</a>:</caption>
<colgroup span="2"></colgroup>
<thead>
<tr>
<th align="center" valign="middle" class="gridbutton"><a href="Asterisk%20HowTo.html?directory=%2Ftmp%2Fwikidumphtml&amp;sortby=%2Bpagename&amp;id=19" class="gridbutton" title="Click to sort by pagename">&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;Page Name&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;</a></th>
<th align="center" valign="middle" class="gridbutton"><a href="Asterisk%20HowTo.html?directory=%2Ftmp%2Fwikidumphtml&amp;sortby=-hits&amp;id=19" class="gridbutton" title="Click to sort by hits">&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;Hits&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;</a></th>
</tr>
</thead>
<tbody>
<tr class="evenrow">
<td>&nbsp;<a href="Asterisk%20HowTo%20Feedback.html" class="wiki">Asterisk HowTo Feedback</a>&nbsp;</td>
<td align="right">&nbsp;1546&nbsp;</td>
</tr>
<tr class="evenrow">
<td>&nbsp;<a href="Telephony.html" class="wiki">Telephony</a>&nbsp;</td>
<td align="right">&nbsp;3528&nbsp;</td>
</tr>
</tbody>
</table>
</span></div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: <a href="hfwang.html" class="wiki">hfwang</a>  Last edited on March 2, 2004  8:44 am by <a href="hfwang.html" class="wiki">hfwang</a></p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
