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: https://origsvn.digium.com/svn/asterisk/branches/1.4@132507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Brett Bryant
2008-07-21 20:51:45 +00:00
parent 2172cc71b1
commit 222f6d733a

View File

@@ -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);