Make sure that auto created "pseudo" isn't a member of any groups (bugs #1776, #1777)
authorMark Spencer <markster@digium.com>
Thu, 3 Jun 2004 22:40:13 +0000 (22:40 +0000)
committerMark Spencer <markster@digium.com>
Thu, 3 Jun 2004 22:40:13 +0000 (22:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3140 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 76743b1..905b21e 100755 (executable)
@@ -8042,6 +8042,13 @@ static int setup_zap(void)
                v = v->next;
        }
        if (!found_pseudo) {
+       
+               /* Make sure pseudo isn't a member of any groups if
+                  we're automatically making it. */    
+               cur_group = 0;
+               cur_callergroup = 0;
+               cur_pickupgroup = 0;
+       
                tmp = mkintf(CHAN_PSEUDO, cur_signalling, cur_radio);
 
                if (tmp) {