Difference between revisions of "VOIP Phone Integration"

From Bloominglabs
Jump to: navigation, search
(Created page with "Stuff runs on poquito which is an ancient (ca. 2011?) Raspberry Pi. Some of the software is out of date, the upshot is efforts to update things like versions of Python etc...")
 
Line 1: Line 1:
 
Stuff runs on [[poquito]] which is an ancient (ca. 2011?) Raspberry Pi. Some of the software is out of date, the upshot is efforts to update things like versions of Python etc are 'shaky'. The only reason I mention this is because there is a Python module called python-ESL [[https://github.com/sangoma/python-ESL]] that seems especially nicely suited to handling SIP/phone stuff, but we could not install it via pip. Kevin discovered a command line tool, SIPPing [[https://github.com/pbertera/SIPPing]] that creates and sends SIP packets albeit in a less clean and ideal fashion.  
 
Stuff runs on [[poquito]] which is an ancient (ca. 2011?) Raspberry Pi. Some of the software is out of date, the upshot is efforts to update things like versions of Python etc are 'shaky'. The only reason I mention this is because there is a Python module called python-ESL [[https://github.com/sangoma/python-ESL]] that seems especially nicely suited to handling SIP/phone stuff, but we could not install it via pip. Kevin discovered a command line tool, SIPPing [[https://github.com/pbertera/SIPPing]] that creates and sends SIP packets albeit in a less clean and ideal fashion.  
  
So over on poquito, in /home/pi/Bloominglabs/bots, there are two files: sipping_template.txt and sipping_func.py. The first has the packet format, the second has a function that 'wraps' SIPPing.
+
On poquito, in /home/pi/Bloominglabs/bots, there are two files: sipping_template.txt and sipping_func.py. The first has the packet format, the second has a function that 'wraps' SIPPing.
  
net_doorbot.py is 'doorbot', and dosman put a lot of machinery in place that does fun checks to make sure it's running. As far as integrating SIPPing, you just:
+
net_doorbot.py (in the same directory) is 'doorbot', and dosman put a lot of machinery in place that does checks to make sure it's running. As far as integrating SIPPing, just:
  
 
'''import sipping_func'''
 
'''import sipping_func'''

Revision as of 00:26, 11 September 2020

Stuff runs on poquito which is an ancient (ca. 2011?) Raspberry Pi. Some of the software is out of date, the upshot is efforts to update things like versions of Python etc are 'shaky'. The only reason I mention this is because there is a Python module called python-ESL [[1]] that seems especially nicely suited to handling SIP/phone stuff, but we could not install it via pip. Kevin discovered a command line tool, SIPPing [[2]] that creates and sends SIP packets albeit in a less clean and ideal fashion.

On poquito, in /home/pi/Bloominglabs/bots, there are two files: sipping_template.txt and sipping_func.py. The first has the packet format, the second has a function that 'wraps' SIPPing.

net_doorbot.py (in the same directory) is 'doorbot', and dosman put a lot of machinery in place that does checks to make sure it's running. As far as integrating SIPPing, just:

import sipping_func

which you can then call when you want to announce somebody has arrived:

sipping_func.announce_arrival('test person')

Personal tools