From 82380dbf0fe8b1fb5d83cd1aa16487fa40936aaf Mon Sep 17 00:00:00 2001 From: karl anderson Date: Tue, 29 Jul 2014 15:06:41 -0700 Subject: [PATCH] new log lines for in-dialog websocket --- kamailio/default.cfg | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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