From 749fa93a50655799699ba863a7fd392982348f2f Mon Sep 17 00:00:00 2001 From: Daniel Grotti Date: Mon, 27 Nov 2017 17:07:12 +0100 Subject: [PATCH] TT#26114 fix problem with callID starting with minus(-) Change-Id: I96f86f3b03046140145989cd530dc90ee38f9baf --- scripts/ngcp-dlgcnt-check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ngcp-dlgcnt-check b/scripts/ngcp-dlgcnt-check index 89f5f64..80c65eb 100755 --- a/scripts/ngcp-dlgcnt-check +++ b/scripts/ngcp-dlgcnt-check @@ -42,8 +42,8 @@ REDIS_CALLIDS_FILTER=$(mktemp) egrep -v '^list:' "$REDIS_CALLIDS" > "$REDIS_CALLIDS_FILTER" || true while read -r i ; do - if ! ngcp-sercmd proxy dlg.dlg_list "$i"| \ - awk '/call-id:/ { print $NF}'| grep -q "$i" + if ! ngcp-sercmd proxy dlg.dlg_list -- "$i"| \ + awk '/call-id:/ { print $NF}'| grep -q -- "$i" then printf "CallID:[%s] unknown\n" "$i" if $REMOVE ; then