Exemplo n.º 1
0
def get_session_timeout(pkt,defval=86400):
    try:return tools.DecodeInteger(pkt.get(27)[0]) or defval
    except:return defval
Exemplo n.º 2
0
def get_interim_update(pkt,defval=300):
    try:return tools.DecodeInteger(pkt.get(85)[0]) or defval
    except:return defval
Exemplo n.º 3
0
 def get_acct_output_gigawords(self):
     try:return tools.DecodeInteger(self.get(53)[0]) or 0
     except:return 0    
Exemplo n.º 4
0
 def get_nas_port_type(self):
     try:return tools.DecodeInteger(self.get(61)[0]) or 0
     except:return 0   
Exemplo n.º 5
0
 def get_acct_output_packets(self):
     try:return tools.DecodeInteger(self.get(48)[0]) or 0
     except:return 0           
Exemplo n.º 6
0
 def get_acct_terminate_cause(self):
     try:return tools.DecodeInteger(self.get(49)[0]) or 0
     except:return 0           
Exemplo n.º 7
0
 def get_acct_sessiontime(self):
     try:return tools.DecodeInteger(self.get(46)[0]) or 0
     except:return 0                                                             
Exemplo n.º 8
0
 def get_acct_input_octets(self):
     try:return tools.DecodeInteger(self.get(42)[0]) or 0
     except:return 0
Exemplo n.º 9
0
 def get_acct_status_type(self):
     try:return tools.DecodeInteger(self.get(40)[0])
     except:return None
Exemplo n.º 10
0
 def get_session_timeout(self):
     try:return tools.DecodeInteger(self.get(27)[0]) or 0
     except:return 0
Exemplo n.º 11
0
 def get_service_type(self):
     try:return tools.DecodeInteger(self.get(0)[0]) or 0
     except:return 0