forked from mirrors/linphone-iphone
Fix the use of SipTransports in the Python module.
This commit is contained in:
parent
9a59eb8924
commit
56eb5c3e7b
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue