|
|
@ -101,6 +101,14 @@ class LinphoneCommunicationSocket(): |
|
|
|
else: |
|
|
|
else: |
|
|
|
raise RuntimeError(answer["error"]) |
|
|
|
raise RuntimeError(answer["error"]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def dtmf(self, digit): |
|
|
|
|
|
|
|
self.socket.send("dtmf {digit}".format(digit=digit).encode("ascii")) |
|
|
|
|
|
|
|
answer = self._await_answer() |
|
|
|
|
|
|
|
if answer["status"]: |
|
|
|
|
|
|
|
return True |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
raise RuntimeError(answer["error"]) |
|
|
|
|
|
|
|
|
|
|
|
def process_event(self): |
|
|
|
def process_event(self): |
|
|
|
self.socket.send("pop-event".encode("ascii")) |
|
|
|
self.socket.send("pop-event".encode("ascii")) |
|
|
|
answer = self._await_answer() |
|
|
|
answer = self._await_answer() |
|
|
|