Add call mute
This commit is contained in:
parent
712f56abcc
commit
1716616cba
|
@ -7,6 +7,7 @@ Currently implemented Features:
|
|||
* create an outgoing call (`call`)
|
||||
* answer an incoming call (`accept`)
|
||||
* terminate a running call (`terminate`)
|
||||
* mute the call (`mute-call`)
|
||||
|
||||
|
||||
Features supported by the unix socket (linphone deamon):
|
||||
|
|
|
@ -77,6 +77,15 @@ class LinphoneCommunicationSocket():
|
|||
else:
|
||||
raise RuntimeError(answer["error"])
|
||||
|
||||
def call_mute(self, mute=True):
|
||||
self.socket.send("call-mute {mute}".format(mute="1" if mute else "0").encode("ascii"))
|
||||
answer = self._await_answer()
|
||||
pdb.set_trace()
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue