2
0
Эх сурвалжийг харах

dispatcher: updated example config to use new db url attributes

Daniel-Constantin Mierla 11 жил өмнө
parent
commit
a248b53249

+ 6 - 5
modules/dispatcher/doc/dispatcher.cfg

@@ -20,6 +20,9 @@
 #     - define WITH_DEBUG
 #
 
+#!ifndef DBURL
+#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
+#!endif
 
 ####### Global Parameters #########
 
@@ -106,8 +109,7 @@ modparam("tm", "fr_timer", 2000)
 modparam("tm", "fr_inv_timer", 40000)
 
 # ----- dispatcher params -----
-modparam("dispatcher", "db_url",
-	"mysql://openser:openserro@localhost/openser")
+modparam("dispatcher", "db_url", DBURL)
 modparam("dispatcher", "table_name", "dispatcher")
 modparam("dispatcher", "flags", 2)
 modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
@@ -166,8 +168,6 @@ route {
 
 	# dispatch destinations
 	route(DISPATCH);
-
-	route(RELAY);
 }
 
 
@@ -253,7 +253,8 @@ route[DISPATCH] {
 	}
 	xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
 	t_on_failure("RTF_DISPATCH");
-	return;
+	route(RELAY);
+	exit;
 }
 
 # Sample failure route