summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2012-07-25 21:22:34 +0000
committerJonathan Rose <jrose@digium.com>2012-07-25 21:22:34 +0000
commit79de3f7fe8c0f71a57f65028ddc9fee5ab0b76bc (patch)
treeed2fefea03d11c0a87bfcfa575b18efd8738d110
parent969e625749038e247249bd6ea616b76d0c69fb8d (diff)
res_agi: Add message indicating need for \n character in verbose message
The while loop responsible for reading AGI messages from a fastAGI service can end up looping indefinitely when an AGI script fails to indicate the end of a message with a \n character. This patch adds an indication that we are expecting a \n character to end the message to make it more clear to users that this is necessary if they are receiving this warning over and over. (issue ASTERISK-20061) Reported by: Eike Kuiper ........ Merged revisions 370494 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 370495 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--res/res_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 2ad328cf8..328674c5a 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -3581,7 +3581,7 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi
break;
len = sizeof(buf) - buflen;
if (agidebug)
- ast_verbose( "AGI Rx << temp buffer %s - errno %s\n", buf, strerror(errno));
+ ast_verbose("AGI Rx << temp buffer %s - errno %s\nNo \\n received, checking again.\n", buf, strerror(errno));
}
if (!buf[0]) {