-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imported version 1.6 of mjsip from http://mjsip.org/.
- Loading branch information
0 parents
commit d62e1db
Showing
249 changed files
with
37,596 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
Oops, something went wrong.