Skip to content

Commit

Permalink
Imported version 1.6 of mjsip from http://mjsip.org/.
Browse files Browse the repository at this point in the history
  • Loading branch information
haumacher committed May 14, 2023
0 parents commit d62e1db
Show file tree
Hide file tree
Showing 249 changed files with 37,596 additions and 0 deletions.
109 changes: 109 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# **********************************************************************
# * MJSIP MAKEFILE *
# **********************************************************************
#
# This is a make file that builds everything.
# this works with the gnu make tool.
# If you are working with MS Windows, you can install
# cygwin (http://www.cygwin.org) or
# djgpp (http://www.delorie.com/djgpp)
#
# Major make targets:
#
# all cleans, builds everything
# sip builds sip.jar
# server builds server.jar
# ua builds ua.jar
# qsip builds qsip.jar
# gw builds gw.jar
#
# **********************************************************************

ROOT= .
include $(ROOT)/makefile-config


DOCDIR= doc
SRCDIR= src
CLASSDIR= classes
LIBDIR= lib
#LOGDIR= log


ifeq (${OS},Windows)
COLON= ;
else
COLON= :
endif


MJSIP_LIBS= $(LIBDIR)/sip.jar

NAMESPACE= org.zoolu
NAMESPACE_PATH= org/zoolu

#SIP_PACKAGES= address header message provider transaction dialog
SIP_PACKAGES= $(notdir $(wildcard $(SRCDIR)/$(NAMESPACE_PATH)/sip/*))


#%.class: %.java
# $(JAVAC) $<


# **************************** Default action **************************
default:
# $(MAKE) all
@echo MjSIP: select the package you want to build


# ******************************** Cleans ******************************
clean:
@echo make clean: to be implemented..


cleanlogs:
cd $(LOGDIR);$(RM) *.log; cd..


# ****************************** Builds all ****************************
all:
$(MAKE) sip
$(MAKE) server
$(MAKE) ua



# *************************** Creates sip.jar **************************
sip:
@echo ------------------ MAKING SIP ------------------
cd $(SRCDIR); \
$(JAVAC) -d ../$(CLASSDIR) $(NAMESPACE_PATH)/tools/*.java $(NAMESPACE_PATH)/net/*.java $(NAMESPACE_PATH)/sdp/*.java; \
$(JAVAC) -classpath ../$(CLASSDIR) -d ../$(CLASSDIR) $(addsuffix /*.java,$(addprefix $(NAMESPACE_PATH)/sip/,$(SIP_PACKAGES))); \
cd ..

cd $(CLASSDIR); \
$(JAR) -cf ../$(MJSIP_LIBS) $(addprefix $(NAMESPACE_PATH)/,tools net sdp sip) -C ../$(LIBDIR) COPYRIGHT.txt -C ../$(LIBDIR) license.txt; \
cd ..



# ************************** Creates server.jar ************************
server:
@echo ----------------- MAKING SERVER ----------------
$(JAVAC) -classpath "$(MJSIP_LIBS)" -d $(CLASSDIR) $(addsuffix /*.java,$(addprefix $(SRCDIR)/local/,server))

cd $(CLASSDIR); \
$(JAR) -cf ../$(LIBDIR)/server.jar $(addprefix local/,server); \
cd ..



# **************************** Creates ua.jar **************************
ua:
@echo ------------------- MAKING UA ------------------
$(JAVAC) -classpath "$(MJSIP_LIBS)" -d $(CLASSDIR) $(addsuffix /*.java,$(addprefix $(SRCDIR)/local/,net media ua))

cd $(CLASSDIR); \
$(JAR) -cf ../$(LIBDIR)/ua.jar $(addprefix local/,net media ua) -C .. /media/local/ua; \
cd ..

31 changes: 31 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

My Java SIP Stack (MjSip)
__________________________________________________
author: Luca Veltri ([email protected])
date: 31/2/2004



This package includes:
--------------------------------------------------------------------------
- README.txt : this file
- lib : folder containing the jar file(s)
- src : folder containing the java source codes
- classes : folder containing the classes byte codes
- log : default folder where the log files are saved
- bin : folder with some scripts ('bin_win' for windows OS, and 'bin_linux' for linux OS)
- config : default folder with configuration files
- server.cfg : a simple server configuration file
- xxx.cfg : other configuration files
- users.db : the db file for the embedded location server
- proxy.bat : script for starting a stateless proxy server
- sproxy.bat : script for starting a stateful proxy server
- registrar.bat : script for starting a registrar server
- redirect.bat : script for starting a redirect server
- uac.bat : script for starting a command-line UA
- uaw.bat : script for starting a graphical UA
- Makefile : make file for building everyting (it uses configuration parameters from file 'build-config')
- build-config : some configurations used in the Makefile
- mjsip.cfg.txt : the complete list of all configuration parameters


Loading

0 comments on commit d62e1db

Please sign in to comment.