From 6c9c45d1231ae446f0146b5887d8294d6b482be4 Mon Sep 17 00:00:00 2001 From: Juergen Fortin Date: Wed, 19 Sep 2018 13:23:38 +0200 Subject: [PATCH] TT#44453 fix 'ngcp-dlgcnt-check -r' problem when callID starting with minus(-) Change-Id: I453c9bd1515ec24ae404f4b280a23a58cb23c296 (cherry picked from commit 257382521697ea06f7751be343a441d4b2ce79a2) --- scripts/ngcp-dlgcnt-check | 4 ++-- tests/fixtures/koredis.cmd | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ngcp-dlgcnt-check b/scripts/ngcp-dlgcnt-check index 307dd13..731492f 100755 --- a/scripts/ngcp-dlgcnt-check +++ b/scripts/ngcp-dlgcnt-check @@ -47,9 +47,9 @@ while read -r i ; do then printf "CallID:[%s] unknown\n" "$i" if $REMOVE ; then - ngcp-dlgcnt-clean "$i" || true + ngcp-dlgcnt-clean "--" "$i" || true if grep -q "list:$i" "$REDIS_CALLIDS" ; then - ngcp-dlglist-clean "$i" || true + ngcp-dlglist-clean "--" "$i" || true fi fi fi diff --git a/tests/fixtures/koredis.cmd b/tests/fixtures/koredis.cmd index 96bf4d3..27e8c98 100644 --- a/tests/fixtures/koredis.cmd +++ b/tests/fixtures/koredis.cmd @@ -1,3 +1,3 @@ -ngcp-dlgcnt-clean f81f8a33-2dbd-1235-018c-0090fb484030:5060-pbx_1 -ngcp-dlgcnt-clean f81f8a33-2dbd-1235-018c-0090fb484030:5060 -ngcp-dlglist-clean f81f8a33-2dbd-1235-018c-0090fb484030:5060 +ngcp-dlgcnt-clean -- f81f8a33-2dbd-1235-018c-0090fb484030:5060-pbx_1 +ngcp-dlgcnt-clean -- f81f8a33-2dbd-1235-018c-0090fb484030:5060 +ngcp-dlglist-clean -- f81f8a33-2dbd-1235-018c-0090fb484030:5060