debian/0000755000000000000000000000000012247101124007160 5ustar debian/source/0000755000000000000000000000000012223224046010463 5ustar debian/source/format0000644000000000000000000000001412223224046011671 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012223224046010612 5ustar debian/patches/series0000644000000000000000000000015212223224046012025 0ustar no_lib64_on_64_bits.patch no_INSTALL_file.patch fix_export.patch default_fifo.patch spelling_errors.patch debian/patches/no_lib64_on_64_bits.patch0000644000000000000000000000071312223224046015276 0ustar Description: don't try to install to lib64 Author: Victor Seva --- a/Makefile.defs +++ b/Makefile.defs @@ -424,15 +424,7 @@ endif $(info target architecture <$(ARCH)>, host architecture <$(HOST_ARCH)>) -LIBDIR ?= -ifeq ($(LIBDIR),) -ARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/') -ifeq ($(ARCHBSZ),64b) - LIBDIR = lib64 -else - LIBDIR = lib -endif -endif +LIBDIR = lib # dirs cfg_dir = etc/$(MAIN_NAME)/ debian/patches/no_INSTALL_file.patch0000644000000000000000000000077212223224046014442 0ustar Description: Don't copy the INSTALL file to the docs dir Author: Victor Seva --- a/Makefile +++ b/Makefile @@ -895,8 +895,6 @@ install-doc: $(doc_prefix)/$(doc_dir) install-every-module-doc - $(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/INSTALL - $(INSTALL_DOC) INSTALL $(doc_prefix)/$(doc_dir) $(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/README-MODULES $(INSTALL_DOC) README-MODULES $(doc_prefix)/$(doc_dir) $(INSTALL_TOUCH) $(doc_prefix)/$(doc_dir)/AUTHORS debian/patches/hardening_flags.patch0000644000000000000000000000151612223224046014751 0ustar Description: Do pass hardening {C,CPP,LD}FLAGS Author: Tzafrir Cohen Make sure that the *FLAGS variables set by dpkg-buildflags make it to kamailio: * add CPPFLAGS to CFLAGS * Don't reset CFLAGS and LDFLAGS --- a/Makefile.defs +++ b/Makefile.defs @@ -855,8 +855,6 @@ ifeq ($(use_fast_lock), yes) found_lock_method=yes endif -CFLAGS= -LDFLAGS= C_INCLUDES= # setting CFLAGS ifeq ($(mode), release) --- a/Makefile +++ b/Makefile @@ -563,6 +563,7 @@ config.mak: Makefile.defs @echo "# this file is autogenerated by make cfg" >$@ @$(call mapf2,cfg_save_var,saved_fixed_vars,$(@)) @$(call mapf2,cfg_save_var2,saved_chg_vars,$(@)) + @echo "CFLAGS += $(CPPFLAGS)" >>$@ @echo "override makefile_defs:=1" >>$@ @echo "C_DEFS:=\$$(filter-out \$$(DEFS_RM) \$$(extra_defs),\$$(C_DEFS))" \ "\$$(extra_defs)" >>$@ debian/patches/default_fifo.patch0000644000000000000000000000213112223224046014257 0ustar Description: change default fifo file Author: Victor Seva --- a/etc/kamailio.cfg +++ b/etc/kamailio.cfg @@ -287,7 +287,7 @@ # ----- mi_fifo params ----- -modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo") +modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo") # ----- tm params ----- --- a/utils/kamctl/kamctl.fifo +++ b/utils/kamctl/kamctl.fifo @@ -24,7 +24,7 @@ ### parameters # if [ -z "$OSER_FIFO" ]; then - OSER_FIFO=/tmp/kamailio_fifo + OSER_FIFO=/var/run/kamailio/kamailio_fifo fi # --- a/utils/kamctl/kamctlrc +++ b/utils/kamctl/kamctlrc @@ -122,7 +122,7 @@ # CTLENGINE="FIFO" ## path to FIFO file -# OSER_FIFO="FIFO" +# OSER_FIFO="/var/run/kamailio/kamailio_fifo" ## check ACL names; default on (1); off (0) # VERIFY_ACL=1 @@ -140,7 +140,7 @@ ## Kamailio START Options ## PID file path - default is: /var/run/kamailio.pid -# PID_FILE=/var/run/kamailio.pid +# PID_FILE=/var/run/kamailio/kamailio.pid ## Extra start options - default is: not set # example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64" debian/patches/fix_export.patch0000644000000000000000000000066512223224046014031 0ustar Description: make sure symbols are exported from main binary to allow loading modules Author: Tzafrir Cohen --- a/Makefile +++ b/Makefile @@ -200,6 +200,8 @@ main_makefile=1 include Makefile.defs +$(MAIN_NAME): LDFLAGS += -Wl,--export-dynamic + static_modules_path=$(addprefix modules/, $(static_modules)) extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path))) extra_objs=$(extra_sources:.c=.o) debian/patches/spelling_errors.patch0000644000000000000000000001510312223224046015044 0ustar Description: fix spelling errors on binaries Author: Victor Seva --- a/modules/cdp/diameter_peer.c +++ b/modules/cdp/diameter_peer.c @@ -417,8 +417,8 @@ lock_release(shutdownx_lock); } - /* wait for all childs to clean up nicely (acceptor, receiver, timer, workers) */ - LM_INFO("destroy_diameter_peer(): Terminating all childs...\n"); + /* wait for all children to clean up nicely (acceptor, receiver, timer, workers) */ + LM_INFO("destroy_diameter_peer(): Terminating all children...\n"); while(pid_list->tail){ pid = dp_last_pid(); if (pid<=0||pid==getpid()){ --- a/modules/ims_auth/authims_mod.c +++ b/modules/ims_auth/authims_mod.c @@ -108,7 +108,7 @@ /* fixed parameter storage */ str scscf_name_str; /**< fixed name of the S-CSCF */ -/* used mainly in testing - load balancing with SIPP where we dont want to worry about auth */ +/* used mainly in testing - load balancing with SIPP where we don't want to worry about auth */ int ignore_failed_auth = 0; /* --- a/modules/ims_auth/authorize.c +++ b/modules/ims_auth/authorize.c @@ -648,7 +648,7 @@ LM_ERR("no matching auth vector found - maybe timer expired\n"); if (ignore_failed_auth) { - LM_WARN("NB: Ignoring all failed auth - check your config if you dont expect this\n"); + LM_WARN("NB: Ignoring all failed auth - check your config if you don't expect this\n"); ret = AUTH_OK; } @@ -783,7 +783,7 @@ } if (ignore_failed_auth) { - LM_WARN("NB: Ignoring all failed auth - check your config if you dont expect this\n"); + LM_WARN("NB: Ignoring all failed auth - check your config if you don't expect this\n"); ret = AUTH_OK; } --- a/modules/ims_icscf/db.c +++ b/modules/ims_icscf/db.c @@ -343,7 +343,7 @@ } if (res->n == 0) { - LM_DBG("DBG:ims_icscf_db_get_capabilities: No Capabilites found... not critical...\n"); + LM_DBG("DBG:ims_icscf_db_get_capabilities: No Capabilities found... not critical...\n"); return 1; } else { --- a/modules/ims_isc/mark.c +++ b/modules/ims_isc/mark.c @@ -155,7 +155,7 @@ } break; default: - LM_ERR("isc_mark_get: unkown parameter found: %c !\n", x.s[i]); + LM_ERR("isc_mark_get: unknown parameter found: %c !\n", x.s[i]); } i = j + 1; } else --- a/modules/iptrtpproxy/doc/iptrtpproxy_admin.xml +++ b/modules/iptrtpproxy/doc/iptrtpproxy_admin.xml @@ -27,7 +27,7 @@ This &kamailio; module is written as a light-weight module, there is no - dialog managment as in Nathelper. The reason is that such an API + dialog management as in Nathelper. The reason is that such an API should be provided by core or a specialized dialog manager module. Because such module is not in git, session information may be stored in extra attributes of the avp_db module and --- a/modules/mangler/contact_ops.c +++ b/modules/mangler/contact_ops.c @@ -369,7 +369,7 @@ format->rcv_proto=s_sctp; break; default: - BUG("unkown proto %d\n", msg->rcv.proto); + BUG("unknown proto %d\n", msg->rcv.proto); } }else{ format->rcv_proto.s=0; --- a/modules/presence/event_list.c +++ b/modules/presence/event_list.c @@ -255,7 +255,7 @@ } EvList->ev_count++; - LM_DBG("succesfully added event: %.*s - len= %d\n",ev->name.len, + LM_DBG("successfully added event: %.*s - len= %d\n",ev->name.len, ev->name.s, ev->name.len); done: free_event_params(parsed_event.params.list, PKG_MEM_TYPE); --- a/modules/presence/hash.c +++ b/modules/presence/hash.c @@ -634,7 +634,7 @@ if(presentity->event->get_rules_doc(&presentity->user, &presentity->domain, &xcap_doc)< 0) { - LM_ERR("failed to retreive xcap document\n"); + LM_ERR("failed to retrieve xcap document\n"); ret= -1; goto done; } --- a/modules/pua_mi/mi_func.c +++ b/modules/pua_mi/mi_func.c @@ -220,7 +220,7 @@ publ.event= get_event_flag(&event); if(publ.event< 0) { - LM_ERR("unkown event\n"); + LM_ERR("unknown event\n"); return init_mi_tree(400, "Unknown event", 13); } if(content_type.len!= 1) @@ -461,7 +461,7 @@ subs.event= get_event_flag(&event); if(subs.event< 0) { - LM_ERR("unkown event\n"); + LM_ERR("unknown event\n"); return init_mi_tree(400, "Unknown event", 13); } --- a/modules/uid_avp_db/uid_avp_db.c +++ b/modules/uid_avp_db/uid_avp_db.c @@ -285,7 +285,7 @@ uri_type_to_str(puri.type, &(load_uri_attrs_cmd->match[2].v.lstr)); if (db_exec(&res, load_uri_attrs_cmd) < 0) { - ERR("Error while quering database\n"); + ERR("Error while querying database\n"); return -1; } @@ -307,7 +307,7 @@ } if (db_exec(&res, load_user_attrs_cmd) < 0) { - ERR("Error while quering database\n"); + ERR("Error while querying database\n"); return -1; } --- a/modules/xhttp_pi/xhttp_pi_fnc.c +++ b/modules/xhttp_pi/xhttp_pi_fnc.c @@ -2449,7 +2449,7 @@ LM_DBG("[%.*s] has flags [%d]\n", key->len, key->s, flags); if(flags){ XHTTP_PI_BUILD_REPLY(ctx, - "Unkown validation [%d] for %s.", + "Unknown validation [%d] for %s.", table->cols[i].validation, key->s); goto done; } --- a/utils/kamctl/kamctl.8 +++ b/utils/kamctl/kamctl.8 @@ -43,7 +43,7 @@ .TP 16 -.I Access control list (acl) managment commands: +.I Access control list (acl) management commands: .TP .B acl show [] Show user membership @@ -55,7 +55,7 @@ Grant user membership(s) (*) .TP 16 -.I Least cost routes (lcr) managment command: +.I Least cost routes (lcr) management command: .TP .B lcr dump Show in memory gateways and routes tables @@ -64,7 +64,7 @@ Reload lcr gateways and routes .TP 16 -.I Carrierroute tables('cr') managment commands: +.I Carrierroute tables('cr') management commands: .TP .B cr show Show tables @@ -88,7 +88,7 @@ Remove a carrier .TP 16 -.I Remote-Party-ID (RPID) managment commands: +.I Remote-Party-ID (RPID) management commands: .TP .B rpid add Add rpid for a user (*) @@ -100,7 +100,7 @@ Show rpid of a user .TP 16 -.I Subscriber managment commands: +.I Subscriber management commands: .TP .B add Add a new subscriber (*) @@ -130,7 +130,7 @@ Remove all entres for the given src_ip .TP 16 -.I Dispatcher managment commands: +.I Dispatcher management commands: .TP .B dispatcher show Show dispatcher gateways @@ -154,7 +154,7 @@ Restart phone configured for .TP 16 -.I User location('ul') or aliases managment commands: +.I User location('ul') or aliases management commands: .B ul show [] Show in-RAM online users .TP debian/patches/multiarch_support.patch0000644000000000000000000000121212223224046015413 0ustar Description: Use the multiarch libdir Author: Victor Seva Use the multiarch libdir (rather than the lib64/ schema used by Upstream) --- a/Makefile.defs +++ b/Makefile.defs @@ -411,15 +411,12 @@ endif $(info target architecture <$(ARCH)>, host architecture <$(HOST_ARCH)>) -LIBDIR ?= +LIBDIR ?= ifeq ($(LIBDIR),) -ARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/') -ifeq ($(ARCHBSZ),64b) - LIBDIR = lib64 -else - LIBDIR = lib -endif + ARCH_TRIPLET=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + LIBDIR = lib/$(ARCH_TRIPLET) endif +$(info LIBDIR <$(LIBDIR)>) # dirs cfg_dir = etc/$(MAIN_NAME)/ debian/rules0000755000000000000000000001435412223224046010252 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. DEBVERSION:=$(shell head -n 1 debian/changelog \ | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p') FILENAME := kamailio_$(UPVERSION).orig.tar.gz URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # modules not in the "main" kamailio package EXCLUDED_MODULES= # extra modules to skip, because they are not compilable now # - regardless if they go to the main kamailio package or to some module package, # they will be excluded from compile and install of all EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy purple mi_xmlrpc # module groups that are packaged in seperate packages # (with the name kamailio-$(group_name)-modules) # Note: the order is important (should be in dependency order, the one # on which other depend first) PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \ ldap xml perl utils lua memcached \ snmpstats carrierroute xmpp cpl redis python geoip\ sqlite json mono ims # name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b) LIBDIR ?= lib/$(DEB_HOST_MULTIARCH) # directories with possible duplicate libraries (that should be deleted # from current module* packages) DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \ $(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio # "function" to get package short name out of a dir/module_name # it also transforms db_foo into foo mod_name=$(subst db_,,$(lastword $(subst /, ,$(1)))) define PACKAGE_GRP_BUILD_template # package all the modules in PACKAGE_GROUPS in separate packages $(foreach grp,$(PACKAGE_GROUPS),\ $(MAKE) every-module group_include="k$(grp)" quiet=verbose ) endef define PACKAGE_GRP_INSTALL_template $(foreach grp,$(PACKAGE_GROUPS),\ $(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \ basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \ cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \ doc-dir=share/doc/kamailio-$(grp)-modules quiet=verbose # eliminate duplicate libs -for d in $(DUP_LIBS_DIRS); do \ test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\ for r in `find $$d -name 'lib*'|xargs`; do \ echo "removing $(grp) lib `basename $$r` present also in $$d";\ rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \ done ; \ done find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \; ) endef ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif # CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS # LDFLAGS -> LD_EXTRA_OPTS CUSTOM_BUILDFLAGS:=$(shell dpkg-buildflags --export=configure| \ sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g') configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. $(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \ cfg_target=/etc/kamailio/ \ basedir=$(CURDIR)/debian/kamailio \ skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \ $(CUSTOM_BUILDFLAGS) \ group_include="kstandard" quiet=verbose touch configure-stamp build: build-stamp build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) all quiet=verbose # make groups $(call PACKAGE_GRP_BUILD_template) # make single-module packages $(call PACKAGE_MODULE_BUILD_template) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. $(MAKE) maintainer-clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/kamailio $(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard" # make group packages $(call PACKAGE_GRP_INSTALL_template) mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \ $(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover # install /etc/default/kamailio file mkdir -p $(CURDIR)/debian/kamailio/etc/default cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio # This single target is used to build all the packages, all at once, or # one at a time. So keep in mind: any options passed to commands here will # affect _all_ packages. Anything you want to only affect one package # should be put in another target, such as the install target. binary-common: dh_testdir dh_testroot dh_installdebconf dh_installdocs dh_installexamples dh_installmenu dh_installinit -pkamailio -- defaults 23 dh_installcron dh_installman dh_installinfo dh_installchangelogs ChangeLog dh_link dh_strip --dbg-package=kamailio-dbg dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture-independent packages using the common target binary-indep: build install # (Uncomment this next line if you have such packages.) # $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # We have nothing to do by default. # Build architecture-dependent packages using the common target binary-arch: build install $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common # Any other binary targets build just one binary package at a time. binary-%: build install $(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$* print-version: @@echo "Debian version: $(DEBVERSION)" @@echo "Upstream version: $(UPVERSION)" get-orig-source: @@dh_testdir @@[ -d ../tarballs/. ]||mkdir -p ../tarballs @@echo Downloading $(FILENAME) from $(URL) ... @@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL) binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/kamailio.README.Debian0000644000000000000000000000373012223224046013014 0ustar Kamailio for Debian ------------------- * TLS support ------------- Due to a license incompatibility between the GPL and the OpenSSL license, we cannot ship Kamailio with TLS enabled. However, if you need Kamailio with TLS, it's easy to get it: - apt-get build-dep kamailio - apt-get install libcurl4-openssl-dev fakeroot build-essential - apt-get source kamailio - execute the script kamailio-[...]/debian/control.tls.sh - move kamailio-[...]/debian/control.tls to kamailio-[...]/debian/control - add "tls outbound websocket" to PACKAGE_GROUPS - run dpkg-buildpackage -rfakeroot You will get this new modules: - kamailio-tls-modules - kamailio-websocket-modules - kamailio-outbound-modules * init script check for fork=no ------------------------------- The Kamailio init script will not start Kamailio on boot if fork=no is specified in the config file. The check in the initscript will match any occurrence of fork=no in the file, even inside C-style comments. You can disable this check in the init script if you wish; just comment out the calls to the check_fork function in the script. Your changes to the init script will be preserved upon upgrade, as the file is tagged as a conffile. * Kamailio setup ---------------- To setup Kamailio, you need to: - configure Kamailio properly to suit your needs - edit /etc/default/kamailio, adjust the MEMORY parameter and set RUN_KAMAILIO to "yes" If you are building an HA cluster using heartbeat or similar, you'll want to disable the init script by running: update-rc.d kamailio remove so that Kamailio will not be launched at system startup. You still need to set RUN_KAMAILIO to "yes" if you want to use the /etc/init.d/kamailio init script. Set the DUMP_CORE parameter in /etc/default/kamailio to "yes" if you want to get a core dump in case Kamailio crashes. The debug symbols for Kamailio are provided by the kamailio-dbg package. -- Victor Seva Mon, 29 Apr 2013 11:01:06 +0200 debian/control0000644000000000000000000003725512247100705010603 0ustar Source: kamailio Section: net Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian VoIP Team Uploaders: Kilian Krause , Henning Westerholt , Victor Seva , Tzafrir Cohen Build-Depends: bison, debhelper (>= 9), docbook-xml, dpkg-dev (>= 1.16.1.1), flex, libconfuse-dev, libcurl4-gnutls-dev, libdb-dev (>= 4.6.19), libevent-dev, libexpat1-dev, libgeoip-dev (>= 1.4.5), libjson0-dev, libldap2-dev, liblua5.1-0-dev, libmemcache-dev, libmono-2.0-dev, libmysqlclient-dev, libncurses5-dev, libpcre3-dev, libperl-dev, libpq-dev, libradiusclient-ng-dev, libreadline-dev, libsasl2-dev, libsnmp-dev, libsqlite3-dev, libxml2-dev, libhiredis-dev (>= 0.10.0), libunistring-dev, python, python-dev, unixodbc-dev, xsltproc Standards-Version: 3.9.4 Homepage: http://www.kamailio.org/ Vcs-git: git://anonscm.debian.org/pkg-voip/kamailio.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git Package: kamailio Architecture: linux-any Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, python, adduser Suggests: kamailio-mysql-modules, kamailio-postgres-modules, kamailio-unixodbc-modules, kamailio-cpl-modules, kamailio-radius-modules, kamailio-presence-modules, kamailio-xml-modules, kamailio-perl-modules, kamailio-snmpstats-modules, kamailio-xmpp-modules, kamailio-carrierroute-modules, kamailio-berkeley-modules, kamailio-ldap-modules, kamailio-python-modules, kamailio-redis-modules, kamailio-lua-modules, kamailio-mono-modules Description: very fast and configurable SIP proxy Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . C Shell-like scripting language provides full control over the server's behaviour. Its modular architecture allows only required functionality to be loaded. . Among others, the following modules are available: digest authentication, CPL scripts, instant messaging, MySQL support, presence agent, RADIUS authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction module, registrar and user location, XML-RPC interface. . This package contains the main Kamailio binary along with the principal modules and support binaries. Package: kamailio-dbg Priority: extra Section: debug Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, kamailio (= ${binary:Version}) Description: very fast and configurable SIP proxy [debug symbols] Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains the debugging symbols for the Kamailio binaries and modules. You only need to install it if you need to debug Kamailio. Package: kamailio-geoip-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the geoip module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the geoip module, an extension allowing to use GeoIP API within configuration file. Package: kamailio-sqlite-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Recommends: sqlite3 Description: SQLite database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the SQLite database driver for Kamailio. Package: kamailio-json-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Json parser and jsonrpc modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides json parser for Kamailio's configuration file and the JSON-RPC client over netstrings. Package: kamailio-memcached-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Replaces: kamailio-memcached-module Description: Provides the memcached module, an interface to the memcached server Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the memcached module, an interface to the memcached server, a high-performance, distributed memory object caching system. Package: kamailio-lua-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the app_lua module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the app_lua module, an extension allowing to execute embedded Lua applications within configuration file. Package: kamailio-mono-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the app_mono module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the app_mono module, an extension allowing to execute embedded Mono applications within configuration file. Package: kamailio-python-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, python-dev, kamailio (= ${binary:Version}) Description: contains the app_python module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the app_python module, an extension allowing to execute embedded Python applications within configuration file. Package: kamailio-redis-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Redis database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the Redis NOSQL database driver for Kamailio. Package: kamailio-mysql-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), mysql-client Description: MySQL database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the MySQL database driver for Kamailio. Package: kamailio-postgres-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), postgresql-client Description: PostgreSQL database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the PostgreSQL database driver for Kamailio. Package: kamailio-cpl-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: CPL module (CPL interpreter engine) for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides a CPL (Call Processing Language) interpreter for Kamailio, turning Kamailio into a CPL server (storage and interpreter). Package: kamailio-radius-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: RADIUS modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides a set of RADIUS modules for Kamailio, for authentication, peering, group membership and messages URIs checking against a RADIUS server. Package: kamailio-unixodbc-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: unixODBC database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the unixODBC database driver for Kamailio. Package: kamailio-presence-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: SIMPLE presence modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides several Kamailio modules for implementing presence server and presence user agent for RICH presence, registrar-based presence, external triggered presence and XCAP support. Package: kamailio-perl-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Perl extensions and database driver for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides an interface for Kamailio to write Perl extensions and the perlvdb database driver for Kamailio. Package: kamailio-snmpstats-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), snmpd Description: SNMP AgentX subagent module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the snmpstats module for Kamailio. This module acts as an AgentX subagent which connects to a master agent. Package: kamailio-xmpp-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: XMPP gateway module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the SIP to XMPP IM translator module for Kamailio. Package: kamailio-xml-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Replaces: kamailio-xml-module, kamailio-xmlrpc-module Provides: kamailio-xmlrpc-modules Description: XML based extensions for Kamailio's Management Interface Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides: - the XMLRPC transport implementations for Kamailio's Management and Control Interface. - xmlops module for XPath operations in configuration file Package: kamailio-carrierroute-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: carrierroute module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the carrierroute module for Kamailio, an integrated solution for routing, balancing and blacklisting. Package: kamailio-berkeley-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), db-util, db-upgrade-util Description: Berkeley database module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the Berkeley database module for Kamailio, a high-performance embedded DB kernel. All database tables are stored in files, no additional server is necessary. Package: kamailio-berkeley-bin Architecture: linux-any Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: Berkeley database module for Kamailio - helper program Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides helper modules for the Berkeley database module for Kamailio, a high-performance embedded DB kernel. You should normally install kamailio-berkeley-modules and not this package directly. Package: kamailio-ldap-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: LDAP modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the ldap and h350 modules for Kamailio, enabling LDAP queries from the Kamailio config and storage of SIP account data in an LDAP directory. Package: kamailio-ims-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: IMS module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains various Diameter interfaces and modules for Kamailio to run as an IMS core. Package: kamailio-utils-modules Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Provides a set utility functions for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . Provides a set of utility functions for Kamailio, which are not related to the server configuration. debian/changelog0000644000000000000000000005547712247101124011054 0ustar kamailio (4.0.4-1ubuntu2) trusty; urgency=low * Also depend on db-util. -- Dmitrijs Ledkovs Mon, 02 Dec 2013 12:51:20 +0000 kamailio (4.0.4-1ubuntu1) trusty; urgency=low * Use db-upgrade-util, instead of hard coding dbX.Y-util dependency. -- Dmitrijs Ledkovs Mon, 02 Dec 2013 12:01:20 +0000 kamailio (4.0.4-1) unstable; urgency=low * New upstream release * debian/patches: - remove applied patches -- Victor Seva Thu, 03 Oct 2013 10:14:41 +0200 kamailio (4.0.3-2) unstable; urgency=low * fix init script exit status * debian/patches/upstream: - add upstream fixes -- Victor Seva Fri, 06 Sep 2013 11:42:07 +0200 kamailio (4.0.3-1) unstable; urgency=low [ Victor Seva ] * New upstream release * debian/control: - change vcs info to our git repository - add sqlite3 Recommends on sqlite-modules (Close: #715230) - change Architecture to linux-any (Close: #712182) * debian/patches/default_fifo.patch: - fix kamctlrc defaults * debian/patches/spelling_errors.patch: - fix spelling errors on binaries * debian/rules: - use upstream CC_EXTRA_OPTS and LD_EXTRA_OPTS environment variables to pass hardening flags (Close: #690396) * debian/kamailio.init: - use lsb init-functions -- Victor Seva Tue, 20 Aug 2013 11:45:03 +0200 kamailio (4.0.2-1) unstable; urgency=low * New upstream release * debian/rules: - changed depends for build-arch and build-indep rules to build-stamp (Closes: #707038) - added quiet=verbose as suggested by Matthias Klose * Added debian/patches/default_fifo.patch (Closes: #712083) - use /var/run/kamailio/ dir instead of /tmp for fifo -- Victor Seva Thu, 13 Jun 2013 09:05:39 +0200 kamailio (4.0.1-1) unstable; urgency=low * New upstream release (Closes: #704118) * debian/control.tls + refreshed (Closes: #704683) + added new websocket and outbound modules * debian/control: + added new ims modules + remove openser stuff * debian/rules: + kambdb_recover binary is not in source. + added ims module * debian/patches/upstream: + removed upstream fixes for the previous release. * debian/patches: + removed plumb_md5.patch and plumb_md5_fixes.patch merged upstream ( Thanks miconda ) + arm_fix.patch applied upstream (Closes: #690388) Thanks Matthias Klose * debian/backports/squeeze: + remove call to dpkg-buildflags + do not apply hardening_flags.patch * debian/copyright: + updated modules path -- Victor Seva Mon, 29 Apr 2013 11:34:47 +0200 kamailio (3.3.0-1) unstable; urgency=low [ Julien BLACHE ] * OpenSER has been renamed to Kamailio (closes: #527615). + s/openser/kamailio/ pretty much everywhere. * debian/control: + Add transitional openser* packages. + Remove myself from Uploaders. + Move openser-dbg and kamailio-dbg to debug section. [ Henning Westerholt ] * finish renaming from openser to kamailio started from Julien Blache * merge upstream changes in packaging scripts * debian/control: + add new modules with dependencies + fix description for radius package + add python to kamailio dependencies to fix lintian error + add myself to Uploaders * debian/kamailio.default: + extend description in kamailio.default * debian/kamailio.init: + add example core dump directory setting to init file + small reformatting in init file, mostly whitespace changes + fix small error in package name definition * debian/kamailio.README.Debian: + add a note about upgrades from a previous OpenSER version + provide links to the upstream upgrade guide * debian/kamailio.dirs: + its not necessary to create /var/run/kamailio in the package, adduser should do this in the postinst script * debian/kamailio.preinst, debian/kamailio-radius-modules.preinst: + add preinst helper scripts to help upgrade from openser [ Victor Seva ] * New upstream release * debian/rules: + replaced for the kamailio debian/rules. + fix get-orig-source. Update URL + change UPVERSION initialitation. Now bpo versions works too + fix modules cleanup install. * Switch to dpkg-source 3.0 (quilt) format * debian/control: + remove dpatch + add myself as Uploader + add ${misc:Depends} to all binary packages (lintian suggestion) + multiarch support. * debian/patches: + remove all patches. + added upstream fixes. + no_lib64_on_64_bits.patch ( used on squeeze backport) + multiarch_support.patch + added no_INSTALL_file.patch * debian/watch updated * debian/kamailio.init: + add $remote_fs (lintian suggestion) * debian/copyright + using copyright-format/1.0/ * debian/backports + added squeeze script [ Tzafrir Cohen ] * Make sure hardening *FLAGS make it through the build system: - hardening_flags.patch: get them through. - Use buildflags.mk from dpkg-dev (and require 1.16.1.1). - fix_export.patch - Related(?) link issue. * Rebuild kambdb_recover that is shiped in the source. * Package kamailio-berkeley-bin for kambdb_recover. * Bump standards version to 3.9.3 while we're at it. * plumb_md5.patch and plumb_md5_fixes.patch: avoid the RSA md5 code. * Simpler editing of the defaults file: remmed-out by default. * Removed unneeded manual library dependencies. -- Tzafrir Cohen Sat, 30 Jun 2012 14:18:32 +0300 openser (1.3.2-3) unstable; urgency=low * debian/patches/12_acc_enable_radius.dpatch: + Updated; disable RADIUS support for the acc module in the sample config file, otherwise the module fails to initialize and OpenSER can't start (closes: #491705). -- Julien BLACHE Mon, 21 Jul 2008 22:34:44 +0200 openser (1.3.2-2) unstable; urgency=low * debian/control: + Fix capitalization here and there (closes: #483753). + Bump Standards-Version to 3.8.0 (no changes). -- Julien BLACHE Sat, 07 Jun 2008 12:20:27 +0200 openser (1.3.2-1) unstable; urgency=low [ Julien BLACHE ] * New upstream release. * debian/control, debian/rules, openser-osp-module.examples: + Add osp module, disabled by default in Debian due to OpenSSL license issues. * openser.README.Debian: + Add instructions to build the TLS variant and the OSP module. * debian/patches/01_Makefile_fixes.dpatch: + Removed; merged upstream. [ Patrick Matthäi ] * debian/control: + We do not need to conflict on older binary versions at openser-dbg while we still depend on the right version. * debian/control, debian/rules: + Removed some useless whitespaces at EOL. -- Julien BLACHE Sun, 18 May 2008 11:19:28 +0200 openser (1.3.1-3) unstable; urgency=low [ Julien BLACHE ] * debian/openser.init: + Add more services dependencies to the LSB header. [ Victor Seva ] * debian/openser.init: (Closes: #470535) - Fixed a bug in creating necessary $HOMEDIR Thanks to Marcos Hack for the hint and fix. Thanks to Stefan Ebner -- Julien BLACHE Sat, 05 Apr 2008 17:21:41 +0200 openser (1.3.1-2) unstable; urgency=low * debian/openser.init: + Fix echo -e bashism (closes: #472896). -- Julien BLACHE Fri, 28 Mar 2008 22:54:41 +0100 openser (1.3.1-1) unstable; urgency=low * New upstream release. * debian/patches/01_fix_openser_cfg.dpatch: + Removed; merged upstream. * debian/patches/02_uac_fix_avp_parsing.dpatch: + Removed; merged upstream. * debian/patches/03_allow_empty_transformations.dpatch: + Removed; merged upstream. * debian/patches/04_perl_for_perl5.10.dpatch: + Removed; merged upstream. * debian/patches/01_Makefile_fixes.dpatch: + Added; fix a typo in top-level Makefile. -- Julien BLACHE Wed, 12 Mar 2008 22:43:58 +0100 openser (1.3.0-3) unstable; urgency=low * debian/patches/04_perl_for_perl5.10.dpatch: + Added; from upstream trunk r3742, fix perl module build with perl 5.10 (closes: #466881). * debian/copyright: + Fix copyright notice. * debian/control: + Build-Depend on libdb-dev (>= 4.6.19) instead of libdb-dev (>= 4.6.19-1). -- Julien BLACHE Sat, 01 Mar 2008 20:36:31 +0100 openser (1.3.0-2) unstable; urgency=low * debian/patches/01_fix_openser_cfg.dpatch: + Added; fix default openser.cfg, from rev 3376. * debian/patches/02_uac_fix_avp_parsing.dpatch: + Added; fix avp defintion parsing in the uac module, from rev 3414. * debian/patches/03_allow_empty_transformations.dpatch: + Added; allow some transformations to accept an empty buffer, from rev 3436. -- Julien BLACHE Sun, 23 Dec 2007 14:42:55 +0100 openser (1.3.0-1) experimental; urgency=low * New upstream release. + Adds new variable $adu to make it easier to check the auth digest URI matches the To/R-URI; in response to CVE-2007-5469 (closes: #446956). * debian/control: + Add build-dependency on libcurl4-gnutls-dev. * debian/rules: + Add the xcap_client module in openser-presence-modules. -- Julien BLACHE Thu, 13 Dec 2007 17:47:34 +0100 openser (1.3.0~svn20071212-1) experimental; urgency=low * New SVN snapshot. * debian/control: + Rename openser-module-perl to openser-modules-perl and update the description for the additional perlvdb module. + Add openser-ldap-modules. * debian/rules: + Build the perlvdb module and install it. + Add LDAP modules. -- Julien BLACHE Wed, 12 Dec 2007 17:01:19 +0100 openser (1.3.0~svn20071207-1) experimental; urgency=low * New SVN snapshot. * debian/patches/12_acc_enable_radius.dpatch: + Added; enable RADIUS accounting in the acc module. This effectively pulls in libradiusclient-ng2 as a dependency of the main openser package, but that dependency should go away in a future OpenSER release (closes: #454660). * debian/control: + Bump Standards-Version to 3.7.3 (no changes). -- Julien BLACHE Fri, 07 Dec 2007 13:24:24 +0100 openser (1.3.0~svn20071129-1) experimental; urgency=low * New SVN snapshot. * debian/patches/12_kfreebsd_support.dpatch: + Removed; merged upstream. -- Julien BLACHE Thu, 29 Nov 2007 21:37:28 +0100 openser (1.3.0~svn20071115-3) experimental; urgency=low * debian/control: + openser-berkeley-module needs dbX.Y-util. * debian/patches/12_kfreebsd_support.dpatch: + Added; add kfreebsd support to the build system. -- Julien BLACHE Wed, 28 Nov 2007 17:52:32 +0100 openser (1.3.0~svn20071115-2) experimental; urgency=low * debian/rules: + Force CFLAGS for the bdb_recover build, too (closes: #451908). -- Julien BLACHE Mon, 19 Nov 2007 10:56:18 +0100 openser (1.3.0~svn20071115-1) experimental; urgency=low * OpenSER 1.3.0 packaging pre-release. * debian/patches/01_psql_connect.dpatch: + Removed; merged upstream. * debian/patches/02_xmlrpc_update.dpatch: + Removed; merged upstream. * debian/control: + New packages: openser-carrierroute-module, openser-berkeley-module. + openser Suggests both new packages. + Add Build-Dependencies on xsltproc, libconfuse-dev and libdb-dev. * debian/rules: + Update list of presence modules. + Add the carrierroute and berkeley modules. + Build db schemas and bdb utils. + Install openser documentation. -- Julien BLACHE Thu, 15 Nov 2007 16:19:18 +0100 openser (1.2.2-3) unstable; urgency=low * debian/patches/02_xmlrpc_update.dpatch: + Added; Backported from trunk rev 2870, update mi_xmlrpc code for newer libxmlrpc versions (closes: #445111). -- Julien BLACHE Sat, 06 Oct 2007 12:04:46 +0200 openser (1.2.2-2) unstable; urgency=low [ Julien BLACHE ] * debian/patches/01_psql_connect.dpatch: + Added; Fix postgresql failure, from SVN (closes: #441960). [ Kilian Krause ] * Add dpkg-dev (>= 1.13.19) to Build-Depends for binary:Version * Update Maintainer to Debian VoIP Team * Add myself to Uploaders. -- Julien BLACHE Wed, 12 Sep 2007 12:09:35 +0200 openser (1.2.2-1) unstable; urgency=low * New upstream release. + Presence module users need to upgrade their database schema, see release notes for details. -- Julien BLACHE Thu, 16 Aug 2007 18:04:41 +0200 openser (1.2.1-2) unstable; urgency=low * debian/control: + Use ${binary:Version} instead of ${Source-Version}. * debian/rules: + Do not ignore make proper errors. -- Julien BLACHE Sun, 05 Aug 2007 20:46:22 +0200 openser (1.2.1-1) unstable; urgency=low * debian/control: + Build-Depend on libsnmp-dev instead of libsnmp10-dev. * debian/rules: + Build at -O2 on arm again, now that #390694 is fixed. * debian/openser.init: + Create /var/run/openser if it doesn't exist. + Add status support, patch from Henning Westerholt . * debian/openser.dirs: + Added; add /var/run/openser to the package. * debian/openser.examples: + Install the whole examples/ directory. * debian/patches/20_usrloc_lockset_fixes.dpatch: + Removed; from upstream SVN. * debian/patches/21_pua_lock_fix.dpatch: + Removed; from upstream SVN. * debian/patches/22_perl_sysv_sem.dpatch: + Removed; merged upstream. -- Julien BLACHE Thu, 24 May 2007 15:31:21 +0200 openser (1.2.0-4) unstable; urgency=low * debian/patches/21_pua_lock_fix.dpatch: + Added; fix typo in modules/pua/hash.c. * debian/patches/22_perl_sysv_sem.dpatch: + Added; fix perl module build with USE_SYSV_SEM. -- Julien BLACHE Wed, 25 Apr 2007 18:01:06 +0200 openser (1.2.0-3) unstable; urgency=low * debian/patches/20_usrloc_lockset_fixes.dpatch: + Added; fix the usrloc module when not using fast locks. -- Julien BLACHE Sun, 22 Apr 2007 15:18:25 +0200 openser (1.2.0-2) unstable; urgency=low * debian/openser.init: + exit 0 if fork=no is specified. * debian/control: + Build-Depend on libsnmp10-dev. -- Julien BLACHE Sat, 21 Apr 2007 11:33:02 +0200 openser (1.2.0-1) unstable; urgency=low * New upstream release. * Source: use the OpenSER TLS tarball * debian/control: + New packages: openser-presence-modules, openser-xmlrpc-module, openser-perl-module, openser-snmpstats-module, openser-xmpp-module (split from the -jabber-module package). + Build-Depends: libxmlrpc-c3-dev, libperl-dev, libsnmp9-dev. * debian/rules: + Always build the non-TLS flavour for Debian builds. + Add the new modules. * debian/openser.init: + Print out error messages if openser fails to start. + No longer needs to be run as root to dump core. * debian/patches/01_sourced_scripts.dpatch: + Removed; merged upstream. * debian/patches/02_openser.cfg.dpatch: + Removed; no longer needed. * debian/patches/12_fail_on_build_failure.dpatch: + Removed; merged upstream. * debian/patches/22_OpenPKG-SA-2006.042.dpatch: + Removed; fixed upstream (different fix). -- Julien BLACHE Tue, 13 Mar 2007 17:00:58 +0100 openser (1.1.1-1) unstable; urgency=low * New upstream bugfix release. * debian/patches/21_arm_register_overlap.dpatch: + Removed; Merged upstream. * debian/patches/20_pdt_domains.c_lockfix.dpatch: + Removed; Merged upstream. -- Julien BLACHE Fri, 26 Jan 2007 16:58:48 +0100 openser (1.1.0-9) unstable; urgency=medium * debian/rules: + Fix sed substitution pattern to properly get rid of the PATH variable in the openserctl, openser_mysql and openser_postgresql scripts. -- Julien BLACHE Fri, 12 Jan 2007 15:20:26 +0100 openser (1.1.0-8) unstable; urgency=high * debian/patches/22_OpenPKG-SA-2006.042.dpatch: + Added; security fix for OpenPKG-SA-2006.042 (closes: #404591). -- Julien BLACHE Tue, 26 Dec 2006 22:13:26 +0100 openser (1.1.0-7) unstable; urgency=low * Sync packaging fixes from upstream CVS. * debian/control: + Fix wrong RFC number in description (3621 vs. 3261), spotted by Dan Pascu. * debian/rules: + Add avp_radius to RADIUS_MODULES, from Bogdan-Andrei Iancu. -- Julien BLACHE Fri, 3 Nov 2006 13:35:18 +0100 openser (1.1.0-6) unstable; urgency=low * debian/patches/21_arm_register_overlap.dpatch: + Added; fix register overlap on arm (closes: #393858). -- Julien BLACHE Sun, 22 Oct 2006 19:32:55 +0200 openser (1.1.0-5) unstable; urgency=low * debian/patches/20_20_pdt_domains.c_lockfix.dpatch: + Added; fix typo in modules/pdt/domains.c:306. -- Julien BLACHE Sun, 8 Oct 2006 19:20:35 +0200 openser (1.1.0-4) unstable; urgency=low * debian/control: + openser-dbg is Priority: extra. * debian/patches/12_fail_on_build_failure.dpatch: + Added; abort the build if a module fails to build. * debian/rules: + Temporarily decrease optimisation on arm (closes: #390005). -- Julien BLACHE Sun, 8 Oct 2006 12:11:55 +0200 openser (1.1.0-3) unstable; urgency=low * debian/rules: + Remove DH_COMPAT 4 compatibility code which was introduced only for Sarge backward-compatiblity in the upstream CVS; there's now a packaging directory dedicated to Sarge. * debian/control: + Build-Depends cleanup. * debian/patches/02_openser.cfg.dpatch: + Remove the C-style comment block containing fork=no, otherwise the default config file will trigger the test for fork=no in the initscript (closes: #386464). * debian/openser.README.Debian: + Document initscript behaviour wrt fork=no. * debian/openser.init: + Add LSB header. -- Julien BLACHE Fri, 8 Sep 2006 15:04:58 +0200 openser (1.1.0-2) unstable; urgency=low * Initial Debian release (closes: #380450). * Official Debian builds have no TLS support due to the lack of OpenSSL license exception for OpenSER. Building TLS packages is supported using the upstream TLS tarball with no modifications (you'll need libssl-dev). * debian/openser.init: + Do not start OpenSER in the start target if fork=no is specified in the config file, so as to not break the boot process. * debian/rules: + Detect TLS/non-TLS sources, and enable TLS build accordingly. + get-orig-source will fetch the non-TLS version for the official builds. + Emulate debhelper v5 behaviour for debug symbols when build with DH_COMPAT 4 to ease Sarge backports. * debian/control: + Drop build-dependency on libssl-dev for official Debian builds. + Simplify dependencies/conflicts. -- Julien BLACHE Sun, 30 Jul 2006 15:23:13 +0200 openser (1.1.0-1) unstable; urgency=low * New upstream release. + Packaging updated based on Daniel-Constantin's work upstream. * debian/patches/02_postgres_module_build.dpatch: + Removed; merged upstream. * debian/patches/01_ungentooize.dpatch: + Removed; merged upstream. * debian/copyright: + Updated based on upstream's. * debian/openser.postinst: + Change openser group GECOS to "OpenSER". * debian/control: + Rework package descriptions. + Add openser-unixodbc-module package. + Build-Depend on unixodbc-dev. * debian/rules: + Build the unixodbc module. * debian/patches/01_sourced_scripts.dpatch: + Added; remove the shebang line from scripts which aren't meant for direct execution. * debian/patches/10_no_lib64_on_64_bits.dpatch: + Added; use /usr/lib even on 64bit architectures. * debian/patches/11_always_smp.dpatch: + Added; always build an SMP-enabled OpenSER. -- Julien BLACHE Wed, 12 Jul 2006 14:37:40 +0200 openser (1.0.1-1) unstable; urgency=low * Packaging sanitized. * Remove everything debconf-related; setting up an HA cluster is an advanced use of OpenSER which cannot be handled through debconf anyway. * debian/control: + Remove all -tls- packages. + Add missing build-depends: zlib1g-dev, flex, bison. + Build-Depend on libradiusclient-ng-dev, libmysqlclient15-dev. + Packages descriptions rewritten. + Add an openser-dbg package. * debian/rules: + Remove everything related to -tls- packages. + Build with -g -Wall -O2 * debian/patches/01_ungetooize.dpatch: + Added; Do not override CFLAGS if set in the environment. Allows building at a rational optimisation level, and passing extra CFLAGS for debugging. * debian/patches/02_postgres_module_build.dpatch: + Added; Remove unneeded architecture restriction for the PostgreSQL module build. -- Julien BLACHE Fri, 30 Jun 2006 22:22:11 +0200 openser (1.0.1-0) unstable; urgency=low * OpenSER v1.0.1 Release. -- Daniel-Constantin Mierla Mon, 27 Feb 2006 19:23:00 +0200 openser (1.0.0-2) unstable; urgency=low * Create a sequence file for use if the radius accounting is enabled, which is guaranteed to be writable by openser no matter what user and group is running as. If radius accounting is used, this can be added in your clients.conf that is used by openser as: seqfile /var/run/openser/openser_radius.seq * Fixed wording in the master_node template description -- Dan Pascu Fri, 03 Feb 2006 20:20:24 +0200 openser (1.0.0-1) unstable; urgency=low * Added support for debconf. A number of things can now be configured when installing the package: if to start on boot, the ammount of memory the openser server will use and if to dump core files when the server crashes. * Added support for storing startup options in /etc/default/openser. This file is used by /etc/init.d/openser to setup various startup options which no longer need to be modified in the startup script itself. * Fixed issue with not adding dependency on libradius-ng * Fixed issue with the debian postinst scripts which resulted in the openser system user not being created for the openser-tls package * Fixed issue with some debhelper entries being added twice in the openser postrm and prerm scripts * Fixed issue with the openser system user not having his home directory removed on purge * Fixed a number of typos in the Suggests and Conflicts directives in the debian control file * Up to date with recent bugfixes from upstream -- Dan Pascu Thu, 02 Feb 2006 12:47:41 +0200 openser (1.0.0-0) unstable; urgency=low * First Public Release. -- Daniel-Constantin Mierla Tue, 07 Jun 2005 18:23:19 +0200 debian/control.tls.sh0000755000000000000000000000274512223224046012013 0ustar #!/bin/bash # Script to create control with kamailio-tls-modules sed -e 's/libcurl4-gnutls-dev/libcurl4-openssl-dev,\n openssl/' control > control.tls echo "Package: kamailio-tls-modules Architecture: any Multi-Arch: same Pre-Depends: \${misc:Pre-Depends} Depends: \${misc:Depends}, \${shlibs:Depends}, kamailio (= \${binary:Version}) Description: contains the TLS kamailio transport module This has been split out of the main kamailio package, so that kamailio will not depend on openssl. This module will enable you to use the TLS transport. Package: kamailio-outbound-modules Architecture: any Multi-Arch: same Pre-Depends: \${misc:Pre-Depends} Depends: \${misc:Depends}, \${shlibs:Depends}, kamailio (= \${binary:Version}) Description: Outbound module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains the module implementing SIP outbound extension. Package: kamailio-websocket-modules Architecture: any Multi-Arch: same Pre-Depends: \${misc:Pre-Depends} Depends: \${misc:Depends}, \${shlibs:Depends}, kamailio (= \${binary:Version}) Description: Websocket module for kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains the module implementing WebSocket transport layer." >> control.tls exit 0 debian/kamailio.examples0000644000000000000000000000001412223224046012504 0ustar examples/* debian/compat0000644000000000000000000000000212223224046010361 0ustar 9 debian/kamailio.default0000644000000000000000000000127012223224046012317 0ustar # # Kamailio startup options # # Set to yes to enable kamailio, once configured properly. #RUN_KAMAILIO=yes # User to run as #USER=kamailio # Group to run as #GROUP=kamailio # Amount of memory to allocate for the running Kamailio server (in Mb) #MEMORY=64 # Enable the server to leave a core file when it crashes. # Set this to 'yes' to enable Kamailio to leave a core file when it crashes # or 'no' to disable this feature. This option is case sensitive and only # accepts 'yes' and 'no' and only in lowercase letters. # On some systems it is necessary to specify a directory for the core files # to get a dump. Look into the kamailio init file for an example configuration. #DUMP_CORE=yes debian/backports/0000755000000000000000000000000012223224046011153 5ustar debian/backports/squeeze0000755000000000000000000000227512223224046012570 0ustar #!/bin/bash # # Hook for automatic backports at buildserver.net # # Target dist: Debian Squeeze # remove Multi-arch sed -i -e 's#^DEB_HOST_MULTIARCH.*$##' -e 's#^LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)#LIBDIR ?= lib#' debian/rules sed -i -e 's#multiarch_support.patch#no_lib64_on_64_bits.patch#' debian/patches/series sed -i -e '/^Multi-Arch: .*/d' debian/control # Downgrade to debhelper 8 compat sed -i -e 's#debhelper[^,$]*[\ ,$]\+\(.*\)$#debhelper (>= 8), \1#' debian/control echo 8 > debian/compat # Hardening flags sed -i -e '/^ dpkg-dev/d' debian/control sed -i -e '/^include.*buildflags.mk/d' -e '/.*dpkg-buildflags --export=configure.*/d' debian/rules sed -i -e '/hardening_flags.patch/d' debian/patches/series # No libhiredis: sed -i -e '/libhiredis-dev/d' -e '/^Package: kamailio-redis-modules/,/^$/d' \ debian/control sed -i -e 's/ redis[ ,$]*/ /' debian/rules sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ redis/' debian/rules # No mono module sed -i -e '/libmono-2.0-dev/d' -e '/^Package: kamailio-mono-modules/,/^$/d' \ debian/control sed -i -e 's/ mono[ ,$]*/ /' debian/rules sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mono/' debian/rules sed -i -e 's/db5.1-util/db4.8-util/' debian/control exit 0 debian/watch0000644000000000000000000000020312223224046010207 0ustar version=3 opts=dversionmangle=s/\~svn([\d]+)//; \ http://www.kamailio.org/pub/kamailio/([\d.]+)/src/kamailio-([\d.]+)_src\.tar\.gz debian/control.tls0000644000000000000000000004134212223224046011373 0ustar Source: kamailio Section: net Priority: optional Maintainer: Debian VoIP Team Uploaders: Kilian Krause , Henning Westerholt , Victor Seva , Tzafrir Cohen Build-Depends: bison, debhelper (>= 9), docbook-xml, dpkg-dev (>= 1.16.1.1), flex, libconfuse-dev, libcurl4-openssl-dev, openssl, libdb-dev (>= 4.6.19), libevent-dev, libexpat1-dev, libgeoip-dev (>= 1.4.5), libjson0-dev, libldap2-dev, liblua5.1-0-dev, libmemcache-dev, libmono-2.0-dev, libmysqlclient-dev, libncurses5-dev, libpcre3-dev, libperl-dev, libpq-dev, libradiusclient-ng-dev, libreadline-dev, libsasl2-dev, libsnmp-dev, libsqlite3-dev, libxml2-dev, libhiredis-dev (>= 0.10.0), libunistring-dev, python, python-dev, unixodbc-dev, xsltproc Standards-Version: 3.9.3 Homepage: http://www.kamailio.org/ Vcs-Svn: git+ssh://git.debian.org/git/pkg-voip/kamailio.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git Package: kamailio Architecture: any Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, python, adduser Suggests: kamailio-mysql-modules, kamailio-postgres-modules, kamailio-unixodbc-modules, kamailio-cpl-modules, kamailio-radius-modules, kamailio-presence-modules, kamailio-xml-modules, kamailio-perl-modules, kamailio-snmpstats-modules, kamailio-xmpp-modules, kamailio-carrierroute-modules, kamailio-berkeley-modules, kamailio-ldap-modules, kamailio-python-modules, kamailio-redis-modules, kamailio-lua-modules, kamailio-mono-modules Description: very fast and configurable SIP proxy Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . C Shell-like scripting language provides full control over the server's behaviour. Its modular architecture allows only required functionality to be loaded. . Among others, the following modules are available: digest authentication, CPL scripts, instant messaging, MySQL support, presence agent, RADIUS authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction module, registrar and user location, XML-RPC interface. . This package contains the main Kamailio binary along with the principal modules and support binaries. Package: kamailio-dbg Priority: extra Section: debug Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, kamailio (= ${binary:Version}) Description: very fast and configurable SIP proxy [debug symbols] Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains the debugging symbols for the Kamailio binaries and modules. You only need to install it if you need to debug Kamailio. Package: kamailio-geoip-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the geoip module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the geoip module, an extension allowing to use GeoIP API within configuration file. Package: kamailio-sqlite-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Recommends: sqlite3 Description: SQLite database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the SQLite database driver for Kamailio. Package: kamailio-json-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Json parser and jsonrpc modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides json parser for Kamailio's configuration file and the JSON-RPC client over netstrings. Package: kamailio-memcached-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Replaces: kamailio-memcached-module Description: Provides the memcached module, an interface to the memcached server Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the memcached module, an interface to the memcached server, a high-performance, distributed memory object caching system. Package: kamailio-lua-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the app_lua module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the app_lua module, an extension allowing to execute embedded Lua applications within configuration file. Package: kamailio-mono-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the app_mono module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the app_mono module, an extension allowing to execute embedded Mono applications within configuration file. Package: kamailio-python-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, python-dev, kamailio (= ${binary:Version}) Description: contains the app_python module Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the app_python module, an extension allowing to execute embedded Python applications within configuration file. Package: kamailio-redis-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Redis database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the Redis NOSQL database driver for Kamailio. Package: kamailio-mysql-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), mysql-client Description: MySQL database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the MySQL database driver for Kamailio. Package: kamailio-postgres-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), postgresql-client Description: PostgreSQL database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the PostgreSQL database driver for Kamailio. Package: kamailio-cpl-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: CPL module (CPL interpreter engine) for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides a CPL (Call Processing Language) interpreter for Kamailio, turning Kamailio into a CPL server (storage and interpreter). Package: kamailio-radius-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: RADIUS modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides a set of RADIUS modules for Kamailio, for authentication, peering, group membership and messages URIs checking against a RADIUS server. Package: kamailio-unixodbc-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: unixODBC database connectivity module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the unixODBC database driver for Kamailio. Package: kamailio-presence-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: SIMPLE presence modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides several Kamailio modules for implementing presence server and presence user agent for RICH presence, registrar-based presence, external triggered presence and XCAP support. Package: kamailio-perl-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Perl extensions and database driver for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides an interface for Kamailio to write Perl extensions and the perlvdb database driver for Kamailio. Package: kamailio-snmpstats-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), snmpd Description: SNMP AgentX subagent module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the snmpstats module for Kamailio. This module acts as an AgentX subagent which connects to a master agent. Package: kamailio-xmpp-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: XMPP gateway module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the SIP to XMPP IM translator module for Kamailio. Package: kamailio-xml-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Replaces: kamailio-xml-module, kamailio-xmlrpc-module Provides: kamailio-xmlrpc-modules Description: XML based extensions for Kamailio's Management Interface Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides: - the XMLRPC transport implementations for Kamailio's Management and Control Interface. - xmlops module for XPath operations in configuration file Package: kamailio-carrierroute-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: carrierroute module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the carrierroute module for Kamailio, an integrated solution for routing, balancing and blacklisting. Package: kamailio-berkeley-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}), db5.1-util Description: Berkeley database module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the Berkeley database module for Kamailio, a high-performance embedded DB kernel. All database tables are stored in files, no additional server is necessary. Package: kamailio-berkeley-bin Architecture: any Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: Berkeley database module for Kamailio - helper program Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides helper modules for the Berkeley database module for Kamailio, a high-performance embedded DB kernel. You should normally install kamailio-berkeley-modules and not this package directly. Package: kamailio-ldap-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: LDAP modules for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package provides the ldap and h350 modules for Kamailio, enabling LDAP queries from the Kamailio config and storage of SIP account data in an LDAP directory. Package: kamailio-ims-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: IMS module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains various Diameter interfaces and modules for Kamailio to run as an IMS core. Package: kamailio-utils-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Provides a set utility functions for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . Provides a set of utility functions for Kamailio, which are not related to the server configuration. Package: kamailio-tls-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: contains the TLS kamailio transport module This has been split out of the main kamailio package, so that kamailio will not depend on openssl. This module will enable you to use the TLS transport. Package: kamailio-outbound-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Outbound module for Kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains the module implementing SIP outbound extension. Package: kamailio-websocket-modules Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, kamailio (= ${binary:Version}) Description: Websocket module for kamailio Kamailio is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, Kamailio can handle thousands calls per second even on low-budget hardware. . This package contains the module implementing WebSocket transport layer. debian/kamailio.postinst0000644000000000000000000000065312223224046012562 0ustar #! /bin/sh set -e case "$1" in configure) adduser --quiet --system --group --disabled-password \ --shell /bin/false --gecos "Kamailio SIP Server" \ --home /var/run/kamailio kamailio || true ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/kamailio-berkeley-bin.dirs0000644000000000000000000000001112223224046014172 0ustar usr/sbin debian/copyright0000644000000000000000000003550212223224046011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Kamailio Upstream-Contact: sr-dev@lists.sip-router.org Source: http://www.kamailio.org/pub/kamailio/ Files: * Copyright: 2001-2003 FhG Fokus 2006-2010 iptelorg GmbH Various others (see AUTHORS file) License: GPL-2.0+ On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2012, Victor Seva 2009, 2010, 2011, Daniel-Constantin Mierla 2010, Jon Bonilla 2009, Jonas Bergler 2009, Henning Westerholt 2007, Julien BLACHE License: GPL-2+ On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: atomic/* atomic_ops.* basex.* bit_*.c char_msg_val.h compiler_opt.h core_stats.h counters.* endianness.* futexlock.h hashes.h io_wait.* kstats_types.h lib/kcore/kstats_wrapper.* lock_ops.c lock_ops_init.h lvalue.* mem/ll_malloc.* mem/memdbg.h mem/sf_malloc.* mi/*.h mod_fix.* modules/tm/rpc_uac.* modules/counters/counters.c modules/tls/sbufq.h modules/tls/tls_bio.* modules/tls/tls_cfg.* modules/tls/tls_cfg.h modules/tls/tls_ct_wrq.* modules/tls/tls_ct_q.h modules/tls/tls_domain.* modules/tls/tls_server.h modules/tls/tls_locking.* modules/tls/tls_rpc.* modules/tls/tls_server.c modules/malloc_test/malloc_test.c modules/blst/blst.c parser/case_p_* parser/case_reas.h pvapi.h pv_core.* rand/fastrand.* raw_* rpc_lookup.* rvalue.* sctp_* ser_time.h shm_init.* sip_msg_clone.* sock_ut.* sr_compat.* str_hash.h switch.* tcp_ev.h tcp_int_send.h tcp_options.* tcp_read.h tcp_stats.* timer_proc.* tls_hooks.* tls_hooks_init.h ver.* Copyright: 2006-2010 iptelorg GmbH License: ISC Files: daemonize.* fastlock.h lock_ops.h mem/mem.* mem/f_malloc.h mem/meminfo.h mem/memtest.c mem/shm_mem.c mem/q_malloc.h mem/q_malloc.c mem/shm_mem.h mem/f_malloc.c modules/tls/tls_rpc.c modules/tls/tls_server.c modules/tls/tls_domain.c modules/tls/tls_domain.h modules/tls/tls_server.h modules/tls/tls_rpc.h pt.c pt.h sched_yield.h ut.c ut.h Copyright: 2001-2003 FhG Fokus License: ISC Files: events.* modules/topoh/* Copyright: 2009 SIP-Router.org License: ISC Files: modules/mi_rpc/mi_rpc_mod.c modules/pv/pv_xavp.* modules/usrloc/ul_rpc.* ppcfg.* xavp.* Copyright: 2009-2010 Daniel-Constantin Mierla (asipto.com) License: ISC Files: obsolete/jabber_k/tree234.* Copyright: 1999, 2000, 2001, Simon Tatham License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: modules/xmpp/xsnprintf.c obsolete/jabber_s/xsnprintf.c obsolete/jabber_k/xsnprintf.c Copyright: 1995-1998, The Apache Group License: Apache-1.0 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. All advertising materials mentioning features or use of this software must display the following acknowledgment: "This product includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/)." . 4. The names "Apache Server" and "Apache Group" must not be used to endorse or promote products derived from this software without prior written permission. . 5. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/)." . THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: modules/mi_xmlrpc/abyss* Copyright: 2000, Moez Mahfoudh License: BSD-3-clause Files: list.h Copyright: 1991, 1993 The Regents of the University of California License: BSD-3-clause Files: modules/tm/t_serial.* Copyright: 2008 Juha Heinanen License: BSD-2-clause Files: parser/sdp/sdp.* parser/sdp/sdp_helpr_funcs.* parser/sdp/sdp_cloner.h Copyright: 2008-2009 SOMA Networks, INC. 2010 VoIP Embedded, Inc License: BSD-2-clause Files: modules/tls/fixed_c_zlib.h Copyright:1998-2005 The OpenSSL Project Comment: file copied from OpenSSL 0.9.8, refers to OpenSSL License. Note that this code will not build by default in the Debian packaging. License: OpenSSL Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. All advertising materials mentioning features or use of this software must display the following acknowledgment: "This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)" . 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact openssl-core@openssl.org. . 5. Products derived from this software may not be called "OpenSSL" nor may "OpenSSL" appear in their names without prior written permission of the OpenSSL Project. . 6. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)" . THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: md5.* md5utils.c Copyright: 1991-2, RSA Data Security, Inc Comment: Note that md5.c and md5.h have been replaced in the patches plum_md5*.patch . . As for md5utils.c, according to a mail from Upstream (Daniel-Constantin Mierla): while the initial commit log for it states that it is derived from mddriver.c of RFC 1321, it seems that it was, in fact, written from scratch by Jiri Kuthan (a core developer of SER at that time, working for FhG Fokus Institute). As you can see it's rather trivial and uses a data type of SER ("str"). I didn't reimplement it as it's too trivial and looks like there's no other way to implement it. License: RSA-MD5 License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing this software or this function. . License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work. . RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind. . These notices must be retained in any copies of any part of this documentation and/or software. Files: mem/dl_* Copyright: n/a License: public-domain This is a version (aka dlmalloc) of malloc/free/realloc written by Doug Lea and released to the public domain, as explained at http://creativecommons.org/licenses/publicdomain. Send questions, comments, complaints, performance data, etc to dl@cs.oswego.edu Files: rand/isaac/* Copyright: n/a License: public-domain By Bob Jenkins. My random number generator, ISAAC. Public Domain. License: ISC Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: lib/srutils/srjson.* Copyright: 2009 Dave Gamble License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. , THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/kamailio.init0000644000000000000000000001024012223224046011633 0ustar #! /bin/sh # ### BEGIN INIT INFO # Provides: kamailio # Required-Start: $syslog $network $local_fs $remote_fs $time # Should-Start: $named slapd mysql postgresql snmpd radiusd # Should-Stop: $named slapd mysql postgresql snmpd radiusd # Required-Stop: $syslog $network $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start the Kamailio SIP proxy server # Description: Start the Kamailio SIP proxy server ### END INIT INFO . /lib/lsb/init-functions PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/kamailio NAME=kamailio DESC="Kamailio SIP server" HOMEDIR=/var/run/kamailio PIDFILE=$HOMEDIR/$NAME.pid DEFAULTS=/etc/default/kamailio RUN_KAMAILIO=no USER=kamailio GROUP=kamailio # Amount of memory to allocate for the running Kamailio server (in Mb) MEMORY=64 DUMP_CORE=no # Do not start kamailio if fork=no is set in the config file # otherwise the boot process will just stop check_fork () { if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" /etc/kamailio/kamailio.cfg; then log_failure_msg "Not starting $DESC: fork=no specified in config file; run /etc/init.d/kamailio debug instead" exit 0 fi } check_kamailio_config () { # Check if kamailio configuration is valid before starting the server set +e out=$($DAEMON -c 2>&1 > /dev/null) retcode=$? set -e if [ "$retcode" != '0' ]; then log_failure_msg "Not starting $DESC: invalid configuration file!" log_failure_msg log_failure_msg "$out" log_faiulre_msg exit 1 fi } create_radius_seqfile () { # Create a radius sequence file to be used by the radius client if # radius accounting is enabled. This is needed to avoid any issue # with the file not being writable if kamailio first starts as user # root because DUMP_CORE is enabled and creates this file as user # root and then later it switches back to user kamailio and cannot # write to the file. If the file exists before kamailio starts, it # won't change it's ownership and will be writable for both root # and kamailio, no matter what options are chosen at install time RADIUS_SEQ_FILE=/var/run/kamailio/kamailio_radius.seq if [ -d /var/run/kamailio ]; then chown ${USER}:${GROUP} /var/run/kamailio if [ ! -f $RADIUS_SEQ_FILE ]; then touch $RADIUS_SEQ_FILE fi chown ${USER}:${GROUP} $RADIUS_SEQ_FILE chmod 660 $RADIUS_SEQ_FILE fi } test -f $DAEMON || exit 0 # Load startup options if available if [ -f $DEFAULTS ]; then . $DEFAULTS || true fi if [ "$RUN_KAMAILIO" != "yes" ]; then log_failure_msg "Kamailio not yet configured. Edit /etc/default/kamailio first." exit 0 fi set -e MEMORY=$((`echo $MEMORY | sed -e 's/[^0-9]//g'`)) [ -z "$USER" ] && USER=kamailio [ -z "$GROUP" ] && GROUP=kamailio [ $MEMORY -le 0 ] && MEMORY=32 if test "$DUMP_CORE" = "yes" ; then # set proper ulimit ulimit -c unlimited # directory for the core dump files # COREDIR=/home/corefiles # [ -d $COREDIR ] || mkdir $COREDIR # chmod 777 $COREDIR # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern fi # /var/run can be a tmpfs if [ ! -d $HOMEDIR ]; then mkdir -p $HOMEDIR fi OPTIONS="-P $PIDFILE -m $MEMORY -u $USER -g $GROUP" case "$1" in start|debug) check_kamailio_config create_radius_seqfile if [ "$1" != "debug" ]; then check_fork fi log_daemon_msg "Starting $DESC: $NAME" start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- $OPTIONS || log_failure_msg " already running" log_end_msg 0 ;; stop) log_daemon_msg "Stopping $DESC: $NAME" start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON log_end_msg 0 ;; restart|force-reload) check_kamailio_config create_radius_seqfile log_daemon_msg "Restarting $DESC: $NAME" start-stop-daemon --oknodo --stop --quiet --pidfile \ $PIDFILE --exec $DAEMON sleep 1 start-stop-daemon --start --quiet --pidfile \ $PIDFILE --exec $DAEMON -- $OPTIONS log_end_msg 0 ;; status) log_daemon_msg "Status of $DESC: " status_of_porc "$PIDFILE" $NAME $NAME ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload|status|debug}" >&2 exit 1 ;; esac exit 0