Merged revisions 89450 via svnmerge from
authorSteve Murphy <murf@digium.com>
Tue, 20 Nov 2007 15:30:48 +0000 (15:30 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 20 Nov 2007 15:30:48 +0000 (15:30 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89450 | murf | 2007-11-20 08:22:08 -0700 (Tue, 20 Nov 2007) | 1 line

closes issue #11324; break statements missing in switch cases.
........

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

doc/tex/queues-with-callback-members.tex

index a5f9468..36e6428 100644 (file)
@@ -370,9 +370,11 @@ macro queue-success(exten)
                 case I:
                         Playback(agent-loginok);
                         Hangup();
+                        break;
                 case O:
                         Playback(agent-loggedoff);
                         Hangup();
+                        break;
                 }
         }
 }
@@ -388,29 +390,20 @@ macro queue-addremove(queuename,penalty,exten)
         switch(${exten:0:1})
         {
         case I:  // Login
-                {
                  AddQueueMember(${queuename},Local/${exten:1}@agents,${penalty});
                 break;
-                }
         case O:  // Logout
-                {
                  RemoveQueueMember(${queuename},Local/${exten:1}@agents);
                 break;
-                }
         case P:  // Pause
-                {
                  PauseQueueMember(${queuename},Local/${exten:1}@agents);
                 break;
-                }
         case U:  // Unpause
-                {
                  UnpauseQueueMember(${queuename},Local/${exten:1}@agents);
                 break;
-                }
         default: // Invalid
-                {
                  Playback(invalid);
-                }
+                 break;
         }
 }
 \end{verbatim}