aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ebdb2d3a0..599007747 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2413,7 +2413,9 @@ static int sip_sendtext(struct ast_channel *ast, const char *text)
ast_verbose("Sending text %s on %s\n", text, ast->name);
if (!p)
return -1;
- if (ast_strlen_zero(text))
+ /* NOT ast_strlen_zero, because a zero-length message is specifically
+ * allowed by RFC 3428 (See section 10, Examples) */
+ if (!text)
return 0;
if (debug)
ast_verbose("Really sending text %s on %s\n", text, ast->name);