Use the new to_address and from_address attributes in the Python wrapper.

This commit is contained in:
Ghislain MARY 2014-08-28 15:13:28 +02:00
parent 3d4821c69e
commit 97b43deef2
2 changed files with 3 additions and 3 deletions

View file

@ -205,8 +205,8 @@ class CoreManager:
@classmethod
def call_state_changed(cls, lc, call, state, msg):
manager = lc.user_data
to_address = call.call_log.to.as_string()
#from_address = call.call_log.from.as_string()
to_address = call.call_log.to_address.as_string()
from_address = call.call_log.from_address.as_string()
from_address = ''
direction = "Outgoing"
if call.call_log.dir == linphone.CallDir.CallIncoming:

View file

@ -24,5 +24,5 @@ class TestCall:
assert_equals(out_call.reason, linphone.Reason.ReasonBusy)
if len(pauline.lc.call_logs) > 0:
out_call_log = pauline.lc.call_logs[0]
assert out_call_log != None
assert out_call_log is not None
assert_equals(out_call_log.status, linphone.CallStatus.CallAborted)