def alertingNetToMs(Facility_presence=0, ProgressIndicator_presence=0, UserUser_presence=0):
 a = TpPd(pd=3)
 b = MessageType(mesType=1)
 packet = (a / b)
 if (Facility_presence is 1):
  c = FacilityHdr(ieiF=28)
  packet = (packet / c)
 if (ProgressIndicator_presence is 1):
  d = ProgressIndicatorHdr(ieiPI=30)
  packet = (packet / d)
 if (UserUser_presence is 1):
  e = UserUserHdr(ieiUU=126)
  packet = (packet / e)
 return packet

def alertingNetToMs ( Facility_presence = 0 , ProgressIndicator_presence = 0 , UserUser_presence = 0 ) : a = TpPd ( pd = 3 ) b = MessageType ( mesType = 1 ) packet = ( a / b ) if ( Facility_presence is 1 ) : c = FacilityHdr ( ieiF = 28 ) packet = ( packet / c ) if ( ProgressIndicator_presence is 1 ) : d = ProgressIndicatorHdr ( ieiPI = 30 ) packet = ( packet / d ) if ( UserUser_presence is 1 ) : e = UserUserHdr ( ieiUU = 126 ) packet = ( packet / e ) return packet
alerting section 9 .