Asterisk Sip Phone Smart Light Switch

by nbaddorf in Circuits > Raspberry Pi

571 Views, 0 Favorites, 0 Comments

Asterisk Sip Phone Smart Light Switch

phone.jpg
Sip Phone Smart Lights Switch

As someone who bought smart lights for my room, it is my duty to control them in all sorts of awesome ways. I have previously made my lights "mind controlled" with one of thouse neuro headsets, controlled the lights with a pair of glasses I made, but now, the most practical application, a Raspberry Pi powered Sip phone light switch! This isnt a tutorial for what I did, but I wanted to give some general steps for anyone to make there own if they wanted!

Supplies

raspi.jpg

To make something simmiler, you need a SIP phone, and a server to run Asterisk, the program for phones. I used a Raspberry Pi 3b as the server for Asterisk which is also running Pi-Hole.

Setting Up Asterisk

I followed Asterisk's tutorial to install asterisk on my raspberry pi. I then used a free iPhone app caled Zoiper to test my system out. Once that was working, I had to connect my Cisco 7940 Sip phone. This took alot of work, and it will be different for you, so I wont go into that here. After the Cisco phone was connected, I setup some asterisk extensions to run bash commands. I set my phone up so that when I call "1", it runs a bash command sending a webhook to ifttt, turning on my lights! Ifttt was verry kind to give me Ifttt Pro, and I will say that it has been amazing so far! I also added extensions to turn my lights off the same way, and added a way to type in brightness!


If you are having trouble with Asterisk, Google and patience is your friend.

If you have trouble with Ifttt web hooks, I made a video awhile ago that should help: here