Skip to content

Instantly share code, notes, and snippets.

@DavidLGoldberg
Created December 23, 2014 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidLGoldberg/e0e2fbf9152cb4067d2f to your computer and use it in GitHub Desktop.
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
.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