|
|
@ -80,7 +80,14 @@ class LinphoneCommunicationSocket(): |
|
|
|
def call_mute(self, mute=True): |
|
|
|
def call_mute(self, mute=True): |
|
|
|
self.socket.send("call-mute {mute}".format(mute="1" if mute else "0").encode("ascii")) |
|
|
|
self.socket.send("call-mute {mute}".format(mute="1" if mute else "0").encode("ascii")) |
|
|
|
answer = self._await_answer() |
|
|
|
answer = self._await_answer() |
|
|
|
pdb.set_trace() |
|
|
|
if answer["status"]: |
|
|
|
|
|
|
|
return True |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
raise RuntimeError(answer["error"]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def call_pause(self, call_id): |
|
|
|
|
|
|
|
self.socket.send("call-pause {call_id}".format(call_id=call_id).encode("ascii")) |
|
|
|
|
|
|
|
answer = self._await_answer() |
|
|
|
if answer["status"]: |
|
|
|
if answer["status"]: |
|
|
|
return True |
|
|
|
return True |
|
|
|
else: |
|
|
|
else: |
|
|
|