OpenJarbas / baresipy

baresip python wrapper
Apache License 2.0
40 stars 30 forks source link

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

Open aleh4d opened 3 years ago

aleh4d commented 3 years ago

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 = "adushkin1@sip.linphone.org"

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

JarbasAl commented 3 years ago

this depends on the baresip version running on host, but should have been fixed with https://github.com/OpenJarbas/baresipy/pull/1

i will look into it

haricane8133 commented 1 year ago

Hi @JarbasAl, the same issue is happening to me as well. I think that though the code is updated with #1, a new package was not published.

Could you please publish a new major version of baresipy with the new code?

I am at version 0.1.4

haricane8133 commented 1 year ago

Hi @JarbasAl, @JarbasAI - Could you please help here?