ソースを参照

dispatcher: readme regenerated with updated config example

Daniel-Constantin Mierla 11 年 前
コミット
662bfcf71a
1 ファイル変更6 行追加5 行削除
  1. 6 5
      modules/dispatcher/README

+ 6 - 5
modules/dispatcher/README

@@ -1081,6 +1081,9 @@ r,opt)
 #     - define WITH_DEBUG
 #
 
+#!ifndef DBURL
+#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
+#!endif
 
 ####### Global Parameters #########
 
@@ -1168,8 +1171,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)")
@@ -1228,8 +1230,6 @@ route {
 
         # dispatch destinations
         route(DISPATCH);
-
-        route(RELAY);
 }
 
 
@@ -1317,7 +1317,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