Kleine Korrekturen

This commit is contained in:
Gandalf 2022-02-05 18:36:42 +01:00
parent 9f96328b70
commit de37f626c7
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
BASEPATH=$(dirname $(realpath $0)) BASEPATH=$(dirname $(realpath $0))
. $BASEPATH/authorization.sh #. $BASEPATH/authorization.sh
CALLER_ID="+49" CALLER_ID="+49"
CALLER_ID_JSON= CALLER_ID_JSON=
case "$SPOOF" in case "$SPOOF" in
@ -19,5 +19,5 @@ case "$SPOOF" in
;; ;;
esac esac
OLD_CALLER_ID_JSON=$(curl --request GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $AUTH_TOKEN" "https://api.sipgate.com/v2/w0/faxlines/f0/callerid" -s) OLD_CALLER_ID_JSON=$(curl --request GET --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $AUTH_TOKEN" "https://api.sipgate.com/v2/w0/faxlines/f0/callerid" -s)
#REPLY=$(curl --request PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $AUTH_TOKEN" --data ${CALLER_ID_JSON} "https://api.sipgate.com/v2/w0/faxlines/f0/callerid" -s) REPLY=$(curl --request PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header "Authorization: Bearer $AUTH_TOKEN" --data ${CALLER_ID_JSON} "https://api.sipgate.com/v2/w0/faxlines/f0/callerid" -s)
echo $OLD_CALLER_ID_JSON $CALLER_ID_JSON echo $OLD_CALLER_ID_JSON $CALLER_ID_JSON

2
fax.sh
View file

@ -44,6 +44,8 @@ do
shift ;; shift ;;
"--spoof-callerid") "--spoof-callerid")
SPOOF=1 SPOOF=1
shift
;;
"--") "--")
shift shift
break ;; break ;;