From 761fecf519dcb81ae1ffb98b1afacb92545ebb60 Mon Sep 17 00:00:00 2001 From: sqozz Date: Sun, 29 Aug 2021 02:53:01 +0200 Subject: [PATCH] supply call id to answer function --- .gitignore | 2 ++ phoneinterface.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..603d63f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +pylinphone/ +*.swp diff --git a/phoneinterface.py b/phoneinterface.py index ac1f61e..97ff5aa 100644 --- a/phoneinterface.py +++ b/phoneinterface.py @@ -142,7 +142,7 @@ class PhoneInterface(object): self.__core.call(number) def accept_call(self): - self.__core.answer() + self.__core.answer(self.current_call_id) def decline_call(self): self.__core.decline_call(self.__core.current_call)