Clear telnet patch voor rdl achter sommige N-porten die reverse telnet gebruiken

This commit is contained in:
2020-07-27 10:52:04 +02:00
parent feec227de5
commit e24b1ebc1e
2 changed files with 34 additions and 14 deletions

5
siprun
View File

@@ -10,6 +10,8 @@ def main():
parser = argparse.ArgumentParser(description="Run a sip file.")
parser.add_argument("-u", "--unencrypted", action="store_true",
help="Run a sip connection without ssl")
parser.add_argument("-c", "--cleartelnet", action="store_true",
help="Clear telnet protocol in tcp session")
parser.add_argument("-H", "--host", action='store',
default="sip-lmw.rws.nl",
help="Host to connect to")
@@ -27,7 +29,8 @@ def main():
try:
lmwsip = LmwSip(host=args.host, port=args.port,
ssl=not args.unencrypted)
ssl=not args.unencrypted,
cleartelnet=args.cleartelnet)
except Exception as e:
print("Connect to lmw failed: %s" % e)
exit(1)