Asterisk 1.2.22 H323 channel issue

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Asterisk 1.2.22 H323 channel issue

Postby djsqueeze » Tue Jul 24, 2007 1:17 pm

In early versions of asterisk the command "make opt" in channels/H323
and H323 channel was installed, however in 1.2.22 version this command
doesnt work.I also had this problem in 1.2.17. I read H323 Readme file but there is no changes in the instructions to install it.

Is there a change in installation that was not mentioned in the README?
Please help.
djsqueeze
Newsterisk
 
Posts: 7
Joined: Tue Apr 10, 2007 12:01 pm

A probable solution

Postby djsqueeze » Tue Jul 24, 2007 2:29 pm

I found a solution I had to modify the makefile in {PATH}/asterisk-1.2.22/channels/h323 to appear like the makefile in the earlier versions (eg. asterisk 1.2.13). I ran a make opt and then went to the aterisk directory and ran a make install and it installed the h323 channel. I however had to manually copy the h323.conf file out of the {PATH}/asterisk-1.2.22/channels/h323 directory and add it to my /etc/asterisk directory new config show below.
Please note the changes only occurred in the highlighted areas

Old Config [note make opt failed to run]

# Makefile
# Make file for OpenH323 support layer
# Verify those options with main Makefile
STDCCFLAGS += -DNDEBUG
STDCCFLAGS += $(shell grep ^DEBUG_THREADS ../../Makefile | sed -e "s/^DEBUG_THREADS[ ]*=//" -e "s/\([^\#]*\)\#.*/\1/")
STDCCFLAGS += -I../../include
STDCCFLAGS += -Wmissing-prototypes
STDCCFLAGS += -fPIC
#OPTCCFLAGS +=
CFLAGS += -pipe
TARGET += libchanh323.a
TARGET += Makefile.ast
SOURCES = ast_h323.cxx
OBJDIR = .

ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif

clean:
rm -f *.so *.o .depend

$(SOURCES):: $(SOURCES:.cxx=.cpp)
ln -f $< $@

$(SOURCES):: Makefile ../../Makefile
touch $(SOURCES)

libchanh323.a: $(OBJS)
include $(OPENH323DIR)/openh323u.mak
ar crv $@ $(OBJS)

Makefile.ast: FORCE
@echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
@echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
@echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
@if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi

FORCE:

New Config (Makefile) [working make opt]
# Makefile
#
# Make file for OpenH323 support layer
#

# Verify those options with main Makefile
STDCCFLAGS += -DNDEBUG
STDCCFLAGS += $(shell grep ^DEBUG_THREADS ../../Makefile | sed -e "s/^DEBUG_THREADS[ ]*=//" -e "s/\([^\#]*\)\#.*/\1/")
STDCCFLAGS += -I../../include
STDCCFLAGS += -Wmissing-prototypes
STDCCFLAGS += -fPIC
#OPTCCFLAGS +=
CFLAGS += -pipe
TARGET += libchanh323.a
TARGET += Makefile.ast
SOURCES = ast_h323.cxx
OBJDIR = .

ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif

include $(OPENH323DIR)/openh323u.mak

$(SOURCES):: $(SOURCES:.cxx=.cpp)
ln -f $< $@

$(SOURCES):: Makefile ../../Makefile
touch $(SOURCES)

libchanh323.a: $(OBJS)
ar crv $@ $(OBJS)


Makefile.ast: FORCE
@echo H323CFLAGS = $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) >$@.tmp
@echo H323LDFLAGS = $(CFLAGS) $(LDFLAGS) >>$@.tmp
@echo H323LDLIBS = $(LDLIBS) $(ENDLDLIBS) $(ENDLDFLAGS) >>$@.tmp
@if [ -r $@ ] && cmp -s $@ $@.tmp; then rm -f $@.tmp; else mv -f $@.tmp $@; fi

FORCE:
djsqueeze
Newsterisk
 
Posts: 7
Joined: Tue Apr 10, 2007 12:01 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest