|
@@ -213,11 +213,21 @@ route{
|
|
} else {
|
|
} else {
|
|
/* uncomment the following lines if you want to enable presence */
|
|
/* uncomment the following lines if you want to enable presence */
|
|
##if (is_method("SUBSCRIBE") && $rd == "your.server.ip.address") {
|
|
##if (is_method("SUBSCRIBE") && $rd == "your.server.ip.address") {
|
|
- ## # in-dialog subscribe requests
|
|
|
|
- ## route(2);
|
|
|
|
- ##} else {
|
|
|
|
- sl_send_reply("404","Not here");
|
|
|
|
|
|
+ ## # 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;
|
|
exit;
|
|
}
|
|
}
|