Commit f01efa3e authored by Saul Ibarra's avatar Saul Ibarra

Fixed attribute access after API changes in python-application

parent 65384281
...@@ -147,13 +147,13 @@ class LogManager(object): ...@@ -147,13 +147,13 @@ class LogManager(object):
direction = "RECEIVED" direction = "RECEIVED"
else: else:
direction = "SENDING" direction = "SENDING"
buf = ["%s: Packet %d, +%s" % (direction, self._siptrace_packet_count, (notification.data.timestamp - self._siptrace_start_time))] buf = ["%s: Packet %d, +%s" % (direction, self._siptrace_packet_count, (notification.datetime - self._siptrace_start_time))]
buf.append("%(source_ip)s:%(source_port)d -(SIP over %(transport)s)-> %(destination_ip)s:%(destination_port)d" % notification.data.__dict__) buf.append("%(source_ip)s:%(source_port)d -(SIP over %(transport)s)-> %(destination_ip)s:%(destination_port)d" % notification.data.__dict__)
buf.append(notification.data.data) buf.append(notification.data.data)
buf.append('--') buf.append('--')
message = '\n'.join(buf) message = '\n'.join(buf)
try: try:
self.siptrace_file.write('%s [%s %d]: %s\n' % (notification.data.timestamp, self.name, self.pid, message)) self.siptrace_file.write('%s [%s %d]: %s\n' % (notification.datetime, self.name, self.pid, message))
self.siptrace_file.flush() self.siptrace_file.flush()
except Exception: except Exception:
pass pass
...@@ -164,7 +164,7 @@ class LogManager(object): ...@@ -164,7 +164,7 @@ class LogManager(object):
return return
message = "(%(level)d) %(sender)14s: %(message)s" % notification.data.__dict__ message = "(%(level)d) %(sender)14s: %(message)s" % notification.data.__dict__
try: try:
self.pjsiptrace_file.write('%s [%s %d] %s\n' % (notification.data.timestamp, self.name, self.pid, message)) self.pjsiptrace_file.write('%s [%s %d] %s\n' % (notification.datetime, self.name, self.pid, message))
self.pjsiptrace_file.flush() self.pjsiptrace_file.flush()
except Exception: except Exception:
pass pass
...@@ -190,7 +190,7 @@ class LogManager(object): ...@@ -190,7 +190,7 @@ class LogManager(object):
dns.resolver.Timeout: 'no DNS response received, the query has timed out'} dns.resolver.Timeout: 'no DNS response received, the query has timed out'}
message += ' failed: %s' % message_map.get(notification.data.error.__class__, '') message += ' failed: %s' % message_map.get(notification.data.error.__class__, '')
try: try:
self.siptrace_file.write('%s [%s %d]: %s\n' % (notification.data.timestamp, self.name, self.pid, message)) self.siptrace_file.write('%s [%s %d]: %s\n' % (notification.datetime, self.name, self.pid, message))
self.siptrace_file.flush() self.siptrace_file.flush()
except Exception: except Exception:
pass pass
...@@ -206,7 +206,7 @@ class LogManager(object): ...@@ -206,7 +206,7 @@ class LogManager(object):
remote_address = '%s:%d' % (remote_address.host, remote_address.port) remote_address = '%s:%d' % (remote_address.host, remote_address.port)
message = '%s %s %s\n' % (local_address, arrow, remote_address) + notification.data.data message = '%s %s %s\n' % (local_address, arrow, remote_address) + notification.data.data
try: try:
self.msrptrace_file.write('%s [%s %d]: %s\n' % (notification.data.timestamp, self.name, self.pid, message)) self.msrptrace_file.write('%s [%s %d]: %s\n' % (notification.datetime, self.name, self.pid, message))
self.msrptrace_file.flush() self.msrptrace_file.flush()
except Exception: except Exception:
pass pass
...@@ -219,7 +219,7 @@ class LogManager(object): ...@@ -219,7 +219,7 @@ class LogManager(object):
return return
message = '%s%s' % (notification.data.level.prefix, notification.data.message) message = '%s%s' % (notification.data.level.prefix, notification.data.message)
try: try:
self.msrptrace_file.write('%s [%s %d]: %s\n' % (notification.data.timestamp, self.name, self.pid, message)) self.msrptrace_file.write('%s [%s %d]: %s\n' % (notification.datetime, self.name, self.pid, message))
self.msrptrace_file.flush() self.msrptrace_file.flush()
except Exception: except Exception:
pass pass
......
...@@ -9,7 +9,7 @@ Homepage: http://icanblink.com ...@@ -9,7 +9,7 @@ Homepage: http://icanblink.com
Package: blink Package: blink
Architecture: all Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, libavahi-compat-libdnssd1, python-application (>= 1.2.8), python-cjson, python-eventlib, python-qt4 (>= 4.7), python-sipsimple (>= 0.30.0), python-twisted-core, python-zope.interface Depends: ${python:Depends}, ${misc:Depends}, libavahi-compat-libdnssd1, python-application (>= 1.4.0), python-cjson, python-eventlib, python-qt4 (>= 4.7), python-sipsimple (>= 0.30.0), python-twisted-core, python-zope.interface
Description: A state of the art, easy to use SIP client Description: A state of the art, easy to use SIP client
Blink is a fully featured SIP client written in Python and built on top of Blink is a fully featured SIP client written in Python and built on top of
SIP SIMPLE client SDK. Blink provides real time applications based on SIP SIP SIMPLE client SDK. Blink provides real time applications based on SIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment