commit bbe887dd9c97f9fd7b3e02161fb827172bca4da8
parent 40e246fbac78b817d17b197e20a68f326ee842c6
Author: parazyd <parazyd@dyne.org>
Date: Sat, 18 Nov 2017 15:04:06 +0100
add a guard in freepbx-glue to avoid loglines we don't need
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/freepbx-glue/freepbx_glue.py b/freepbx-glue/freepbx_glue.py
@@ -19,6 +19,8 @@ def handle_line(logline):
return
parsed = logline.split()
+ if len(parsed) < 7:
+ return
# We wait for a ring.
if not globalvars.weareringing and not globalvars.wehaveanswered: