Commit 51b45c0a authored by Dan Pascu's avatar Dan Pascu

Fixed spelling and inconsistency in error state for cancelled calls

parent f6b60f6b
...@@ -599,7 +599,7 @@ class BlinkSession(QObject): ...@@ -599,7 +599,7 @@ class BlinkSession(QObject):
notification_center = NotificationCenter() notification_center = NotificationCenter()
notification_center.post_notification('BlinkSessionWillEnd', sender=self) notification_center.post_notification('BlinkSessionWillEnd', sender=self)
if self.sip_session is None: if self.sip_session is None:
self._terminate(reason='Call canceled') self._terminate(reason='Call cancelled', error=True)
else: else:
self.sip_session.end() self.sip_session.end()
...@@ -733,7 +733,7 @@ class BlinkSession(QObject): ...@@ -733,7 +733,7 @@ class BlinkSession(QObject):
def _NH_SIPSessionDidFail(self, notification): def _NH_SIPSessionDidFail(self, notification):
if notification.data.failure_reason == 'user request': if notification.data.failure_reason == 'user request':
if notification.data.code == 487: if notification.data.code == 487:
reason = 'Call canceled' reason = 'Call cancelled'
else: else:
reason = notification.data.reason reason = notification.data.reason
else: else:
......
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