def activatePdpContextAccept(PacketDataProtocolAddress_presence=0, ProtocolConfigurationOptions_presence=0):
 a = TpPd(pd=8)
 b = MessageType(mesType=66)
 c = LlcServiceAccessPointIdentifier()
 d = QualityOfService()
 e = RadioPriorityAndSpareHalfOctets()
 packet = ((((a / b) / c) / d) / e)
 if (PacketDataProtocolAddress_presence is 1):
  f = PacketDataProtocolAddress(ieiPDPA=43)
  packet = (packet / f)
 if (ProtocolConfigurationOptions_presence is 1):
  g = ProtocolConfigurationOptions(ieiPCO=39)
  packet = (packet / g)
 return packet

def activatePdpContextAccept ( PacketDataProtocolAddress_presence = 0 , ProtocolConfigurationOptions_presence = 0 ) : a = TpPd ( pd = 8 ) b = MessageType ( mesType = 66 ) c = LlcServiceAccessPointIdentifier ( ) d = QualityOfService ( ) e = RadioPriorityAndSpareHalfOctets ( ) packet = ( ( ( ( a / b ) / c ) / d ) / e ) if ( PacketDataProtocolAddress_presence is 1 ) : f = PacketDataProtocolAddress ( ieiPDPA = 43 ) packet = ( packet / f ) if ( ProtocolConfigurationOptions_presence is 1 ) : g = ProtocolConfigurationOptions ( ieiPCO = 39 ) packet = ( packet / g ) return packet
activate pdp context accept section 9 .