Merged revisions 7517 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 17 Dec 2005 17:22:24 +0000 (17:22 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 17 Dec 2005 17:22:24 +0000 (17:22 +0000)
/branches/1.2

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7518 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_chanspy.c

index 80b271e..5460e93 100644 (file)
@@ -482,7 +482,7 @@ static int chanspy_exec(struct ast_channel *chan, void *data)
                                        }
                                }
                                
-                               if (igrp && (!spec || ((strlen(spec) < strlen(peer->name) &&
+                               if (igrp && (!spec || ((strlen(spec) <= strlen(peer->name) &&
                                                        !strncasecmp(peer->name, spec, strlen(spec)))))) {
                                        if (peer && (!bronly || ast_bridged_channel(peer)) &&
                                            !ast_check_hangup(peer) && !ast_test_flag(peer, AST_FLAG_SPYING)) {