Merged revisions 187362 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r187362 | tilghman | 2009-04-09 11:38:37 -0500 (Thu, 09 Apr 2009) | 3 lines
  
  Permit zero-length text messages in SIP.
  (Related to an issue posted to the -users list, subject "AEL2, BASE64_DECODE and hexadecimal")
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2009-04-09 16:39:43 +00:00
parent e2a336124f
commit 3a220874cc
2 changed files with 6 additions and 2 deletions

View File

@@ -81,7 +81,9 @@ static int sendtext_exec(struct ast_channel *chan, void *data)
AST_APP_ARG(text);
);
if (ast_strlen_zero(data)) {
/* NOT ast_strlen_zero, because some protocols (e.g. SIP) MUST be able to
* send a zero-length message. */
if (!data) {
ast_log(LOG_WARNING, "SendText requires an argument (text)\n");
return -1;
} else