[svn-commits] bbryant: branch 1.4 r132507 - /branches/1.4/apps/app_sendtext.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 21 15:51:45 CDT 2008


Author: bbryant
Date: Mon Jul 21 15:51:45 2008
New Revision: 132507

URL: http://svn.digium.com/view/asterisk?view=rev&rev=132507
Log:
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

Modified:
    branches/1.4/apps/app_sendtext.c

Modified: branches/1.4/apps/app_sendtext.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_sendtext.c?view=diff&rev=132507&r1=132506&r2=132507
==============================================================================
--- branches/1.4/apps/app_sendtext.c (original)
+++ branches/1.4/apps/app_sendtext.c Mon Jul 21 15:51:45 2008
@@ -95,6 +95,7 @@
 	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);




More information about the svn-commits mailing list