Board logo

標題: Asterisk 11 formal release (QNAP NAS TS-269 Pro Installation) [打印本頁]

作者: 角色    時間: 2012-10-28 22:04     標題: Asterisk 11 formal release (QNAP NAS TS-269 Pro Installation)

本帖最後由 角色 於 2012-10-29 00:00 編輯

Just downloaded the tarball of Asterisk 11 from the Asterisk Official website and carried out the compilation process. When I execute the scripts
  1. [/usr] # /opt/asterisk-11/sbin/asterisk
  2. /opt/asterisk-11/sbin/asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory
複製代碼
This error could be removed by a number of ways as described in Link which are summarised below:

0088.png

Since I would like to see the compilation result then I chose the second method, it gave:

0087.png

Later I would like to switch back to use the first method.

I carried the re-compilation process with the following script in order to get rid of the additional environment setting:
  1. LDFLAGS="-Wl,-rpath,/opt/asterisk-11/lib" ./configure --prefix=/opt/asterisk-11
複製代碼
If we open the file "/opt/asterisk-11/var/lib/asterisk/message", we have

0091.png

The missing libraries are being kept in /opt/lib. Once we tell the system, the loadable library path = /opt/lib (shown below) and followed by restarting the asterisk, we are able to get speex and speex16 codecs and other error message were gone.
  1. export LD_LIBRARY_PATH=/opt/lib
複製代碼
The error message in "/opt/asterisk-11/var/lib/asterisk/message" is

0092.png

After having applied the above processes, we carried out the command "core show translation", we got

0090.png

圖片附件: 0087.png (2012-10-28 22:02, 12.75 KB) / 下載次數 725
http://telecom-cafe.com/forum/attachment.php?aid=1776&k=2e8ee381cf4d91dd57a61665f315a27a&t=1732318623&sid=hTO222



圖片附件: 0088.png (2012-10-28 22:02, 23.75 KB) / 下載次數 697
http://telecom-cafe.com/forum/attachment.php?aid=1777&k=22664009834ae1f3bdc34226ca5d1b64&t=1732318623&sid=hTO222



圖片附件: 0090.png (2012-10-28 23:55, 42.4 KB) / 下載次數 638
http://telecom-cafe.com/forum/attachment.php?aid=1779&k=cbd141eda158872d4aebcc2dd50c22aa&t=1732318623&sid=hTO222



圖片附件: 0091.png (2012-10-28 23:55, 69.26 KB) / 下載次數 608
http://telecom-cafe.com/forum/attachment.php?aid=1780&k=baccd34aaff390b0b55d0a49ffd5b4c6&t=1732318623&sid=hTO222



圖片附件: 0092.png (2012-10-28 23:59, 43.41 KB) / 下載次數 685
http://telecom-cafe.com/forum/attachment.php?aid=1781&k=ca50333c5939a20413a5f01a971c449b&t=1732318623&sid=hTO222


作者: 雯雯    時間: 2012-10-28 22:34

回復 1# 角色

正好這兩天在香港真係set機set到暈! 特別係Synology本身個Asterisk真係有問題, 會突然間唔見了一D setting! 等我遲D有時間自己tar個Asterisk落去.
作者: 角色    時間: 2012-10-28 22:49

回復 2# 雯雯

如果下载你在香港再有问题,call我嘛!不过你现在的功力已经提升很多,其他member都说Synology的Asterisk好像有问题,不错你的深圳Synology的Asterisk却没有说有问题!
作者: bubblestar    時間: 2012-10-29 17:24

回復 1# 角色


   
Just for informatin, if we use the workarounds 4 as below, there is no need to recall the library path "export LD_LIBRARY_PATH=/opt/lib" as you advised.


./configure --prefix=/opt/asterisk-11 --disable-asteriskssl


However, I don't know which one is the best and what will be the impact if we disable asteriskssl in the cofiguration process.
作者: 雯雯    時間: 2012-10-29 23:16

回復 3# 角色

唉! 回港有其他事忙! 從香港回來大陸又有好多事忙! 等過幾日有時間再慢慢搞.
作者: 角色    時間: 2012-10-29 23:19

回復 5# 雯雯

因为你现在知道怎样edit NAS里的file,所以对你来说没有难度。

如果出现有什么问题,可以说出来,然后我为你解答。
作者: 雯雯    時間: 2012-11-2 22:34

回復 1# 角色

我剛剛在Synology DS107+ tar Asterisk 11也有相同的error!
作者: bubblestar    時間: 2012-11-2 22:45

如果你安裝的路徑跟我一樣是 /opt/src/asterisk/asterisk-11,那麼,compile 時可以打:

LDFLAGS="-Wl,-rpath,/opt/asterisk-11/lib" ./configure --prefix=/opt/asterisk-11

可以解決該error問題。
作者: 角色    時間: 2012-11-3 09:43

是否QNAP和Synology的ipkg不一样呢?
作者: 雯雯    時間: 2012-11-3 09:59

回復 9# 角色

剛剛試了第4個方法都係唔得!
作者: 角色    時間: 2012-11-3 10:05

回復 10# 雯雯

真的不知道是否Synology的arm environment跟QNAP不一样。你的情况我真的没有遇过,都不知道怎样帮你了。
作者: 角色    時間: 2012-11-3 10:09

你看我们都是这样invoke的:
  1. [/opt/etc/asterisk] # /opt/asterisk-11/sbin/asterisk
  2. [/opt/etc/asterisk] # /opt/asterisk-11/sbin/asterisk -rvvvvvvvvv
  3. Asterisk 11.0.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
  4. Created by Mark Spencer <markster@digium.com>
  5. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
  6. This is free software, with components licensed under the GNU General Public
  7. License version 2 and other licenses; you are welcome to redistribute it under
  8. certain conditions. Type 'core show license' for details.
  9. =========================================================================
  10.   == Parsing '/opt/asterisk-11/etc/asterisk/asterisk.conf': Found
  11.   == Parsing '/opt/asterisk-11/etc/asterisk/extconfig.conf': Found
  12. Connected to Asterisk 11.0.0 currently running on TWTS-269PRO (pid = 8968)
  13. TWTS-269PRO*CLI>
複製代碼





歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2