[Asterisk-code-review] Add local attended transfer tests with direct media, hold, a... (testsuite[master])

Ashley Sanders asteriskteam at digium.com
Fri May 22 12:28:07 CDT 2015


Ashley Sanders has posted comments on this change.

Change subject: Add local attended transfer tests with direct media, hold, and REFER/Replaces.
......................................................................


Patch Set 3:

(2 comments)

https://gerrit.asterisk.org/#/c/483/3/tests/channels/pjsip/transfers/attended_transfer/nominal/packet_sniffer.py
File tests/channels/pjsip/transfers/attended_transfer/nominal/packet_sniffer.py:

Line 76: pcap_defaults = {'device': 'lo', 'snaplen': 2000,
       :                          'bpf-filter': 'udp port 5060', 'debug-packets': True,
       :                          'buffer-size': 4194304, 'register-observer': True}
       :         for name, value in pcap_defaults.items():
       :             module_config[name] = module_config.get(name, value)
> Very nice!
+1


Line 195: location = self.find_call(callid)
        :         if location is not None:
        :             return self.calls[location[0]][location[1]][callid]
> Although this will in fact return None in the event that location is None, 
I would just say:
     location = self.find_call(callid)
     if location is not None:
         return self.calls[location[0]][location[1]][callid]
     return None


-- 
To view, visit https://gerrit.asterisk.org/483
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibd1f9a3ea8bf6b80fe95efe3fcd880a55d5a7cae
Gerrit-PatchSet: 3
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: John Bigelow <jbigelow at digium.com>
Gerrit-Reviewer: Ashley Sanders <asanders at digium.com>
Gerrit-Reviewer: John Bigelow <jbigelow at digium.com>
Gerrit-Reviewer: Samuel Galarneau <sgalarneau at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list