code: def _get_transport_type(self):
          '''获取SETUP时需要的Transport字符串参数'''
          transport_str = ''
          ip_type = 'unicast' #if IPAddress(DEST_IP).is_unicast() else 'multicast'
          for t in TRANSPORT_TYPE_LIST:
              if t not in TRANSPORT_TYPE_MAP:
                  PRINT('Error param: %s'%t,RED)
                  sys.exit(1)
              if t.endswith('tcp'):
                  transport_str += TRANSPORT_TYPE_MAP[t]%ip_type
              else:
                  transport_str += TRANSPORT_TYPE_MAP[t]%(ip_type,DEST_IP,CLIENT_PORT_RANGE)
          return transport_stf _get_transport_type(self):
          '''获取SETUP时需要的Transport字符串参数'''
          transport_str = ''
          ip_type = 'unicast' #if IPAddress(DEST_IP).is_unicast() else 'multicast'
          for t in TRANSPORT_TYPE_LIST:
              if t not in TRANSPORT_TYPE_MAP:
                  PRINT('Error param: %s'%t,RED)
                  sys.exit(1)
              if t.endswith('tcp'):
                  transport_str += TRANSPORT_TYPE_MAP[t]%ip_type
              else:
                  transport_str += TRANSPORT_TYPE_MAP[t]%(ip_type,DEST_IP,CLIENT_PORT_RANGE)
          return transport_str
docs: 获取SETUP时需要的Transport字符串参数