Created
December 23, 2014 21:22
-
-
Save DavidLGoldberg/e0e2fbf9152cb4067d2f to your computer and use it in GitHub Desktop.
Quick and dirty asterisk make file I was playing with to connect with websocketd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all clean start asterisk websocketd | |
all: clean start | |
clean: | |
echo > call_log | |
-sudo killall asterisk | |
-sudo killall websocketd | |
start: asterisk websocketd | |
asterisk: | |
#sudo bash -c "asterisk -cnvvvvvv | grep --line-buffered 'LocalSets:1] Dial' >> ./call_log"& | |
sudo asterisk -cnvvvvvv | grep --line-buffered 'LocalSets:1] Dial' >> ./call_log | |
websocketd: | |
./websocketd/websocketd --port=8123 tail -f --lines=1 ./call_log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment