星期一, 10月 31, 2005

Install Asterisk in Debian

因為用apt-get install asterisk 後,config file不知道要怎麼設,所以還是follow 書的作法。用cvs 來download。
先到/usr/src下,待會checkout的data會到這裡。
# cd /usr/src
接著export cvs需要的variable:
# exports CVSROO=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
接著login cvs server:
# login cvs
會出現要求password,輸入" anoncvs ".
可以checkout了,只要作voip,沒有要作trunking,所以checkout asterisk
# cvs checkout asterisk
OK,在/usr/src下已經可以看到asterisk這個目錄了。
Compile, Install
# cd asterisk
# make clean
# make install
結果:
Error : cannot find ssl
大概是沒有libssl(猜的)。用apt-file search libssl 找到libssl-dev,安裝後再make install一次..Success !!
 +---- Asterisk Installation Complete -------+
+ +
+ YOU MUST READ THE SECURITY DOCUMENT +
+ +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample +
+ configuration files (overwriting any +
+ existing config files), run: +
+ +
+ make samples +
+ +
+----------------- or ---------------------+
+ +
+ You can go ahead and install the asterisk +
+ program documentation now or later run: +
+ +
+ make progdocs +
+ +
+ **Note** This requires that you have +
+ doxygen installed on your local system +
+-------------------------------------------+
+ +
+ ** NOTE FOR DOWNGRADING FROM CVS HEAD ** +
+ +
+ If you are downgrading from CVS HEAD to +
+ a stable release, remember to delete +
+ everything from your asterisk modules +
+ directory (/usr/lib/asterisk/modules/) +
+ and the asterisk header directory +
+ (/usr/include/asterisk/) +
+ before doing a 'make install'. +
+ +
+-------------------------------------------+
做出幾個sample configuration file:
# make samples
這會產生一大堆檔案在/etc/asterisk.
啟動:
# asterisk &
就會啟動asterisk server ,
要連上一個已經啟動的asterisk server,用
# asterisk -r
會 出現asterisk的command line interface:
hostname*CLI>
輸入"help"會出現很多message.
 CLI> sip debug
會顯示detail的sip message (protocol),用
 CLI> sip no debug
來停止debug輸出。用
 CLI> quit
結束和asterisk server連線。

沒有留言:

張貼留言