返回列表 發帖

【Raspberry Pi】——Asterisk 12 (还没有成功)

本帖最後由 角色 於 2013-12-29 10:30 編輯

因为在Qnap的ipkg里,没有支持uuid的功能,所以转到Raspberry Pi,看看是否能把Asterisk 12放入里面。

0.1 Download Asterisk 12
  1. http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz
複製代碼
0.2 Install pjproject using the following link
  1. https://wiki.asterisk.org/wiki/display/AST/Installing+pjproject
複製代碼
1. Issue configuration command on the source code of Asterisk 12
  1. ./configure --prefix=/opt/asterisk-12
複製代碼
2. It gives the following error
  1. ...
  2. libjansson development package is missing
複製代碼
3. Install the required library
  1. apt-get install libjansson-dev
複製代碼
4. Rerun the configuration command
  1. ./configure --prefix=/opt/asterisk-12
複製代碼
5. There is no more error in the configuration stage then we could proceed to the the next stage "make menuselect"
  1. make menuselect
複製代碼
6. In "make memuselect", choose the option "Save and Exit"

7. Issue make command
  1. make
複製代碼
8. It gives the following error messages:
  1.    [CC] res_fax_spandsp.c -> res_fax_spandsp.o
  2. res_fax_spandsp.c: In function ‘spandsp_v21_new’:
  3. res_fax_spandsp.c:470:52: error: ‘MODEM_CONNECT_TONES_FAX_CED_OR_PREAMBLE’ undeclared (first use in this function)
  4. res_fax_spandsp.c:470:52: note: each undeclared identifier is reported only once for each function it appears in
  5. res_fax_spandsp.c: In function ‘spandsp_fax_gateway_start’:
  6. res_fax_spandsp.c:774:36: error: ‘t38_gateway_state_t’ has no member named ‘t38’
  7. res_fax_spandsp.c:825:43: error: ‘t38_gateway_state_t’ has no member named ‘t38’
  8. res_fax_spandsp.c:825:83: error: ‘t38_gateway_state_t’ has no member named ‘t38’
  9. make[1]: *** [res_fax_spandsp.o] Error 1
  10. make: *** [res] Error 2
  11. root@raspberrypi:/usr/src/asterisk-12/asterisk-12.0.0#
  12. [code]

  13. 9. Run the command "make menuselect" again to disable the option for "res_fax_spandsp". Choose "Save and exit" command

  14. 10. Re-run the make command
  15. [code]
  16. make
複製代碼
11. After having compiled the source code for few hours, I got
  1.    [CC] res_pjsip/pjsip_distributor.c -> res_pjsip/pjsip_distributor.o
  2. res_pjsip/pjsip_distributor.c: In function ‘find_dialog’:
  3. res_pjsip/pjsip_distributor.c:141:21: error: ‘pjsip_transaction’ has no member named ‘mutex’
  4. make[1]: *** [res_pjsip/pjsip_distributor.o] Error 1
  5. make: *** [res] Error 2
  6. root@raspberrypi:/usr/src/asterisk-12/asterisk-12.0.0#
複製代碼
12. Looking for solution

回復 1# 角色

Qnap真係裝唔到Asterisk 12? 咁睇o黎我有時間要係virtualbox裝個linux試!
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

估计要等好记个version,才能bugs,pre-complied packages搞好。

TOP

TOP

I could successfully build under my pi.

But, I have encountered the google voice is not working properly. I didn't record the error message  and will check with this issue later.

TOP

回復 5# ttmuskie

Please advise the method that you used for successful compilation.

What is your problem when you configured your Asterisk 12 to work with Google Voice?

TOP

回復 4# ckleea

Thanks CK, I am following your link to recompile the Asterisk 12.

TOP

let me try later in a debian platform

TOP

回復 6# 角色



sudo apt-get install -y libiksemel-dev libssl-dev libncurses5 g++ libxml2-dev ncurses-dev sysv-rc-conf unixodbc unixodbc-bin unixodbc-dev libmyodbc subversion libical-dev make sqlite3 sqlite3-doc libsqlite3-dev uuid uuid-dev libjansson-dev

./configure
make
sudo make install
sudo make samples
sudo make config

TOP

返回列表