|
|
|
@ -101,6 +101,14 @@ class LinphoneCommunicationSocket():
@@ -101,6 +101,14 @@ class LinphoneCommunicationSocket():
|
|
|
|
|
else: |
|
|
|
|
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): |
|
|
|
|
self.socket.send("pop-event".encode("ascii")) |
|
|
|
|
answer = self._await_answer() |
|
|
|
|