[asterisk-commits] twilson: trunk r167973 - /trunk/apps/app_originate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 8 19:15:43 CST 2009


Author: twilson
Date: Thu Jan  8 19:15:43 2009
New Revision: 167973

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167973
Log:
Set ORIGINATE_STATUS instead of OUTGOING_STATUS to match the documentation

Modified:
    trunk/apps/app_originate.c

Modified: trunk/apps/app_originate.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_originate.c?view=diff&rev=167973&r1=167972&r2=167973
==============================================================================
--- trunk/apps/app_originate.c (original)
+++ trunk/apps/app_originate.c Thu Jan  8 19:15:43 2009
@@ -168,29 +168,29 @@
 
 return_cleanup:
 	if (res) {
-		pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "FAILED");
+		pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "FAILED");
 	} else {
 		switch (outgoing_status) {
 		case 0:
 		case AST_CONTROL_ANSWER:
-			pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "SUCCESS");
+			pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "SUCCESS");
 			break;
 		case AST_CONTROL_BUSY:
-			pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "BUSY");
+			pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "BUSY");
 			break;
 		case AST_CONTROL_CONGESTION:
-			pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "CONGESTION");
+			pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "CONGESTION");
 			break;
 		case AST_CONTROL_HANGUP:
-			pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "HANGUP");
+			pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "HANGUP");
 			break;
 		case AST_CONTROL_RINGING:
-			pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "RINGING");
+			pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "RINGING");
 			break;
 		default:
 			ast_log(LOG_WARNING, "Unknown originate status result of '%d'\n",
 					outgoing_status);
-			pbx_builtin_setvar_helper(chan, "OUTGOING_STATUS", "UNKNOWN");
+			pbx_builtin_setvar_helper(chan, "ORIGINATE_STATUS", "UNKNOWN");
 			break;
 		}
 	}




More information about the asterisk-commits mailing list