From 6a191c2fb584b3c99b575650489cce1e60a0ed10 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 4 Aug 2014 17:52:04 +0200 Subject: [PATCH] Add call_state_changed callback in the Python application. --- tools/python/linphone-daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/python/linphone-daemon.py b/tools/python/linphone-daemon.py index ce24fca61..fbde38a79 100644 --- a/tools/python/linphone-daemon.py +++ b/tools/python/linphone-daemon.py @@ -279,9 +279,13 @@ class Daemon: def registration_state_changed(core, proxy_cfg, state, message): logging.warning("[PYTHON] registration_state_changed: " + str(state) + ", " + message) + def call_state_changed(core, call, state, message): + logging.warning("[PYTHON] call_state_changed: " + str(state) + ", " + message) + callbacks = { 'global_state_changed':global_state_changed, - 'registration_state_changed':registration_state_changed + 'registration_state_changed':registration_state_changed, + 'call_state_changed':call_state_changed } # Create a linphone core and iterate every 20 ms