diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-03 00:24:40 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-02-03 00:24:40 +0000 |
commit | e2bec54f87ffa77aa774eba59a87945932a5801b (patch) | |
tree | d75acbeec29c592e10652a6e58ac49b015f0ef07 /apps | |
parent | b8a4da79ce5a4fbb42fd088d2874ec95b0717f86 (diff) |
Merged revisions 305889 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r305889 | rmudgett | 2011-02-02 18:15:07 -0600 (Wed, 02 Feb 2011) | 17 lines
Merged revisions 305888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r305888 | rmudgett | 2011-02-02 18:02:43 -0600 (Wed, 02 Feb 2011) | 8 lines
Minor AST_FRAME_TEXT related issues.
* Include the null terminator in the buffer length. When the frame is
queued it is copied. If the null terminator is not part of the frame
buffer length, the receiver could see garbage appended onto it.
* Add channel lock protection with ast_sendtext().
* Fixed AMI SendText action ast_sendtext() return value check.
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@305923 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_sendtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c index 99dbeea7e..2624fe505 100644 --- a/apps/app_sendtext.c +++ b/apps/app_sendtext.c @@ -98,10 +98,10 @@ static int sendtext_exec(struct ast_channel *chan, const char *data) return 0; } status = "FAILURE"; - ast_channel_unlock(chan); if (!ast_sendtext(chan, ast_str_buffer(str))) { status = "SUCCESS"; } + ast_channel_unlock(chan); pbx_builtin_setvar_helper(chan, "SENDTEXTSTATUS", status); return 0; } |