Fixups osips_event tutorial

This commit is contained in:
DanB
2014-08-05 22:41:56 +02:00
parent c0b18e3ae6
commit 0a6f0ab0c7
6 changed files with 15 additions and 16 deletions

View File

@@ -119,6 +119,7 @@ time_window = 5m # Will only keep the CDRs who's call setup time is not older
enabled = true # Starts SessionManager service: <true|false>
switch_type = opensips # Defines the type of switch behind: <freeswitch>
# rater = internal # Address where to reach the Rater
cdrs = internal # Address where to reach the CDR server for CDR processing
# reconnects = 3 # Number of reconnects to rater/cdrs before giving up.
# debit_interval = 10 # Interval to perform debits on.
# min_call_duration = 0s # Only authorize calls with allowed duration bigger than this
@@ -136,8 +137,6 @@ switch_type = opensips # Defines the type of switch behind: <freeswitch>
[opensips]
# listen_udp = 127.0.0.1:2020 # Address where to listen for datagram events coming from OpenSIPS
# mi_addr = 127.0.0.1:8020 # Adress where to reach OpenSIPS mi_datagram module
# events_subscribe_interval = 60s # Automatic events subscription to OpenSIPS, 0 to disable it
# cdrs = internal # Address where to reach CDR Server, empty to disable CDR processing <""|internal|127.0.0.1:2013>
# reconnects = 3 # Number of attempts on connect failure.
[derived_charging]

View File

@@ -19,7 +19,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/opensips
NAME=opensips
DESC=opensips
TUTFOLDER = /usr/share/cgrates/tutorials/osips_event/opensips
TUTFOLDER=/usr/share/cgrates/tutorials/osips_event/opensips
CFGFILE=$TUTFOLDER/etc/opensips/opensips.cfg
M4CFGFILE=$TUTFOLDER/etc/opensips/opensips.m4
M4ARCHIVEDIR=$TUTFOLDER/etc/opensips/archive
@@ -107,7 +107,7 @@ if test "$DUMP_CORE" = "yes" ; then
# echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
fi
OPTIONS="-P $PIDFILE -m $S_MEMORY -M $P_MEMORY -u $USER -g $GROUP"
OPTIONS="-f $CFGFILE -P $PIDFILE -m $S_MEMORY -M $P_MEMORY -u $USER -g $GROUP"
case "$1" in
start|debug)