|
@@ -1,6 +1,6 @@
|
|
# $Id$
|
|
# $Id$
|
|
#
|
|
#
|
|
-# Sample config for MySQL accouting with OpenSER 1.2.0
|
|
|
|
|
|
+# Sample config for MySQL accouting with Kamailio 1.2.0
|
|
#
|
|
#
|
|
# - mysql module must be compiled and installed
|
|
# - mysql module must be compiled and installed
|
|
#
|
|
#
|
|
@@ -70,14 +70,14 @@ children=4
|
|
#tls_verify_client = 1
|
|
#tls_verify_client = 1
|
|
#tls_require_client_certificate = 0
|
|
#tls_require_client_certificate = 0
|
|
#tls_method = TLSv1
|
|
#tls_method = TLSv1
|
|
-#tls_certificate = "/usr/local/etc/openser/tls/user/user-cert.pem"
|
|
|
|
-#tls_private_key = "/usr/local/etc/openser/tls/user/user-privkey.pem"
|
|
|
|
-#tls_ca_list = "/usr/local/etc/openser/tls/user/user-calist.pem"
|
|
|
|
|
|
+#tls_certificate = "/usr/local/etc/kamailio/tls/user/user-cert.pem"
|
|
|
|
+#tls_private_key = "/usr/local/etc/kamailio/tls/user/user-privkey.pem"
|
|
|
|
+#tls_ca_list = "/usr/local/etc/kamailio/tls/user/user-calist.pem"
|
|
|
|
|
|
# ------------------ module loading ----------------------------------
|
|
# ------------------ module loading ----------------------------------
|
|
|
|
|
|
# set module path
|
|
# set module path
|
|
-mpath="/usr/local/lib/openser/modules/"
|
|
|
|
|
|
+mpath="/usr/local/lib/kamailio/modules/"
|
|
|
|
|
|
# Uncomment this if you want to use SQL database
|
|
# Uncomment this if you want to use SQL database
|
|
# - MySQL loaded for accounting as well
|
|
# - MySQL loaded for accounting as well
|
|
@@ -102,7 +102,7 @@ loadmodule "mi_fifo.so"
|
|
|
|
|
|
# -- mi_fifo params --
|
|
# -- mi_fifo params --
|
|
|
|
|
|
-modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
|
|
|
|
|
|
+modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
|
|
|
|
|
|
# -- usrloc params --
|
|
# -- usrloc params --
|
|
|
|
|
|
@@ -127,7 +127,7 @@ modparam("usrloc", "db_mode", 2)
|
|
modparam("rr", "enable_full_lr", 1)
|
|
modparam("rr", "enable_full_lr", 1)
|
|
|
|
|
|
# -- acc params --
|
|
# -- acc params --
|
|
-modparam("acc", "db_url", "mysql://openser:openserrw@localhost/openser")
|
|
|
|
|
|
+modparam("acc", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")
|
|
# flag to record to db
|
|
# flag to record to db
|
|
modparam("acc", "db_flag", 1)
|
|
modparam("acc", "db_flag", 1)
|
|
modparam("acc", "db_missed_flag", 2)
|
|
modparam("acc", "db_missed_flag", 2)
|
|
@@ -205,8 +205,8 @@ route{
|
|
if (is_method("REGISTER")) {
|
|
if (is_method("REGISTER")) {
|
|
|
|
|
|
# Uncomment this if you want to use digest authentication
|
|
# Uncomment this if you want to use digest authentication
|
|
- #if (!www_authorize("openser.org", "subscriber")) {
|
|
|
|
- # www_challenge("openser.org", "0");
|
|
|
|
|
|
+ #if (!www_authorize("kamailio.org", "subscriber")) {
|
|
|
|
+ # www_challenge("kamailio.org", "0");
|
|
# exit;
|
|
# exit;
|
|
#};
|
|
#};
|
|
|
|
|