Browse Source

new log lines for in-dialog websocket

3.17
karl anderson 12 years ago
parent
commit
687ac1f110
1 changed files with 14 additions and 4 deletions
  1. +14
    -4
      kamailio/default.cfg

+ 14
- 4
kamailio/default.cfg View File

@ -324,10 +324,20 @@ route[HANDLE_IN_DIALOG_REQUESTS]
} }
if (loose_route()) { if (loose_route()) {
#!ifdef WEBSOCKETS-ROLE #!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 #!endif


Loading…
Cancel
Save