From: Joshua Colp Date: Thu, 22 Jan 2009 15:14:50 +0000 (+0000) Subject: Merged revisions 170050 via svnmerge from X-Git-Tag: 1.6.2.0-beta1~389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49785e775e11181f29cff30ec9983caf8d4b35df;p=thirdparty%2Fasterisk.git Merged revisions 170050 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r170050 | file | 2009-01-22 11:13:56 -0400 (Thu, 22 Jan 2009) | 6 lines 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) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170051 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 1e0401373d..212fdd9084 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -8644,7 +8644,7 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data) 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;