diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-22 15:13:56 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-22 15:13:56 +0000 |
commit | b5f320c73c2db409dee976dc3f8bdb57fbf02463 (patch) | |
tree | 5d23168a5f26c96f08cac727559cbdca4b09513a /main/pbx.c | |
parent | 48280030eec6969becffdd1f5426daebc1f19cc8 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@170050 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 1cc04f504..655181f7f 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5722,7 +5722,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; |