iro/anbieter/sipgate.py
changeset 32 935f9a4da503
parent 30 5253631a8dd3
child 36 178fd966423d
equal deleted inserted replaced
31:4d26236c51bd 32:935f9a4da503
    98                 if tel in sended:                                                                           #only send message once per recipient
    98                 if tel in sended:                                                                           #only send message once per recipient
    99                     continue
    99                     continue
   100                 sended.append(tel)
   100                 sended.append(tel)
   101 
   101 
   102                 args["RemoteUri"]="sip:%s%s@sipgate.net"%(tel.land,tel.number)
   102                 args["RemoteUri"]="sip:%s%s@sipgate.net"%(tel.land,tel.number)
   103                 xmlrpc_result = self.__send_method(self.samurai.SessionInitiate, args)
   103                 self.__send_method(self.samurai.SessionInitiate, args)
   104                 self.updateStatus(arranged=recipient)
   104                 self.updateStatus(arranged=recipient)
   105             except NotATelNumber,NoValidStatusCode :
   105             
       
   106             except NotATelNumber, NoValidStatusCode:
   106                 self.updateStatus(failed=recipient)
   107                 self.updateStatus(failed=recipient)
   107 
   108 
   108         self.__disconnect()
   109         self.__disconnect()
   109 
   110 
   110     def updateStatus(self, arranged=None, failed=None):
   111     def updateStatus(self, arranged=None, failed=None):