返回列表 發帖

在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++
50 字節以內
不支持自定義 Discuz! 代碼

本帖最後由 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
50 字節以內
不支持自定義 Discuz! 代碼

TOP

本帖最後由 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
50 字節以內
不支持自定義 Discuz! 代碼

TOP

本帖最後由 kinuschan 於 2014-1-3 19:28 編輯

回復 1# magiccat

我在第一步安裝BOOTSTRAP 就出了問題, 請指教:
  1. SECNAS> sh syno-x07-bootstrap_1.2-7_arm.xsh
  2. Optware Bootstrap for syno-x07.
  3. Extracting archive... please wait
  4. bootstrap/
  5. bootstrap/bootstrap.sh
  6. bootstrap/ipkg-opt.ipk
  7. bootstrap/ipkg.sh
  8. bootstrap/optware-bootstrap.ipk
  9. bootstrap/wget.ipk
  10. 1226+1 records in
  11. 1226+1 records out
  12. Creating temporary ipkg repository...
  13. Installing optware-bootstrap package...
  14. Unpacking optware-bootstrap.ipk...Done.
  15. Configuring optware-bootstrap.ipk...mount: mounting /volume1/@optware on /opt failed: No such file or directory
  16. mkdir: can't create directory '/opt/etc': No such file or directory
  17. chmod: /opt/etc: No such file or directory
  18. mkdir: can't create directory '/opt/var/': No such file or directory
  19. chmod: /opt/var: No such file or directory
  20. mkdir: can't create directory '/opt/tmp': No such file or directory
  21. chmod: /opt/tmp: No such file or directory
  22. mkdir: can't create directory '/opt/lib': No such file or directory
  23. chmod: /opt/lib: No such file or directory
  24. //tmp/ipkg/info/optware-bootstrap.ipk.preinst failed. Aborting installation of optware-bootstrap.ipk
  25. Installing ipkg...
  26. Unpacking ipkg-opt.ipk...Done.
  27. Configuring ipkg-opt.ipk...WARNING: can't open config file: /usr/syno/ssl/openssl.cnf
  28. tar: can't make dir ./opt/etc: No such file or directory
  29. tar: can't create directory './opt/etc': No such file or directory
  30. tar: can't open './opt/etc/ipkg.conf': No such file or directory
  31. Done.
  32. Removing temporary ipkg repository...
  33. Installing wget...
  34. bootstrap.sh: line 45: /opt/bin/ipkg: not found


  35. BusyBox v1.16.1 (2013-11-06 05:29:52 CST) built-in shell (ash)
  36. Enter 'help' for a list of built-in commands.
複製代碼
我是DS212j , 用了這個版本
http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh

TOP

本帖最後由 magiccat 於 2014-1-4 16:47 編輯

回復 4# kinuschan


DS212J應該用呢個
http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh

其實你可以真接安裝synology 的 asterisk,我呢幾日試過,跟足角色設定係無問題…
50 字節以內
不支持自定義 Discuz! 代碼

TOP

回復 5# magiccat

其實我本來係用 synology 本身的asterisk,  用角式提及NWT的設置都唔得,重裝過都再試都唔得。 就連角式師兄替我入系統試都係出現打通後即斷線。
所以咪假下用ipkg的方法。

TOP

回復 6# kinuschan

咁角色係咪用VPN連去你度試?ROUTER設定有無問題?
之前我都係咁,今次裝完跟足設定係無問題…

打出有問題定打入有問題?
50 字節以內
不支持自定義 Discuz! 代碼

TOP

回復 7# magiccat

我用NWT, 可以注冊到ASTERISK, 當打出時,對方一接聽就斷了。

TOP

重裝,重置後,終於成功了。

TOP

回復 9# kinuschan

係邊一樣成功?
50 字節以內
不支持自定義 Discuz! 代碼

TOP

回復 10# magiccat


   重裝,重置, 真接安裝synology 的 asterisk (非ipkg)
用NWT, 可以注冊到ASTERISK, 也可以打出時,對方接聽沒有斷了

TOP

返回列表