From 56eb5c3e7bdafdcdbbbb05b216f36f1e5f0b27f6 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 9 Dec 2014 13:35:48 +0100 Subject: [PATCH] Fix the use of SipTransports in the Python module. --- tools/python/apixml2python/linphone_module.mustache | 1 + tools/python/unittests/linphonetester.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/apixml2python/linphone_module.mustache b/tools/python/apixml2python/linphone_module.mustache index 548a2afe3..9704f0563 100644 --- a/tools/python/apixml2python/linphone_module.mustache +++ b/tools/python/apixml2python/linphone_module.mustache @@ -293,6 +293,7 @@ PyMODINIT_FUNC initlinphone(void) { /* Hand-written classes. */ if (PyType_Ready(&pylinphone_VideoSizeType) < 0) return; + if (PyType_Ready(&pylinphone_SipTransportsType) < 0) return; m = Py_InitModule3("linphone", pylinphone_ModuleMethods, "Python module giving access to the Linphone library."); if (m == NULL) return; diff --git a/tools/python/unittests/linphonetester.py b/tools/python/unittests/linphonetester.py index 9654d8201..94a422ea3 100644 --- a/tools/python/unittests/linphonetester.py +++ b/tools/python/unittests/linphonetester.py @@ -132,7 +132,7 @@ class AccountManager: vtable['registration_state_changed'] = AccountManager.account_created_on_server_cb vtable['auth_info_requested'] = AccountManager.account_created_auth_requested_cb lc = CoreManager.configure_lc_from(vtable, tester_resources_path, None, account) - lc.sip_transports = linphone.SipTransports.new(-1, -1, -1, -1) + lc.sip_transports = linphone.SipTransports(-1, -1, -1, -1) cfg = lc.create_proxy_config() tmp_identity.password = account.password tmp_identity.set_header("X-Create-Account", "yes")