先到/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 asteriskOK,在/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 -------+做出幾個sample configuration file:
+ +
+ 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'. +
+ +
+-------------------------------------------+
# 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連線。
沒有留言:
張貼留言