--- lib/python/asterisk/pcap.py 2018-05-16 15:47:20.000000000 +0200 +++ lib/python/asterisk/pcap.py 2018-06-04 13:05:33.000000000 +0200 @@ -22,2 +22,6 @@ -from construct import * -from construct.protocols.ipstack import ip_stack +try: + from construct_legacy import * + from construct_legacy.protocols.ipstack import ip_stack +except ImportError: + from construct import * + from construct.protocols.ipstack import ip_stack --- tests/channels/pjsip/rtp/rtp_keepalive/base/rtp.py 2018-05-16 15:47:20.000000000 +0200 +++ tests/channels/pjsip/rtp/rtp_keepalive/base/rtp.py 2018-06-04 13:06:01.000000000 +0200 @@ -16 +16,4 @@ -from construct import * +try: + from construct_legacy import * +except ImportError: + from construct import * --- tests/hep/hep_capture_node.py 2018-05-16 15:47:20.000000000 +0200 +++ tests/hep/hep_capture_node.py 2018-06-04 13:03:22.000000000 +0200 @@ -24 +24,4 @@ -from construct import * +try: + from construct_legacy import * +except ImportError: + from construct import * --- tests/channels/SIP/pcap_demo/run-test 2018-05-16 15:47:20.000000000 +0200 +++ tests/channels/SIP/pcap_demo/run-test 2018-06-04 13:03:17.000000000 +0200 @@ -14 +14,4 @@ -from construct.protocols.ipstack import ip_stack +try: + from construct_legacy.protocols.ipstack import ip_stack +except ImportError: + from construct.protocols.ipstack import ip_stack