diff --git a/kamailio/default.cfg b/kamailio/default.cfg index a103007..f6fbc5a 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -324,10 +324,20 @@ route[HANDLE_IN_DIALOG_REQUESTS] } if (loose_route()) { #!ifdef WEBSOCKETS-ROLE - if (isdsturiset() && !handle_ruri_alias()) { - xlog("L_INFO", "$ci|stop|bad alias <$ru>\n"); - sl_send_reply("400", "Bad Request"); - exit; + if ($du == "") { + handle_ruri_alias(); + switch ($rc) { + case -1: + xlog("L_ERR", "$ci|stop|failed to handle alias of R-URI $ru\n"); + send_reply("400", "Bad request"); + exit; + case 1: + xlog("L_INFO", "$ci|log|routing in-dialog $rm from $fu to $du\n"); + break; + case 2: + xlog("L_INFO", "$ci|log|routing in-dialog $rm from $fu to $ru\n"); + break; + } } #!endif