Opensips: Unterschied zwischen den Versionen

Aus SchnallIchNet
Wechseln zu: Navigation, Suche
Zeile 63: Zeile 63:
 
<pre>
 
<pre>
 
make \
 
make \
 +
prefix=/usr/local/opensips_1.4.2 install \
 
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" \
 
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" \
Zeile 70: Zeile 71:
 
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
 
<br/>
 
<br/>
  
Zeile 75: Zeile 77:
 
<pre>
 
<pre>
 
make \
 
make \
 +
prefix=/usr/local/opensips_1.4.2 install \
 
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" \
 
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" \
Zeile 80: Zeile 83:
 
</pre>
 
</pre>
  
 +
===Install===
 
erstelle ein debian-package fertig gebaut wurde
 
erstelle ein debian-package fertig gebaut wurde
 
  dpkg-buildpackage
 
  dpkg-buildpackage
Zeile 85: Zeile 89:
 
installiere per make install
 
installiere per make install
 
  make prefix=/usr/local/opensips_1.4.2 install
 
  make prefix=/usr/local/opensips_1.4.2 install
{{Achtung|wenn hier die option 'prefix' verwendet wird muss sie in '''allen''' vorherigen aufrufen von 'make' ebenfalls enthalten sein!!}}
+
{{Achtung|wenn hier die option 'prefix' verwendet wird <u>muss</u> sie in <u>allen</u> vorherigen aufrufen von 'make' ebenfalls enthalten sein!!}}

Version vom 22. Oktober 2008, 09:14 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

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 install \
exclude_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" \
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 install \
exclude_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" \
modules-readme

Install

erstelle ein debian-package fertig gebaut wurde

dpkg-buildpackage

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!!