All Projects → OpenJarbas → baresipy

OpenJarbas / baresipy

Licence: Apache-2.0 License
baresip python wrapper

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to baresipy

Kalbi
Kalbi - Golang Session Initiated Protocol Framework
Stars: ✭ 85 (+431.25%)
Mutual labels:  sip, voip, voip-application, sip-client
pyfreebilling
Routing and rating VoIP application for service providers - API based - AGPL v3 - Based on kamailio
Stars: ✭ 75 (+368.75%)
Mutual labels:  sip, voip, voip-application
kvazzup
Open software for HEVC video calls
Stars: ✭ 30 (+87.5%)
Mutual labels:  sip, voip, voip-application
kamailioexamples
configurations for voip solution architectures and usecases involving SIP servers
Stars: ✭ 59 (+268.75%)
Mutual labels:  sip, voip, voip-application
app
studio link - app - mirror repo only -> issues now https://gitlab.com/studio.link/app
Stars: ✭ 56 (+250%)
Mutual labels:  sip, voip, baresip
tSIP
SIP softphone
Stars: ✭ 103 (+543.75%)
Mutual labels:  sip, voip, sip-client
rn-sip-app
React Native SIP App
Stars: ✭ 51 (+218.75%)
Mutual labels:  sip, sip-client
go-sip-ua
Go SIP UA library for client/b2bua
Stars: ✭ 129 (+706.25%)
Mutual labels:  sip, voip
sip3-captain-ce
SIP3 Captain (Community Edition)
Stars: ✭ 73 (+356.25%)
Mutual labels:  sip, voip
Katari
Katari - Python Session Initiated Protocol Framework
Stars: ✭ 29 (+81.25%)
Mutual labels:  sip, voip
HA-SIP
A SIP client inside home assistant!
Stars: ✭ 81 (+406.25%)
Mutual labels:  sip, sip-client
vsaudit
VOIP Security Audit Framework
Stars: ✭ 104 (+550%)
Mutual labels:  sip, voip
SentryPeer
A distributed peer to peer list of bad actor IP addresses and phone numbers collected via a SIP Honeypot.
Stars: ✭ 108 (+575%)
Mutual labels:  sip, voip
siphub
sip capture server by hep。work with OpenSIPS, Kamailo, and FreeSWITCH。
Stars: ✭ 23 (+43.75%)
Mutual labels:  sip, voip
awesome-rtc
📡 A curated list of awesome Real Time Communications resources
Stars: ✭ 196 (+1125%)
Mutual labels:  sip, voip
Core
Free, easy to setup PBX for small business based on Asterisk 16 core
Stars: ✭ 190 (+1087.5%)
Mutual labels:  sip, voip
simlar-android
Simlar for android
Stars: ✭ 61 (+281.25%)
Mutual labels:  sip, voip
WireBug
WireBug is a toolset for Voice-over-IP penetration testing
Stars: ✭ 142 (+787.5%)
Mutual labels:  sip, voip
sems-yeti
YETI application for SEMS core
Stars: ✭ 15 (-6.25%)
Mutual labels:  sip, voip
jami-overlay
Jami (formerly Ring (formerly SFLphone)) is a SIP compatible softphone for GNU/Linux.
Stars: ✭ 22 (+37.5%)
Mutual labels:  sip, sip-client

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 = "[email protected]"

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].