iro/anbieter/sipgate.py
changeset 37 6e5bd561ddd0
parent 36 178fd966423d
child 59 642098115855
equal deleted inserted replaced
36:178fd966423d 37:6e5bd561ddd0
    32     url="https://%s:%s@samurai.sipgate.net/RPC2"
    32     url="https://%s:%s@samurai.sipgate.net/RPC2"
    33     def __init__(self,user="",password=""):
    33     def __init__(self,user="",password=""):
    34         self.user=user
    34         self.user=user
    35         self.password=password
    35         self.password=password
    36 
    36 
    37     def read_basic_config(self,filename):
    37     def read_basic_config(self,filenames):
    38         """Read basic options from the config file"""
    38         """Read basic options from the config file"""
    39         cp = ConfigParser.ConfigParser()
    39         cp = ConfigParser.ConfigParser()
    40         cp.read([filename])
    40         cp.read(filenames)
    41         self.user=cp.get(self.section, 'user')
    41         self.user=cp.get(self.section, 'user')
    42         self.password=cp.get(self.section, 'password')
    42         self.password=cp.get(self.section, 'password')
    43 
    43 
    44     def sendSMS(self,sms,recipients):
    44     def sendSMS(self,sms,recipients):
    45         """send SMS with $sms to $recipients"""
    45         """send SMS with $sms to $recipients"""