From 82558462de6aa2c62b08cd294b9ddd78cb481a2b Mon Sep 17 00:00:00 2001 From: Myng Date: Wed, 30 Jun 2021 23:46:17 +0700 Subject: [PATCH] configurable timeout for InboundESL (#71) --- greenswitch/esl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/greenswitch/esl.py b/greenswitch/esl.py index 136de5c..5f92e97 100644 --- a/greenswitch/esl.py +++ b/greenswitch/esl.py @@ -227,12 +227,12 @@ def stop(self): class InboundESL(ESLProtocol): - def __init__(self, host, port, password): + def __init__(self, host, port, password, timeout=5): super(InboundESL, self).__init__() self.host = host self.port = port self.password = password - self.timeout = 5 + self.timeout = timeout self.connected = False def connect(self):