From 427d1fd237900198d33902c4709d05bac210ee90 Mon Sep 17 00:00:00 2001 From: bbryant Date: Mon, 21 Jul 2008 20:51:45 +0000 Subject: 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 --- apps/app_sendtext.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') 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); -- cgit v1.2.3