【Raspberry Pi】——Asterisk 12 (还没有成功)
| 本帖最後由 角色 於 2013-12-29 10:30 編輯 
 因为在Qnap的ipkg里,没有支持uuid的功能,所以转到Raspberry Pi,看看是否能把Asterisk 12放入里面。
 
 0.1 Download Asterisk 12
 0.2 Install pjproject using the following link複製代碼http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz
1. Issue configuration command on the source code of Asterisk 12複製代碼https://wiki.asterisk.org/wiki/display/AST/Installing+pjproject
2. It gives the following error複製代碼./configure --prefix=/opt/asterisk-12
3. Install the required library複製代碼...
libjansson development package is missing
4. Rerun the configuration command複製代碼apt-get install libjansson-dev
5. There is no more error in the configuration stage then we could proceed to the the next stage "make menuselect"6. In "make memuselect", choose the option "Save and Exit"複製代碼./configure --prefix=/opt/asterisk-12
 7. Issue make command8. It gives the following error messages:
 11. After having compiled the source code for few hours, I got複製代碼   [CC] res_fax_spandsp.c -> res_fax_spandsp.o
res_fax_spandsp.c: In function ‘spandsp_v21_new’:
res_fax_spandsp.c:470:52: error: ‘MODEM_CONNECT_TONES_FAX_CED_OR_PREAMBLE’ undeclared (first use in this function)
res_fax_spandsp.c:470:52: note: each undeclared identifier is reported only once for each function it appears in
res_fax_spandsp.c: In function ‘spandsp_fax_gateway_start’:
res_fax_spandsp.c:774:36: error: ‘t38_gateway_state_t’ has no member named ‘t38’
res_fax_spandsp.c:825:43: error: ‘t38_gateway_state_t’ has no member named ‘t38’
res_fax_spandsp.c:825:83: error: ‘t38_gateway_state_t’ has no member named ‘t38’
make[1]: *** [res_fax_spandsp.o] Error 1
make: *** [res] Error 2
root@raspberrypi:/usr/src/asterisk-12/asterisk-12.0.0#
[code]
9. Run the command "make menuselect" again to disable the option for "res_fax_spandsp". Choose "Save and exit" command
10. Re-run the make command
[code]
make
12. Looking for solution複製代碼   [CC] res_pjsip/pjsip_distributor.c -> res_pjsip/pjsip_distributor.o
res_pjsip/pjsip_distributor.c: In function ‘find_dialog’:
res_pjsip/pjsip_distributor.c:141:21: error: ‘pjsip_transaction’ has no member named ‘mutex’
make[1]: *** [res_pjsip/pjsip_distributor.o] Error 1
make: *** [res] Error 2
root@raspberrypi:/usr/src/asterisk-12/asterisk-12.0.0#
 |