def __init__(self, body = None, address = None): if body == '*': SipGenericHF.__init__(self, body) self.asterisk = True return SipAddressHF.__init__(self, body, address) if body == None and address == None: self.address = SipAddress(name = 'Anonymous', url = SipURL(host = SipConf.my_address, port = SipConf.my_port))
def __init__(self, body=None, address=None): if body == '*': SipGenericHF.__init__(self, body) self.asterisk = True return SipAddressHF.__init__(self, body, address) if body == None and address == None: self.address = SipAddress(name='Anonymous', url=SipURL(host=SipConf.my_address, port=SipConf.my_port))
def __init__(self, body = None, address = None): SipAddressHF.__init__(self, body, address) if body == None and address == None: self.address = SipAddress(name = 'Anonymous', url = SipURL(host = SipConf.my_address, port = SipConf.my_port))
def __init__(self, body = None, address = None): if body == '*': raise ESipHeaderIgnore() SipAddressHF.__init__(self, body, address) if body == None and address == None: self.address = SipAddress(name = 'Anonymous', url = SipURL(host = SipConf.my_address, port = SipConf.my_port))
def __init__(self, body=None, address=None): SipAddressHF.__init__(self, body, address) if body == None and address == None: self.address = SipAddress(name='Anonymous', url=SipURL(host=SipConf.my_address, port=SipConf.my_port))
def parse(self): if not self.asterisk: return SipAddressHF.parse(self)