Opensips: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
Zeile 44: Zeile 44:
 
   module
 
   module
 
</pre>
 
</pre>
 +
to make '''modules-readme''' you need additionally:
 +
apt-get install lynx docbook docbook-html-forms docbook-to-man docbook-utils docbook-website docbook-xml docbook-xsl
  
 
==Installation==
 
==Installation==
Zeile 64: Zeile 66:
 
make \
 
make \
 
prefix=/usr/local/opensips_1.4.2 \
 
prefix=/usr/local/opensips_1.4.2 \
exclude_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle" \
+
exclude_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
skip_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle" \
+
skip_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
 
all
 
all
 
</pre>
 
</pre>
Zeile 71: Zeile 73:
 
wenn man sich z.b. fuer eine MySQL-DB entscheidet, kann/sollte man das postgres-module ausschliessen.<br/>
 
wenn man sich z.b. fuer eine MySQL-DB entscheidet, kann/sollte man das postgres-module ausschliessen.<br/>
 
man erspart sich das aufloesen der abhaengigkeiten bzgl. postgres.<br/>
 
man erspart sich das aufloesen der abhaengigkeiten bzgl. postgres.<br/>
all = opensips core + modules
+
all = opensips core + modules<br/>
 
<br/>
 
<br/>
  
Zeile 78: Zeile 80:
 
make \
 
make \
 
prefix=/usr/local/opensips_1.4.2 \
 
prefix=/usr/local/opensips_1.4.2 \
exclude_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle" \
+
exclude_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
skip_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle" \
+
skip_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
 
modules-readme
 
modules-readme
 
</pre>
 
</pre>

Version vom 22. Oktober 2008, 09:53 Uhr

Version

diese beschreibung bezieht sich auf opensips-1.4.2

Quellen runterladen

http://opensips.org/pub/opensips/

Requirements

- gcc / suncc / icc : gcc >= 2.9x; 4.[012] recommended (it will work with
   older version but it might require some options tweaking for best
   performance)
- bison or yacc (Berkley yacc)
- flex
- GNU make (on Linux this is the standard "make", on FreeBSD and Solaris is
   called "gmake") version >= 3.79.
- sed and tr (used in the makefiles)
- GNU tar ("gtar" on Solaris) and gzip if you want "make tar" to work
- GNU install or BSD install (on Solaris "ginstall") if you want "make
  install", "make bin", "make sunpkg" to work
- openssl if you want to compile the TLS support
- libsctp if you want to compile the SCTP support
- libmysqlclient & libz (zlib) -libs and devel headers- if you want mysql DB
   support (the db_mysql module)
- libpq / postgresql -libs and devel headers- if you want postgres DB
   support (the db_postgres module)
- unixodbc -libs and devel headers- if you want unixodbc DB
   support (the db_unixodbc module)
- libexpat if you want the jabber gateway support (the jabber module) or the
   XMPP gateway support
- libxml2 if you want to use the cpl-c (Call Processing Language) or
   the presence modules (presence and pua*)
- libradius-ng -libs and devel headers- if you want to use functionalities
   with radius support - authentication, accounting, group support, etc
- unixodbc - libs and devel headers - if you want UNIXODBC support as
   DB underlayer
- libxmlrpc-c3 - libs and devel headers - if you want to have XML-RPC support
   for the Management interface (MI)
- libperl - libs and devel headers - if you want PERL connector to support
   perl scripting from you config file (perl module)
- libsnmp9 - libs and devel headers - if you want SNMP client functionality
   (SNMP AgentX subagent) for opensips
- libldap libs and devel headers v2.1 or greater - if you want LDAP support
- libconfuse and devel headers - if you want to compile the carrierroute
  module

to make modules-readme you need additionally:

apt-get install lynx docbook docbook-html-forms docbook-to-man docbook-utils docbook-website docbook-xml docbook-xsl

Installation

Achtung.jpeg Wenn man TLS aktivieren moechte sollte man dies im Makefile tun

eine der ersten zeilen is auskommentiert. hier das kommentarzeichen einfach entfernen:

[...]
TLS=1
#FREERADIUS=1
auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc

#include  source related defs
include Makefile.sources
[...]

Configure/Build

configuriere und baue die software.

make \
prefix=/usr/local/opensips_1.4.2 \
exclude_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
skip_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
all

es empfiehlt sich hier, die noch einige module auszuschliessen, die man definitiv nicht brauchen wird.
wenn man sich z.b. fuer eine MySQL-DB entscheidet, kann/sollte man das postgres-module ausschliessen.
man erspart sich das aufloesen der abhaengigkeiten bzgl. postgres.
all = opensips core + modules

Readme-Files fuer alle module erstellen:

make \
prefix=/usr/local/opensips_1.4.2 \
exclude_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
skip_modules="group_radius auth_diameter auth_radius avp_radius db_flatstore db_oracle osp" \
modules-readme

Install

erstelle ein debian-package nachdem fertig gebaut wurde

dpkg-buildpackage
dpkg -i ../*.deb

installiere per make install

make prefix=/usr/local/opensips_1.4.2 install
Achtung.jpeg wenn hier die option 'prefix' verwendet wird muss sie in allen vorherigen aufrufen von 'make' ebenfalls enthalten sein!!