aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sendtext.c
diff options
context:
space:
mode:
authorbbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-21 20:51:45 +0000
committerbbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-21 20:51:45 +0000
commit427d1fd237900198d33902c4709d05bac210ee90 (patch)
tree54623faf7b0b18944ee5f723e9ca4fc244274732 /apps/app_sendtext.c
parenta83b93bfd62160aecc5660fc41abd3cb9e1dae37 (diff)
Fix a bug where SENDTEXTSTATUS isn't set properly when it isn't
supported on a channel (yet _another_ useful patch by eliel). (issue #13081) Reported by: eliel Patches: app_sendtext1.4.c uploaded by eliel (license 64) Tested by: eliel git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132507 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sendtext.c')
-rw-r--r--apps/app_sendtext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c
index 6828e3f76..af4fcade5 100644
--- a/apps/app_sendtext.c
+++ b/apps/app_sendtext.c
@@ -95,6 +95,7 @@ static int sendtext_exec(struct ast_channel *chan, void *data)
ast_channel_lock(chan);
if (!chan->tech->send_text) {
ast_channel_unlock(chan);
+ pbx_builtin_setvar_helper(chan, "SENDTEXTSTATUS", status);
/* Does not support transport */
if (priority_jump || ast_opt_priority_jumping)
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);