[asterisk-scf-commits] asterisk-scf/examples.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jun 24 17:45:43 CDT 2011


branch "master" has been updated
       via  f86a322c06b95490698aa8c93fef3afec4367571 (commit)
      from  379116368a81d03afdaa7e6b213abfc141750b44 (commit)

Summary of changes:
 Bridge_SessionListener.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit f86a322c06b95490698aa8c93fef3afec4367571
Author: Mark Michelson <mmichelson at digium.com>
Date:   Fri Jun 24 17:45:32 2011 -0500

    Add comment as suggested on CR-ASTSCF-113

diff --git a/Bridge_SessionListener.py b/Bridge_SessionListener.py
index edf35d3..0621d3a 100755
--- a/Bridge_SessionListener.py
+++ b/Bridge_SessionListener.py
@@ -197,6 +197,10 @@ class ListenerApp(Ice.Application):
         return 0
 
     def interruptCallback(self, sig):
+        # Ideally, we would keep track of all sessions and bridges we
+        # currently set up as listeners on and remove ourselves as listeners.
+        # For the sake of clarity and efficiency, we simply remove ourselves
+        # as a default bridge listener and a bridge manager listener.
         print "Removing ourself as a default bridge listener"
         try:
             self.bridgeManager.removeDefaultBridgeListener(self.bridgeListenerPrx)

-----------------------------------------------------------------------


-- 
asterisk-scf/examples.git



More information about the asterisk-scf-commits mailing list