-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (50 loc) · 1.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.PHONY: libdtlssrtp
.PHONY: libsrtp_decrypt
all: libsrtp_decrypt libdtlssrtp contest
libsrtp_decrypt:
$(MAKE) -C libsrtp_decrypt
libdtlssrtp:
$(MAKE) -C libdtlssrtp
sign:
codesign -s "My Signing Identity" -f bin/contest
quick: contest.cr src/*.cr
crystal contest.cr
compose:
docker-compose up
contest: contest.cr src/*.cr
shards
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) crystal build --release --no-debug contest.cr -o bin/contest
@du -sh bin/contest
spec: all
crystal spec
srv_test:
pjsua --no-cli-console sip:srv_test@sip.getprompter.com
silent_test:
pjsua --local-port=8873 --rtp-port=9100 --null-audio --no-cli-console --play-file=audio/audio-example.wav sip:carson@localhost
silent_test2:
pjsua --local-port=8883 --rtp-port=9200 --null-audio --no-cli-console --play-file=audio/audio-example.wav sip:carson2@localhost
test_opus:
pjsua --local-port=8903 --rtp-port=8532 --no-cli-console sip:carson@localhost
test_opus_record:
pjsua --local-port=1234 --null-audio --rtp-port=8532 --no-cli-console --rec-file=opus.wav --auto-rec sip:carson@localhost
test:
pjsua --dis-codec=opus --add-codec=pcmu/8000 --local-port=8833 --rtp-port=9000 --no-cli-console sip:carson@localhost
test_answer:
pjsua --dis-codec=speex --add-codec=pcmu/8000 --quality=10 --auto-answer=200 --rtp-port=26000 --rec-file=rec.wav --auto-rec --play-file=audio/audio-example.wav --auto-play
test_record:
pjsua --local-port=8883 --rtp-port=9300 --rec-file=rec.wav --auto-rec --null-audio sip:carson@localhost
loud_test:
pjsua --local-port=8833 --rtp-port=9300 --no-cli-console sip:carson@localhost
web_test:
/Applications/Firefox.app/Contents/MacOS/firefox-bin -P "Terminal" http://localhost:3000
3p_sip_session:
pjsua --null-audio sip:904@mouselike.org
run: contest
./bin/contest
clean:
$(MAKE) clean -C libsrtp_decrypt
$(MAKE) clean -C libdtlssrtp
rm -rf bin/* .crystal crul .deps .shards libs
# install: contest
# install -d $(PREFIX)/bin
# install contest $(PREFIX)/bin