File tree 3 files changed +18
-7
lines changed
3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change
1
+ # 1.1.4
2
+
3
+ - [ privatedial] ( src/privatedial ) Allow all TLS protocols in the ` minivm-send ` bash script.
4
+ - [ test] ( test/Makefile ) Now also test the PHP is setup correctly.
5
+
1
6
# 1.1.3
2
7
3
8
- [ repo] ( src ) Fix the bug; websms and autoban not working. We need to use softlinks to ../../share/php81/.
Original file line number Diff line number Diff line change 43
43
#
44
44
case " $sendmail_proto " in
45
45
starttls)
46
- sendmail_args+=(" -H" " openssl s_client -quiet -tls1 - starttls smtp -connect $sendmail_host " ) ;;
46
+ sendmail_args+=(" -H" " openssl s_client -quiet -starttls smtp -connect $sendmail_host " ) ;;
47
47
smtps|tls)
48
- sendmail_args+=(" -H" " openssl s_client -quiet -tls1 - connect $sendmail_host " ) ;;
48
+ sendmail_args+=(" -H" " openssl s_client -quiet -connect $sendmail_host " ) ;;
49
49
smtp|* )
50
50
sendmail_args+=(" -S" " $sendmail_host " ) ;;
51
51
esac
55
55
# Asterisk pass the message via stdin to this script and
56
56
# that stream is inherited here
57
57
#
58
- sendmail " ${sendmail_args[@]} " & > /dev/null
59
- sendmail_extival=$?
58
+ sendmail_output=$( sendmail " ${sendmail_args[@]} " 2>&1 )
59
+ sendmail_exitval=$?
60
+ sendmail_cmd=" sendmail ${sendmail_args[@]} "
60
61
61
62
#
62
63
# Log sendmail status and exit
63
64
#
64
- if [ $sendmail_extival -eq 0 ]; then
65
+ if [ $sendmail_exitval -eq 0 ]; then
65
66
logger " ${logger_args[@]} " -p mail.info " INFO: Successfully sent mail ($sendmail_host )"
66
67
else
67
68
logger " ${logger_args[@]} " -p mail.err " ERROR: Unable to send mail ($sendmail_host )"
69
+ logger " ${logger_args[@]} " -p mail.err " $sendmail_cmd "
70
+ logger " ${logger_args[@]} " -p mail.err " $sendmail_output "
68
71
fi
69
- exit $sendmail_extival
72
+ exit $sendmail_exitval
Original file line number Diff line number Diff line change 58
58
test-all : $(addprefix test_,1 2 3 4)
59
59
60
60
61
- test_% : test-up_% test-wait_% test-logs_% test-ping_% test-down_%
61
+ test_% : test-up_% test-wait_% test-logs_% test-autoban_ % test- ping_% test-down_%
62
62
63
63
64
64
test-up_1 : test-up-net
@@ -108,6 +108,9 @@ test-ping_%: test-version_%
108
108
test-version_% :
109
109
docker exec -it $(PBX_NAME ) asterisk -x " pjsip show version" | grep PJPROJECT
110
110
111
+ test-autoban_% :
112
+ case $* in [2-3]) docker exec -it $( PBX_NAME) autoban;; esac
113
+
111
114
test-logs_% :
112
115
docker container logs $(PBX_NAME ) | grep ' docker-entrypoint.sh' || true
113
116
You can’t perform that action at this time.
0 commit comments