返回列表 發帖

Asterisk-GUI的Google Talk and CLI的Speex在core show translation,after reboot 不见了!!!(Solved,又出问题)

本帖最後由 角色 於 2012-11-3 07:46 編輯

在安装过程中,你会发现Google Talk在Asterisk-GUI。在CLI,你可以看到有Speex code,但是一reboot后就什么都没有了!

因为在reboot NAS过程中,asterisk再次启动时,没有下面的path
  1. LD_LIBRARY_PATH=/opt/lib
複製代碼
按照下面的方法,重新加入这条path就可以
  1. export LD_LIBRARY_PATH=/opt/lib
複製代碼
你要先把原先启动的asterisk,再重新启动,不然上面的export library就不会生效。

那么你的Google Talk (和其他就会重新出现)。

0093.png

本帖最後由 bubblestar 於 2012-10-29 21:28 編輯

回復 1# 角色


   
Thanks!

TOP

角色兄:

想請教一下,我用以下script 及 path 去 compile speex 是否不對,因為做 make menuselect 時,codec_speec 一欄沒有發現 * 號,它旁邊仍然是 xxx 號。

cd /opt/src/asterisk/
wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
tar xvzf speex-1.2rc1.tar.gz
cd speex-1.2rc1
./configure && make && make install



Thanks

TOP

在我的TS-269 Pro,好像我没有自己去compile Speex。你light bar放在Speex,看看在左下角的信息,需要什么packages,就给NASP安装就可以。

TOP

回復 4# 角色


   

什麼是 light bar ??

TOP

就是选哪个item的bar。

TOP

如果不想每次都拨打export LD_LIBRARY_PATH=/opt/lib,那么我们可以自动每次进shell的时候都可以自动加入export。
  1. #!/bin/sh

  2. {
  3.   ###
  4.   # Section 1: Changes that can be made immediately.
  5.   ###

  6.   #set environment variable
  7.   export LD_LIBRARY_PATH=/opt/lib

  8.   ###
  9.   # Section 2: Wait for it...
  10.   ###

  11.   date; echo "Waiting for boot process to complete."
  12.   while [ ! -f /tmp/.thttpd_alive ]; do
  13.     sleep 1
  14.   done
  15.   date; echo "Boot process completed, making custom changes."

  16.   ###
  17.   # Section 3: Changes after the boot processes have finished.
  18.   ###

  19.   # add 2b host names in /etc/hosts
  20.   cat >>/etc/hosts <<EOD
  21. 203.80.89.135   s2hkbntel.net s21.hkbntel.net
  22. EOD

  23.   # add export LD_LIBRARY_PATH=/opt/lib to /root/.profile
  24.   cat >>/root/.profile <<EOD
  25. export LD_LIBRARY_PATH=/opt/lib
  26. EOD

  27.   # start /opt/sbin/asterisk
  28.   /opt/sbin/asterisk

  29.   # start /opt/asterisk-1.8/sbin/asterisk
  30.   /opt/asterisk-1.8/sbin/asterisk

  31.   # start /opt/asterisk-11/sbin/asterisk
  32.   /opt/asterisk-11/sbin/asterisk

  33. #  crontab /xyz/home/userx/crontab -u userx
  34. #  date; echo "autorun_subproc ended."
  35. } >/tmp/autorun_subproc.out 2>/tmp/autorun_subproc.err &
複製代碼

TOP

回復 7# 角色


   
按照你的script 直接copy 及做了script 執行permission,但 2bapp 都無法自動放入到 /etc/hosts

/var/log/asterisk/messages 顯示:
  1. [Oct 30 22:31:48] ERROR[7079] netsock2.c: getaddrinfo("s2hkbntel.net", "(null)", ...): Name or service not known
  2. [Oct 30 22:31:48] WARNING[7079] acl.c: Unable to lookup 's2hkbntel.net'
  3. [Oct 30 22:33:25] ERROR[7079] netsock2.c: getaddrinfo("s2hkbntel.net", "(null)", ...): Name or service not known
  4. [Oct 30 22:33:25] WARNING[7079] acl.c: Unable to lookup 's2hkbntel.net'
複製代碼

TOP

回復 8# bubblestar


   
要手動執行  ./asterisk-start.sh 才能加入 /etc/hosts 內。

TOP

回復 9# bubblestar

可以你这一句,没有做好!

  date; echo "Waiting for boot process to complete."
  while [ ! -f /tmp/.thttpd_alive ]; do
    sleep 1
  done

你可以看看temp的信息。

TOP

If you are able to see a file named .boot_done, then the checking script becomes

date; echo "Waiting for boot process to complete."
  while [ ! -f /tmp/.boot_done ]; do
    sleep 1
  done

TOP

但是现在又见不到了,可以GUI某些settings导致Google Talk不再出来。

TOP

情況就是這樣。我第一次裝 Asterisk 11都可以用 GUI,但之後就完全唔得。

TOP

返回列表