Baresipy
baresip python wrapper
Install / Use
/learn @OpenJarbas/BaresipyREADME
Baresipy
A python wrapper around baresip
Make voip calls/bots from python!

install
sudo apt-get install baresip
sudo apt-get install ffmpeg
pip install baresipy
usage
scripted calls
from baresipy import BareSIP
from time import sleep
to = "jarbas_laptop@sipx.mattkeys.net"
gateway = "sipx.xxxxx.net"
user = "xxxxx"
pswd = "xxxxxx"
b = BareSIP(user, pswd, gateway)
b.call(to)
while b.running:
sleep(0.5)
if b.call_established:
b.send_dtmf("123")
b.speak("this is jarbas personal assistant speaking. this was a test")
b.speak("Goodbye")
b.hang()
b.quit()
handling events
from baresipy import BareSIP
from time import sleep
from pyjokes import get_joke
class JokeBOT(BareSIP):
def handle_incoming_call(self, number):
self.accept_call()
def handle_call_established(self):
self.speak("Welcome to the jokes bot")
self.speak(get_joke())
self.speak("Goodbye")
self.hang()
gateway = "sipx.xxxxx.net"
user = "xxxxxx"
pswd = "xxxx"
b = JokeBOT(user, pswd, gateway)
while b.running:
sleep(1)
Credits
This work as been sponsored by Matt Keys, eZuce Inc
Related Skills
node-connect
333.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
82.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
82.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
333.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
