From be41ef480d667d419237e7f5e0bca1de559ef314 Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Wed, 15 Jul 2015 15:47:39 +0300 Subject: [PATCH] Fix multiline command end marker for OpenVox GSM Gateway --- asterisk/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk/manager.py b/asterisk/manager.py index 6fa9bb0..5846475 100644 --- a/asterisk/manager.py +++ b/asterisk/manager.py @@ -331,7 +331,7 @@ class Manager(object): line.split(':', 1)[1].strip() == 'Follows': wait_for_marker = True # same when seeing end of multiline response - if multiline and line.startswith('--END COMMAND--'): + if multiline and (line.startswith('--END COMMAND--') or line.strip().endswith('--END COMMAND--')): wait_for_marker = False multiline = False # same when seeing end of status response