Correct for user selecting 'D' when they should be selecting 'd' (bug #2200)
authorMark Spencer <markster@digium.com>
Mon, 2 Aug 2004 02:58:15 +0000 (02:58 +0000)
committerMark Spencer <markster@digium.com>
Mon, 2 Aug 2004 02:58:15 +0000 (02:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3567 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index fd40932..c2ff537 100755 (executable)
@@ -1082,6 +1082,12 @@ static struct ast_conference *find_conf(struct ast_channel *chan, char *confno,
                        }
                        ast_destroy(cfg);
                }
+       } else {
+               /* Correct for the user selecting 'D' instead of 'd' to have
+                  someone join into a conference that has already been created
+                  with a pin. */
+               if (dynamic_pin[0] == 'q')
+                       dynamic_pin[0] = '\0';
        }
        return cnf;
 }