<?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>BW-LOG &#187; Asterisk</title>
	<atom:link href="http://blog.bit-works.net/archives/category/asterisk/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bit-works.net</link>
	<description>(株)BitWorksのブログです.</description>
	<lastBuildDate>Fri, 16 Apr 2010 02:18:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Asterisk (PBX)</title>
		<link>http://blog.bit-works.net/archives/62</link>
		<comments>http://blog.bit-works.net/archives/62#comments</comments>
		<pubDate>Thu, 25 Jun 2009 07:13:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[まとめ]]></category>

		<guid isPermaLink="false">http://blog.bit-works.net/?p=62</guid>
		<description><![CDATA[AsteriskとはオープンソースのIP-PBXのソフトウェアです。
色々とAsteriskを研究中です。
ボイスメールとかモーニングコールのサービスとして使えるか検証中です。
防備録としてまとめておきます。
環境
Ce [...]]]></description>
			<content:encoded><![CDATA[<p>AsteriskとはオープンソースのIP-PBXのソフトウェアです。</p>
<p>色々とAsteriskを研究中です。</p>
<p>ボイスメールとかモーニングコールのサービスとして使えるか検証中です。</p>
<p>防備録としてまとめておきます。</p>
<p><strong>環境</strong><br />
CentOS5.2<br />
Asterisk1.4系（1.6の方がいいのかな？）</p>
<p><strong>インストール</strong></p>
<p>・必要パッケージのインストール<br />
yum install gcc-c++ kernel-devel ncurses-devel openssl-devel kernel-devel</p>
<p>・DAHDIのコンパイルとインストール<br />
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.2.0.tar.gz<br />
tar zxvf dahdi-linux-2.2.0.tar.gz<br />
cd dahdi-linux-2.2.0<br />
make<br />
make install<br />
###################################################<br />
###<br />
### DAHDI installed successfully.<br />
### If you have not done so before, install the package<br />
### dahdi-tools.<br />
###<br />
###################################################</p>
<p>・DAHDI Toolsのコンパイルとインストール<br />
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.2.0.tar.gz<br />
tar zxvf dahdi-tools-2.2.0.tar.gz<br />
cd dahdi-tools-2.2.0<br />
./configure<br />
make<br />
make config<br />
make install<br />
###################################################<br />
###<br />
### DAHDI tools installed successfully.<br />
### If you have not done so before, install init scripts with:<br />
###<br />
###   make config<br />
###<br />
###################################################</p>
<p>・Asteriskのコンパイルとインストール</p>
<p>wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.1.tar.gz<br />
tar zxvf asterisk-1.4.1.tar.gz<br />
./configure<br />
make</p>
<p> +&#8212;&#8212;&#8212; Asterisk Build Complete &#8212;&#8212;&#8212;+<br />
 + Asterisk has successfully been built, and +<br />
 + can be installed by running:              +<br />
 +                                           +<br />
 +               make install                +<br />
 +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+</p>
<p>make install<br />
make sample<br />
make config</p>
<p>make config で起動時に自動起動するようになります。</p>
<p>・汎用パッチの適用<br />
wget ftp://ftp.voip-info.jp/asterisk/patch/scripts/ja_autopatch.sh<br />
chmod 755 ja_autopatch.sh<br />
./ja_autopatch.sh</p>
<p>・RT-200NE対応パッチ</p>
<p>http://voip-info.jp/index.php/RT-200NE%E5%AF%BE%E5%BF%9C%E3%83%91%E3%83%83%E3%83%81</p>
<p>wget http://ftp.voip-info.jp/asterisk/patch/local/1.4/channels/chan_sip.c.rt200ne.070417-01.patch<br />
patch -p0 < chan_sip.c.rt200ne.070417-01.patch</p>
<p>・日本語パッチの適応<br />
wget ftp://ftp.voip-info.jp/asterisk/sounds/1_4/asterisk-sound-jp_14_beta.tar.gz<br />
/var/lib/asterisk/soundsの下に展開すればjp/で全ての日本語音声が展開されます。<br />
tar zxvf asterisk-sound-jp_14_beta.tar.gz<br />
mv jp /var/lib/asterisk/sounds</p>
<p>・サンプル設定ファイル<br />
cd /etc<br />
mv asterisk asterisk.bak<br />
mkdir asterisk<br />
cd asteriskmkdir asterisk<br />
wget http://ftp.voip-info.jp/asterisk/conf/conf-sample-1.4_01.tar.gz<br />
tar zxvf conf-sample-1.4_01.tar.gz</p>
<p>パッチを適用した後は再度、make、make installを行います。</p>
<p>・Asteriskの起動<br />
asterisk -vvvvc<br />
コンソールが白っぽくなってメッセージがずらずらとでます。</p>
<p>func_strings.so => (String handling dialplan functions)<br />
  == Manager registered action PlayDTMF<br />
  == Registered application &#8216;SendDTMF&#8217;<br />
app_senddtmf.so => (Send DTMF digits Application)<br />
  == Registered application &#8216;Log&#8217;<br />
  == Registered application &#8216;Verbose&#8217;<br />
app_verbose.so => (Send verbose output)<br />
  == Registered application &#8216;DeadAGI&#8217;<br />
  == Registered application &#8216;EAGI&#8217;<br />
  == Registered application &#8216;AGI&#8217;<br />
res_agi.so => (Asterisk Gateway Interface (AGI))<br />
  == Registered application &#8216;TrySystem&#8217;<br />
  == Registered application &#8216;System&#8217;<br />
app_system.so => (Generic System() application)<br />
Asterisk Ready.<br />
*CLI> </p>
<p>・Asteriskの終了</p>
<p>*CLI> stop gracefully<br />
それでも止まらないような場合<br />
*CLI> stop now</p>
<p>設定が細かくて大変そうです。<br />
外線を利用し、Webでのインターフェースを作ったらいろいろ使えそうです。</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2395691642029212";
/* 728x15, 作成済み 09/06/30 */
google_ad_slot = "5513976068";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bit-works.net/archives/62/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
