+ if msg.RESPOND is not Respond.EXT:
+ log.error(
+ "%s does not expect externally provided response", msg
+ )
+ if zmsg.imei is not None and conf.has_section(zmsg.imei):
+ termconfig = common.normconf(conf[zmsg.imei])
+ elif conf.has_section("termconfig"):
+ termconfig = common.normconf(conf["termconfig"])
+ else:
+ termconfig = {}