aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-09 16:38:37 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-09 16:38:37 +0000
commit07d8da88112b3b31ee52b6a1b383435c577227f9 (patch)
tree19dda650cef74dfb1a92ddc402675d821035d4bf /apps
parent3e658ba1694dfecea45182861877b0ed91a735f6 (diff)
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.4@187362 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 af4fcade5..e64bf03ee 100644
--- a/apps/app_sendtext.c
+++ b/apps/app_sendtext.c
@@ -78,7 +78,9 @@ static int sendtext_exec(struct ast_channel *chan, void *data)
u = ast_module_user_add(chan);
- 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[|options])\n");
ast_module_user_remove(u);
return -1;