[Logs session call id from tag and to tag to history Adrian Georgescu **20120602100510 Ignore-this: 2b9cd7b3ca4eb2ea87bd3b656770ead8 ] hunk ./ChatView.html 194 +.td_session_info { + font-family: Lucida Grande, Helvetica, Arial; + font-size: 11px; +} + +.table_session_info { + border-style: solid; + border-width: 1px; + border-color: #A9A9A9; + -webkit-border-radius: 3px; +} + hunk ./HistoryManager.py 168 - def add_entry(self, session_id, media_types, direction, status, failure_reason, start_time, end_time, duration, local_uri, remote_uri, remote_focus, participants): + def add_entry(self, session_id, media_types, direction, status, failure_reason, start_time, end_time, duration, local_uri, remote_uri, remote_focus, participants, call_id, from_tag, to_tag): hunk ./HistoryManager.py 182 - participants = participants + participants = participants, + sip_callid = call_id, + sip_fromtag = from_tag, + sip_totag = to_tag hunk ./SIPManager.py 513 - duration = 0 + duration = 0 + call_id = data.call_id if data.call_id is not None else '' + from_tag = data.from_tag if data.from_tag is not None else '' + to_tag = data.to_tag if data.to_tag is not None else '' hunk ./SIPManager.py 518 - self.add_to_history(id, media_types, 'incoming', 'missed', failure_reason, data.timestamp, data.timestamp, duration, local_uri, data.target_uri, focus, participants) + self.add_to_history(id, media_types, 'incoming', 'missed', failure_reason, data.timestamp, data.timestamp, duration, local_uri, data.target_uri, focus, participants, call_id, from_tag, to_tag) hunk ./SIPManager.py 522 + message += '

Technicall Information

Call Id%s
From Tag%s
To Tag%s
' % (call_id, from_tag, to_tag) hunk ./SIPManager.py 551 + call_id = data.call_id if data.call_id is not None else '' + from_tag = data.from_tag if data.from_tag is not None else '' + to_tag = data.to_tag if data.to_tag is not None else '' hunk ./SIPManager.py 555 - self.add_to_history(id, media_types, 'incoming', 'completed', failure_reason, session.start_time, session.end_time, duration.seconds, local_uri, data.target_uri, focus, participants) + self.add_to_history(id, media_types, 'incoming', 'completed', failure_reason, session.start_time, session.end_time, duration.seconds, local_uri, data.target_uri, focus, participants, call_id, from_tag, to_tag) hunk ./SIPManager.py 561 + message += '

Technicall Information

Call Id%s
From Tag%s
To Tag%s
' % (call_id, from_tag, to_tag) hunk ./SIPManager.py 584 + call_id = data.call_id if data.call_id is not None else '' + from_tag = data.from_tag if data.from_tag is not None else '' + to_tag = data.to_tag if data.to_tag is not None else '' hunk ./SIPManager.py 588 - self.add_to_history(id, media_types, 'incoming', 'completed', failure_reason, data.timestamp, data.timestamp, 0, local_uri, data.target_uri, focus, participants) + self.add_to_history(id, media_types, 'incoming', 'completed', failure_reason, data.timestamp, data.timestamp, 0, local_uri, data.target_uri, focus, participants, call_id, from_tag, to_tag) hunk ./SIPManager.py 593 + message += '

Technicall Information

Call Id%s
From Tag%s
To Tag%s
' % (call_id, from_tag, to_tag) hunk ./SIPManager.py 618 + call_id = data.call_id if data.call_id is not None else '' + from_tag = data.from_tag if data.from_tag is not None else '' + to_tag = data.to_tag if data.to_tag is not None else '' hunk ./SIPManager.py 622 - self.add_to_history(id, media_types, 'outgoing', 'failed', failure_reason, data.timestamp, data.timestamp, 0, local_uri, data.target_uri, focus, participants) + self.add_to_history(id, media_types, 'outgoing', 'failed', failure_reason, data.timestamp, data.timestamp, 0, local_uri, data.target_uri, focus, participants, call_id, from_tag, to_tag) hunk ./SIPManager.py 627 + message += '

Technicall Information

Call Id%s
From Tag%s
To Tag%s
' % (call_id, from_tag, to_tag) hunk ./SIPManager.py 652 + call_id = data.call_id if data.call_id is not None else '' + from_tag = data.from_tag if data.from_tag is not None else '' + to_tag = data.to_tag if data.to_tag is not None else '' hunk ./SIPManager.py 656 - self.add_to_history(id, media_types, 'outgoing', 'cancelled', failure_reason, data.timestamp, data.timestamp, 0, local_uri, data.target_uri, focus, participants) + self.add_to_history(id, media_types, 'outgoing', 'cancelled', failure_reason, data.timestamp, data.timestamp, 0, local_uri, data.target_uri, focus, participants, call_id, from_tag, to_tag) hunk ./SIPManager.py 660 + message += '

Technicall Information

Call Id%s
From Tag%s
To Tag%s
' % (call_id, from_tag, to_tag) hunk ./SIPManager.py 686 + call_id = data.call_id if data.call_id is not None else '' + from_tag = data.from_tag if data.from_tag is not None else '' + to_tag = data.to_tag if data.to_tag is not None else '' + hunk ./SIPManager.py 696 - self.add_to_history(id, media_types, 'outgoing', 'completed', failure_reason, session.start_time, session.end_time, duration.seconds, local_uri, data.target_uri, focus, participants) + self.add_to_history(id, media_types, 'outgoing', 'completed', failure_reason, session.start_time, session.end_time, duration.seconds, local_uri, data.target_uri, focus, participants, call_id, from_tag, to_tag) hunk ./SIPManager.py 702 + message += '

Technicall Information

Call Id%s
From Tag%s
To Tag%s
' % (call_id, from_tag, to_tag) hunk ./SIPManager.py 711 - def add_to_history(self, id, media_types, direction, status, failure_reason, start_time, end_time, duration, local_uri, remote_uri, remote_focus, participants): - SessionHistory().add_entry(id, media_types, direction, status, failure_reason, start_time, end_time, duration, local_uri, remote_uri, remote_focus, participants) + def add_to_history(self, id, media_types, direction, status, failure_reason, start_time, end_time, duration, local_uri, remote_uri, remote_focus, participants, call_id, from_tag, to_tag): + SessionHistory().add_entry(id, media_types, direction, status, failure_reason, start_time, end_time, duration, local_uri, remote_uri, remote_focus, participants, call_id, from_tag, to_tag) hunk ./SessionController.py 75 + call_id = None + from_tag = None + to_tag = None hunk ./SessionController.py 139 + self.call_id = session._invitation.call_id + hunk ./SessionController.py 374 + call_id = None + from_tag = None + to_tag = None + hunk ./SessionController.py 621 + hunk ./SessionController.py 730 + self.call_id = sender._invitation.call_id + try: + self.to_tag = sender._invitation.to_header.parameters['tag'] + except KeyError: + pass + try: + self.from_tag = sender._invitation.from_header.parameters['tag'] + except KeyError: + pass + hunk ./SessionController.py 754 - log_data = TimestampedNotificationData(originator=data.originator, direction=sender.direction, target_uri=format_identity(self.target_uri, check_contact=True), timestamp=data.timestamp, code=data.code, reason=data.reason, failure_reason=self.failureReason, streams=self.streams_log, focus=self.remote_focus_log, participants=self.participants_log) + log_data = TimestampedNotificationData(originator=data.originator, direction=sender.direction, target_uri=format_identity(self.target_uri, check_contact=True), timestamp=data.timestamp, code=data.code, reason=data.reason, failure_reason=self.failureReason, streams=self.streams_log, focus=self.remote_focus_log, participants=self.participants_log, call_id=self.call_id, from_tag=self.from_tag, to_tag=self.to_tag) hunk ./SessionController.py 806 + self.call_id = sender._invitation.call_id + try: + self.to_tag = sender._invitation.to_header.parameters['tag'] + except KeyError: + pass + try: + self.from_tag = sender._invitation.from_header.parameters['tag'] + except KeyError: + pass + hunk ./SessionController.py 818 - log_data = TimestampedNotificationData(target_uri=format_identity(self.target_uri, check_contact=True), streams=self.streams_log, focus=self.remote_focus_log, participants=self.participants_log) + log_data = TimestampedNotificationData(target_uri=format_identity(self.target_uri, check_contact=True), streams=self.streams_log, focus=self.remote_focus_log, participants=self.participants_log, call_id=self.call_id, from_tag=self.from_tag, to_tag=self.to_tag)