mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 10:49:26 +00:00
Add call_state_changed callback in the Python application.
This commit is contained in:
parent
b79cc5738d
commit
6a191c2fb5
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue