aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-09 16:41:31 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-09 16:41:31 +0000
commite187b2e3466bd8d4a4f2313b1897ed0e81037915 (patch)
tree368e1f35378a7f01093f83c9e8249d13c2b5160d /apps
parentaec772a0cdec34611b9ccf391a9e94872676bd44 (diff)
Merged revisions 187363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r187363 | tilghman | 2009-04-09 11:39:43 -0500 (Thu, 09 Apr 2009) | 10 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@187366 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_sendtext.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c
index 91273b45a..f890ae4bf 100644
--- a/apps/app_sendtext.c
+++ b/apps/app_sendtext.c
@@ -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