]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 370495 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Wed, 25 Jul 2012 21:22:04 +0000 (21:22 +0000)
committerAutomerge script <automerge@asterisk.org>
Wed, 25 Jul 2012 21:22:04 +0000 (21:22 +0000)
file:///srv/subversion/repos/asterisk/branches/10

................
  r370495 | jrose | 2012-07-25 16:12:50 -0500 (Wed, 25 Jul 2012) | 14 lines

  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
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@370509 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 36397dc1d30fe669d05fc1388490b8bfb010f7c2..a40e0fea8f3bb726d7f3904c5a729456a9d27f35 100644 (file)
@@ -3551,7 +3551,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]) {