ein bischen logging hinzugefügt
authorSandro Knauß <knauss@netzguerilla.net>
Sun, 07 Feb 2010 18:04:53 +0100
changeset 36 178fd966423d
parent 35 cf22ec25ec23
child 37 6e5bd561ddd0
ein bischen logging hinzugefügt
iro/anbieter/sipgate.py
--- a/iro/anbieter/sipgate.py	Sun Feb 07 17:08:17 2010 +0100
+++ b/iro/anbieter/sipgate.py	Sun Feb 07 18:04:53 2010 +0100
@@ -63,7 +63,8 @@
 
     def __connect(self):
         """connect to sipgate XMLRPC Server"""
-
+        logger.debug("sipgate.__connect()-"+self.url%(self.user,"XXXXXXXX"))
+   
         self.samurai=xmlrpclib.Server(self.url%(self.user,self.password)).samurai
         args_identify = {
                 "ClientName"    : "anbieter.py",
@@ -91,6 +92,7 @@
         sended=[]
 
         self.__connect()
+        logger.debug('sipgate.__send(%s,%s)'%(str(args),  str(recipients)))
         for recipient in recipients:
             try:
                 tel = telnumber(recipient)
@@ -98,7 +100,7 @@
                 if tel in sended:                                                                           #only send message once per recipient
                     continue
                 sended.append(tel)
-
+				
                 args["RemoteUri"]="sip:%s%s@sipgate.net"%(tel.land,tel.number)
                 self.__send_method(self.samurai.SessionInitiate, args)
                 self.updateStatus(arranged=recipient)