|
@@ -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;
|