Giter Club home page Giter Club logo

baresipy's People

Contributors

danielkucera avatar jarbasal avatar neondaniel avatar nick-traeger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

baresipy's Issues

Examples don't work

You provide 2 example scripts, neither of which work (using either baresip 1.0.0 or 1.1.0 on Ubunto 20.04)

./spam_call.py
15:15:23.190 - baresipy:_handle_no_accounts:251 - DEBUG - No accounts setup
15:15:23.190 - baresipy:login:64 - INFO - Adding account: +442083XXXXXX
15:15:23.243 - baresipy:handle_ready:262 - INFO - Ready for instructions

And then nothing. No call placed,

./joke_bot.py
15:19:45.951 - baresipy:_handle_no_accounts:251 - DEBUG - No accounts setup
15:19:45.951 - baresipy:login:64 - INFO - Adding account: +2083XXXXXX
15:19:46.004 - baresipy:handle_ready:262 - INFO - Ready for instructions

And then nothing. No calls answered.

Video call

Hi,

Is there a way to initiate a videocall?

Baresip error on autorun script

I am getting this unknown error-2 while running baresip script on auto run...But without autorun it is working fine..
PROBLEM -->> Cannot make outgoing call from Raspberry Pi . Baresip crashes when I am picking up the phone on incoming call
call state is Ringing after picking up phone It shows unknown error-2.....

10:06:04.838 - baresipy:run:370 - DEBUG - audio: Set audio decoder: opus 48000Hz 2ch
10:06:04.925 - baresipy:run:370 - DEBUG - audio: player started with sample format S16LE
10:06:04.973 - baresipy:run:370 - DEBUG - audio: Set audio encoder: opus 48000Hz 2ch
10:06:05.072 - baresipy:run:370 - DEBUG - warning: Unknown speex_preprocess_ctl request: 2
10:06:05.125 - baresipy:run:370 - DEBUG - warning: Unknown speex_preprocess_ctl request: 46
10:06:05.270 - baresipy:run:370 - DEBUG - warning: The VAD has been replaced by a hack pending a complete rewrite
10:06:05.470 - baresipy:run:370 - DEBUG - speex_pp: Speex preprocessor loaded: srate = 48000Hz
10:06:05.513 - baresipy:run:370 - DEBUG - �[31malsa: could not open ausrc device 'default' (No such file or directory)
10:06:05.566 - baresipy:run:370 - DEBUG - �[;m�[31maudio: start_source failed (alsa.default): Unknown error -2
10:06:05.579 - baresipy:run:370 - DEBUG - �[;msip:[email protected]: session closed: Unknown error -2
10:06:05.637 - baresipy:handle_call_status:314 - DEBUG - Call Status: DISCONNECTED
10:06:05.649 - baresipy:handle_call_ended:328 - INFO - Call ended
10:06:05.820 - baresipy:handle_call_ended:329 - DEBUG - Reason: Unknown error -2

Question: Call transfer/forward between 2 accounts without answering

Hi @JarbasAl

I have a question, i see there is a transfer option, but i think this transfer option is only avaible when the call has been answered
What i want:
I have 2 accounts registered with baresip on a PBX
When there is an incoming call to user1 , can i immediately forward the call to user2 without user 1 thats answers the call?
I dont think i can do it with baresip, but maybe i can do it with your script?

thnx in advance

account: username:password is now disabled please use ;auth_pass=xxx instead

Tried to call to Linphone, got error in log:
18:31:56.752 - baresipy:run:289 - DEBUG - Creating UA for sip:adushkin1:**********@sip.linphone.org ...
18:31:56.754 - baresipy:run:289 - DEBUG - account: username:password is now disabled please use ;auth_pass=xxx instead

From Log:

CODE:
from baresipy import BareSIP
from time import sleep

to = "[email protected]"

gateway = "sip.linphone.org"
user = "adushkin1"
pswd = "*********"

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()

b = JokeBOT(user, pswd, gateway, None, True)

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()

Failed to login

1:35:40.378 - baresipy:run:289 - DEBUG - account: username:password is now disabled please use ;auth_pass=xxx instead
21:35:40.381 - baresipy:run:289 - DEBUG - menu: create_ua failed: Invalid argument
21:35:40.384 - baresipy:run:289 - DEBUG - 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.