標題:
在synology compile 安裝 asterisk
[打印本頁]
作者:
magiccat
時間:
2014-1-3 16:56
標題:
在synology compile 安裝 asterisk
第一步,安裝bootstrap
Synology NAS 安裝 Asterisk ipkg的方法
http://www.mobile01.com/topicdet ... mp;t=952966&p=1
跟上面的第一步安裝bootstrap,(或你已經用pietty登入synology root 帳號後可跟以下的步驟)
cd /usr
mkdir src
cd src
mkdir files
cd files <==我學其他人把下載的檔案放在 /usr/src/files 內,不一定跟我一樣。
wget
http://ipkg.nslu2-linux.org/feed ... unstable/syno-i686-
bootstrap_1.2-7_i686.xsh <==此為x86 cpu用的,其他請去上面網頁,內有連結。
sh syno-i686-bootstrap_1.2-7_i686.xsh <===此為x86 cpu用的,其他請跟你下載的更改。
ipkg update
ipkg list
完成了bootstrap的安裝
安裝nano文字編輯器
ipkg install nano
安裝gcc
ipkg install gcc
安裝libstdc++
ipkg install libstdc++
作者:
magiccat
時間:
2014-1-3 16:57
本帖最後由 magiccat 於 2014-1-13 12:47 編輯
第二步 安裝ASTERISK
cd /usr/src/files
wget
http://downloads.asterisk.org/pu ... risk-10.12.3.tar.gz
<===此為下載例子
tar -zxvf asterisk-10.12.3.tar.gz <===解壓
cd asterisk-10.12.3
以下為COMPILE步驟
make clean
make
make install
INSTELL完成後
nano /etc/asterisk/manager.conf
enabled = yes
webenabled = yes
httptimeout = 60
[name]
secret = password
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
nano /etc/asterisk/http.conf
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
prefix = asterisk
完成後還有
chmod -x /var/lib/asterisk/static-http
sip.conf
[general]
alwaysauthreject=yes
加入G729 CODEC
cd /usr/lib/asterisk/modules/
wget
http://asterisk.hosting.lv/bin/c ... -gcc4-glibc-atom.so
<===這是給 x86 cpu用的
wget
http://asterisk.hosting.lv/bin/c ... -gcc4-glibc-atom.so
<===這是給 x86 cpu用的
mv codec_g723-ast18-gcc4-glibc-atom.so codec_g723.so
mv codec_g729-ast18-gcc4-glibc-atom.so codec_g729.so
作者:
magiccat
時間:
2014-1-3 16:57
本帖最後由 magiccat 於 2014-1-4 16:56 編輯
其實我想在這分享S記[不能說的秘密]安裝,但呢樣野就好像[打破窗門],我不知道在這可以說嗎?
有興趣的師兄,可先看以下連結…
http://nas1.cn/forum.php?mod=forumdisplay&fid=44&page=1
http://xpenology.com/forum/viewforum.php?f=2
作者:
kinuschan
時間:
2014-1-3 19:26
本帖最後由 kinuschan 於 2014-1-3 19:28 編輯
回復
1#
magiccat
我在第一步安裝BOOTSTRAP 就出了問題, 請指教:
SECNAS> sh syno-x07-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for syno-x07.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
1226+1 records in
1226+1 records out
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...mount: mounting /volume1/@optware on /opt failed: No such file or directory
mkdir: can't create directory '/opt/etc': No such file or directory
chmod: /opt/etc: No such file or directory
mkdir: can't create directory '/opt/var/': No such file or directory
chmod: /opt/var: No such file or directory
mkdir: can't create directory '/opt/tmp': No such file or directory
chmod: /opt/tmp: No such file or directory
mkdir: can't create directory '/opt/lib': No such file or directory
chmod: /opt/lib: No such file or directory
//tmp/ipkg/info/optware-bootstrap.ipk.preinst failed. Aborting installation of optware-bootstrap.ipk
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...WARNING: can't open config file: /usr/syno/ssl/openssl.cnf
tar: can't make dir ./opt/etc: No such file or directory
tar: can't create directory './opt/etc': No such file or directory
tar: can't open './opt/etc/ipkg.conf': No such file or directory
Done.
Removing temporary ipkg repository...
Installing wget...
bootstrap.sh: line 45: /opt/bin/ipkg: not found
BusyBox v1.16.1 (2013-11-06 05:29:52 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
複製代碼
我是DS212j , 用了這個版本
http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh
作者:
magiccat
時間:
2014-1-4 16:44
本帖最後由 magiccat 於 2014-1-4 16:47 編輯
回復
4#
kinuschan
DS212J應該用呢個
http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh
其實你可以真接安裝synology 的 asterisk,我呢幾日試過,跟足角色設定係無問題…
作者:
kinuschan
時間:
2014-1-4 17:10
回復
5#
magiccat
其實我本來係用 synology 本身的asterisk, 用角式提及NWT的設置都唔得,重裝過都再試都唔得。 就連角式師兄替我入系統試都係出現打通後即斷線。
所以咪假下用ipkg的方法。
作者:
magiccat
時間:
2014-1-4 17:29
回復
6#
kinuschan
咁角色係咪用VPN連去你度試?ROUTER設定有無問題?
之前我都係咁,今次裝完跟足設定係無問題…
打出有問題定打入有問題?
作者:
kinuschan
時間:
2014-1-4 17:49
回復
7#
magiccat
我用NWT, 可以注冊到ASTERISK, 當打出時,對方一接聽就斷了。
作者:
kinuschan
時間:
2014-1-4 18:16
重裝,重置後,終於成功了。
作者:
magiccat
時間:
2014-1-5 01:01
回復
9#
kinuschan
係邊一樣成功?
作者:
kinuschan
時間:
2014-1-5 17:12
回復
10#
magiccat
重裝,重置, 真接安裝synology 的 asterisk (非ipkg)
用NWT, 可以注冊到ASTERISK, 也可以打出時,對方接聽沒有斷了
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/)
Powered by Discuz! 7.2