diff options
Diffstat (limited to 'net-misc/asterisk/files/1.6.2/find_call_ids.sh')
-rw-r--r-- | net-misc/asterisk/files/1.6.2/find_call_ids.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/net-misc/asterisk/files/1.6.2/find_call_ids.sh b/net-misc/asterisk/files/1.6.2/find_call_ids.sh deleted file mode 100644 index c4689bd1579d..000000000000 --- a/net-misc/asterisk/files/1.6.2/find_call_ids.sh +++ /dev/null @@ -1,17 +0,0 @@ -#! /bin/bash - -logfile=$1 -anum=$2 -bnum=$3 - -function usage() -{ - echo "USAGE: $1 logfile anum bnum" - exit -1 -} - -[ -r "${logfile}" ] || usage $0 -[ -n "${anum}" ] || usage $0 -[ -n "${bnum}" ] || usage $0 - -grep -B2 -P '^INVITE sip:'"${bnum}"'@.*\n(([^F].*|F[^r].*|Fr[^o].*|Fro[^m].*|From[^:]|From:.*<sip:'"${anum}"'@.*>.*)\r\n)+\r\n' "${logfile}" | awk '$4 ~ "^VERBOSE" { dt=$1" "$2" "$3 } $1=="Call-ID:" { if (cid != $2) { cid=$2; print dt" "cid; }}' |