[asterisk-commits] file: branch 1.4 r170050 - /branches/1.4/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 22 09:13:56 CST 2009


Author: file
Date: Thu Jan 22 09:13:56 2009
New Revision: 170050

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170050
Log:
Do a string comparison instead of pointer comparison since some people specify the context they are actually in as an argument to get around some funkiness.
(closes issue #14011)
Reported by: dveiga
Patches:
      pbx.c.patch uploaded by dveiga (license 665)

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=170050&r1=170049&r2=170050
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Thu Jan 22 09:13:56 2009
@@ -5722,7 +5722,7 @@
 			ast_stopstream(chan);
 		}
 	}
-	if (args.context != chan->context && res) {
+	if (strcmp(args.context, chan->context) && res) {
 		snprintf(chan->exten, sizeof(chan->exten), "%c", res);
 		ast_copy_string(chan->context, args.context, sizeof(chan->context));
 		chan->priority = 0;




More information about the asterisk-commits mailing list