diff options
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; } |