4 echo "Use: $0 [json file for REST API] [2e]"
6 echo "Program answer to the diameter client or to the server (entity) when"
7 echo "'2e' parameter is provided. If missing xml file, current programmed answers will"
8 echo "be shown: '$0' (answers to client), '$0 2e' (answers to server)."
14 operation="answerxml2e"
16 [[ ! -f "$1" ]] && { echo "ERROR: file '$1' not found" ; echo; echo; exit ; }
17 operation="answerxml|$1"
18 [[ "$2" = "2e" ]] && operation="answerxml2e|$1"
24 ./operation.sh "$operation"