hi all im trying to compile h323 i have got the pwlib and openh323 working that is simph323 is running properly but when i try to compile h323 in the channels directory it gives me the following error can anybody please help me with [root@test src]# cd /usr/src/asterisk/channels/h323/ [root@test h323]# make opt g++ -DNDEBUG -I../../include -Wmissing-prototypes -fPIC -DP_LINUX=2.6.5-1.358 -ffunction-sections -fdata-sections -D_REENTRANT -Wall -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/root/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/root/pwlib/include -DPTRACING -I/root/openh323/include -DHAS_IXJ -DHAS_OSS -fPIC -DP_USE_PRAGMA -Os -DNDEBUG -pipe -x c++ -c ast_h323.cxx -o ast_h323.o ast_h323.cxx:1:1: warning: "_GNU_SOURCE" redefined <command line>:4:1: warning: this is the location of the previous definition In file included from ast_h323.cxx:51: ast_h323.h:159: error: type specifier omitted for parameter `RTP_QOS' ast_h323.h:159: error: syntax error before `*' token ast_h323.cxx:957: error: type specifier omitted for parameter `RTP_QOS' ast_h323.cxx:957: error: syntax error before `*' token ast_h323.cxx: In member function `H323Channel* MyH323Connection::CreateRealTimeLogicalChannel(...)': ast_h323.cxx:959: error: `capability' undeclared (first use this function) ast_h323.cxx:959: error: (Each undeclared identifier is reported only once for each function it appears in.) ast_h323.cxx:959: error: `dir' undeclared (first use this function) ast_h323.cxx:959: error: `sessionID' undeclared (first use this function) make: *** [ast_h323.o] Error 1 Thanks alot in advance... _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
You need to run make from /usr/src/asterisk and not /usr/src/asterisk/channels/h323. Just make then make install. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Hussain Umair Sent: Wednesday, January 04, 2006 5:35 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] H323 compilation Help needed hi all im trying to compile h323 i have got the pwlib and openh323 working that is simph323 is running properly but when i try to compile h323 in the channels directory it gives me the following error can anybody please help me with [root@test src]# cd /usr/src/asterisk/channels/h323/ [root@test h323]# make opt g++ -DNDEBUG -I../../include -Wmissing-prototypes -fPIC -DP_LINUX=2.6.5-1.358 -ffunction-sections -fdata-sections -D_REENTRANT -Wall -fPIC -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/root/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/root/pwlib/include -DPTRACING -I/root/openh323/include -DHAS_IXJ -DHAS_OSS -fPIC -DP_USE_PRAGMA -Os -DNDEBUG -pipe -x c++ -c ast_h323.cxx -o ast_h323.o ast_h323.cxx:1:1: warning: "_GNU_SOURCE" redefined <command line>:4:1: warning: this is the location of the previous definition In file included from ast_h323.cxx:51: ast_h323.h:159: error: type specifier omitted for parameter `RTP_QOS' ast_h323.h:159: error: syntax error before `*' token ast_h323.cxx:957: error: type specifier omitted for parameter `RTP_QOS' ast_h323.cxx:957: error: syntax error before `*' token ast_h323.cxx: In member function `H323Channel* MyH323Connection::CreateRealTimeLogicalChannel(...)': ast_h323.cxx:959: error: `capability' undeclared (first use this function) ast_h323.cxx:959: error: (Each undeclared identifier is reported only once for each function it appears in.) ast_h323.cxx:959: error: `dir' undeclared (first use this function) ast_h323.cxx:959: error: `sessionID' undeclared (first use this function) make: *** [ast_h323.o] Error 1 Thanks alot in advance... _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.13/221 - Release Date: 1/4/2006
vivek@staff.ownmail.com
2006-Jan-04 22:28 UTC
[Asterisk-Users] H323 compilation Help needed
Hi friend, You first need to have the correct verisons of pwlib and openh323 as mentioned in the readme file in ./channels/h323 directory. Note, they have to be the same versions, neither advanced nor otherwise, or else it wont compile. Then you ha ve to give a make from the channels/h323 directory and then give a make install from the asterisk base directory, i.e. /usr/src/asterisk or any other directory where you have untarred asterisk. I am sure of this because I have done it many times during our testing phases. But I recomend you that if you are using h323 protocol, then better use ooh323 which you can download from the internet. Use that package instead of h323 in asterisk. You will need different versions of pwlib and openh323 for it, but it works better than h323 in asterisk and oh323 in asterisk-addons. But remember, if at all you are using oh323 or ooh323, rename the conflicting verisons of chan_h323.so, or chan_oh323.so, or chan_ooh323.so from asterisk modules to something else. With warm regards. Vivek J. Joshi. vivek@staff.ownmail.com Trikon electronics Pvt. Ltd. --Sweat saves blood, blood saves lives, and brains saves both.