summaryrefslogtreecommitdiff
path: root/net-misc/asterisk/files/1.6.2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-misc/asterisk/files/1.6.2
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'net-misc/asterisk/files/1.6.2')
-rw-r--r--net-misc/asterisk/files/1.6.2/asterisk.logrotate325
-rw-r--r--net-misc/asterisk/files/1.6.2/call_data.txt32
-rw-r--r--net-misc/asterisk/files/1.6.2/find_call_ids.sh17
-rw-r--r--net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh21
-rw-r--r--net-misc/asterisk/files/1.6.2/sip_calc_auth25
5 files changed, 0 insertions, 120 deletions
diff --git a/net-misc/asterisk/files/1.6.2/asterisk.logrotate3 b/net-misc/asterisk/files/1.6.2/asterisk.logrotate3
deleted file mode 100644
index 69296c99e66d..000000000000
--- a/net-misc/asterisk/files/1.6.2/asterisk.logrotate3
+++ /dev/null
@@ -1,25 +0,0 @@
-/var/log/asterisk/messages /var/log/asterisk/queue_log {
- missingok
- notifempty
-
- postrotate
- /usr/sbin/asterisk -rnx "logger reload" || /bin/true
- endscript
-}
-
-/var/log/asterisk/debug /var/log/asterisk/full {
- missingok
- notifempty
- daily
-
- postrotate
- /usr/sbin/asterisk -rnx "logger reload" || /bin/true
- endscript
-}
-
-/var/log/asterisk/cdr-csv/*.csv /var/log/asterisk/cdr-custom/*.csv {
- missingok
- notifempty
- weekly
- rotate 52
-}
diff --git a/net-misc/asterisk/files/1.6.2/call_data.txt b/net-misc/asterisk/files/1.6.2/call_data.txt
deleted file mode 100644
index ba9cbbba98b5..000000000000
--- a/net-misc/asterisk/files/1.6.2/call_data.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-It's sometimes useful to look at SIP conversations in retrospect. If you have
-a troublesome system, enable sip debug (in the CLI: sip set debug on), set up
-logger.conf to log it to some file and then you can use the two scripts here to
-extract the SIP converssations as seen by asterisk.
-
-find_call_ids.sh:
-
-This script will locate Call-ID values given an A and B number. Just invoke it with:
-
-find_call_ids.sh /path/to/log A-num B-num
-
-eg:
-
-find_call_ids.sh /var/log/asterisk/debug 102 105
-
-To find the Call-IDs for calls going from ext 102 to ext 105 (depends on your
-exact setup and the actual values being passed in the SIP INVITE packets)
-
-find_call_sip_trace.sh
-
-This script will extract a SIP conversation from the log for one or more
-Call-ID values. Invoke with:
-
-find_call_sip_trace.sh /path/to/log Call-ID [...]
-
-Eg:
-
-find_call_sip_trace.sh /var/log/asterisk/debug 12341665haf434qgrq3@192.168.0.5 123123@192.168.0.3
-
-This will find the SIP packets for those two conversations from the log
-(interleaving the packets in the order asterisk output them - useful for
-analysing the two SIP legs of the same call).
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; }}'
diff --git a/net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh b/net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh
deleted file mode 100644
index 5b2e69e517b4..000000000000
--- a/net-misc/asterisk/files/1.6.2/find_call_sip_trace.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /bin/bash
-
-logfile=$1
-callid=$2
-
-function usage()
-{
- echo "USAGE: $1 logfile Call-ID [Call-ID ...]"
- exit -1
-}
-
-[ -r "${logfile}" ] || usage $0
-[ -n "${callid}" ] || usage $0
-
-shift; shift;
-while [ $# -gt 0 ]; do
- callid="${callid}|$1"
- shift
-done
-
-dos2unix < "${logfile}" | grep -P '^.*\n<--- (SIP read|(Reliably )?(Ret|T)ransmitting) .*\n([^<\n].*\n)*Call-ID: ('"${callid//./\\.}"')\n((|[^<\n].*)\n)*<-+>$|^.* chan_sip.c: (Reliably )?(Ret|T)ransmitting .*\n([^-\n].*\n)*Call-ID: ('"${callid//./\\.}"')\n((|[^-\n].*)\n)*---$'
diff --git a/net-misc/asterisk/files/1.6.2/sip_calc_auth b/net-misc/asterisk/files/1.6.2/sip_calc_auth
deleted file mode 100644
index 3f050ada5738..000000000000
--- a/net-misc/asterisk/files/1.6.2/sip_calc_auth
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/bash
-
-[ $# -lt 7 ] && echo "USAGE: $0 username realm password method uri algorithm nonce" && exit 1
-
-un=$1
-realm=$2
-pw=$3
-method=$4
-uri=$5
-alg=$6
-nonce=$7
-
-echo "Using $un@$realm (secret $pw) for method $method to $uri with nonce $nonce (alg=$alg)"
-
-a1=$un:$realm:$pw
-a2=$method:$uri
-ha1=$(echo -n "$a1" | openssl $alg)
-ha2=$(echo -n "$a2" | openssl $alg)
-resp=$(echo -n "$ha1:$nonce:$ha2" | openssl $alg)
-
-echo "a1=$a1"
-echo "a2=$a2"
-echo "ha1=$ha1"
-echo "ha2=$ha2"
-echo "resp=$resp"