Explorar o código

- make src for str_dup const
- remove obselete change information
- update test 5, (default cfg)


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3882 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt %!s(int64=17) %!d(string=hai) anos
pai
achega
7437fe9fb7
Modificáronse 1 ficheiros con 23 adicións e 6 borrados
  1. 23 6
      test/unit/5.cfg

+ 23 - 6
test/unit/5.cfg

@@ -19,9 +19,9 @@ fork=yes
 children=4
 
 /* uncomment the following lines to enable debugging */
-debug=6
+#debug=6
 #fork=no
-log_stderror=yes
+#log_stderror=yes
 
 /* uncomment the next line to disable TCP (default on) */
 #disable_tcp=yes
@@ -76,20 +76,21 @@ loadmodule "uri_db/uri_db.so"
 loadmodule "uri/uri.so"
 loadmodule "xlog/xlog.so"
 loadmodule "acc/acc.so"
+
 /* uncomment next lines for MySQL based authentication support 
-   NOTE: a DB (like mysql) module must be also loaded */
+   NOTE: a DB (like db_mysql) module must be also loaded */
 #loadmodule "auth.so"
 #loadmodule "auth_db.so"
 /* uncomment next line for aliases support
-   NOTE: a DB (like mysql) module must be also loaded */
+   NOTE: a DB (like db_mysql) module must be also loaded */
 #loadmodule "alias_db.so"
 /* uncomment next line for multi-domain support
-   NOTE: a DB (like mysql) module must be also loaded
+   NOTE: a DB (like db_mysql) module must be also loaded
    NOTE: be sure and enable multi-domain support in all used modules
          (see "multi-module params" section ) */
 #loadmodule "domain.so"
 /* uncomment the next two lines for presence server support
-   NOTE: a DB (like mysql) module must be also loaded */
+   NOTE: a DB (like db_mysql) module must be also loaded */
 #loadmodule "presence.so"
 #loadmodule "presence_xml.so"
 
@@ -211,6 +212,22 @@ route{
 			}
 			route(1);
 		} else {
+			/* uncomment the following lines if you want to enable presence */
+			##if (is_method("SUBSCRIBE") && $rd == "your.server.ip.address") {
+			##	# in-dialog subscribe requests
+			##	route(2);
+			##	exit;
+			##}
+			if ( is_method("ACK") ) {
+				if ( t_check_trans() ) {
+					# non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404 from upstream server
+					t_relay();
+					exit;
+				} else {
+					# ACK without matching transaction ... ignore and discard.\n");
+					exit;
+				}
+			}
 			sl_send_reply("404","Not here");
 		}
 		exit;