/protocols/ss7/m3ua/api/src/main/java/org/mobicents/protocols/ss7/m3ua/message/MessageType.java

http://mobicents.googlecode.com/ · Java · 94 lines · 49 code · 13 blank · 32 comment · 0 complexity · 0f4c7962bd4ed530d54893b0e7acdc83 MD5 · raw file

  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011, Red Hat, Inc. and individual contributors
  4. * by the @authors tag. See the copyright.txt in the distribution for a
  5. * full listing of individual contributors.
  6. *
  7. * This is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU Lesser General Public License as
  9. * published by the Free Software Foundation; either version 2.1 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This software is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this software; if not, write to the Free
  19. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21. */
  22. package org.mobicents.protocols.ss7.m3ua.message;
  23. /**
  24. * Defines valid message types.
  25. *
  26. * @author kulikov
  27. */
  28. public interface MessageType {
  29. //Management (MGMT) Messages
  30. public final static int ERROR = 0;
  31. public final static int NOTIFY = 1;
  32. public final static String S_ERROR = "ERROR";
  33. public final static String S_NOTIFY = "NOTIFY";
  34. //Transfer Messages
  35. public final static int PAYLOAD = 1;
  36. public final static String S_PAYLOAD = "DATA";
  37. //SS7 Signalling Network Management (SSNM) Messages
  38. public final static int DESTINATION_UNAVAILABLE = 1;
  39. public final static int DESTINATION_AVAILABLE = 2;
  40. public final static int DESTINATION_STATE_AUDIT = 3;
  41. public final static int SIGNALING_CONGESTION = 4;
  42. public final static int DESTINATION_USER_PART_UNAVAILABLE = 5;
  43. public final static int DESTINATION_RESTRICTED = 6;
  44. public final static String S_DESTINATION_UNAVAILABLE = "DUNA";
  45. public final static String S_DESTINATION_AVAILABLE = "DAVA";
  46. public final static String S_DESTINATION_STATE_AUDIT = "DAUD";
  47. public final static String S_SIGNALING_CONGESTION = "SCON";
  48. public final static String S_DESTINATION_USER_PART_UNAVAILABLE = "DUPU";
  49. public final static String S_DESTINATION_RESTRICTED = "DRST";
  50. //ASP State Maintenance (ASPSM) Messages
  51. public final static int ASP_UP = 1;
  52. public final static int ASP_DOWN = 2;
  53. public final static int HEARTBEAT = 3;
  54. public final static int ASP_UP_ACK = 4;
  55. public final static int ASP_DOWN_ACK = 5;
  56. public final static int HEARTBEAT_ACK = 6;
  57. public final static String S_ASP_UP = "ASPUP";
  58. public final static String S_ASP_DOWN = "ASPDOWN";
  59. public final static String S_HEARTBEAT = "HEARTBEAT";
  60. public final static String S_ASP_UP_ACK = "ASPUPACK";
  61. public final static String S_ASP_DOWN_ACK = "ASPDOWNACK";
  62. public final static String S_HEARTBEAT_ACK = "HEARTBEATACK";
  63. //ASP Traffic Maintenance (ASPTM) Messages
  64. public final static int ASP_ACTIVE = 1;
  65. public final static int ASP_INACTIVE = 2;
  66. public final static int ASP_ACTIVE_ACK = 3;
  67. public final static int ASP_INACTIVE_ACK = 4;
  68. public final static String S_ASP_ACTIVE = "ASPACTIVE";
  69. public final static String S_ASP_INACTIVE = "ASPINACTIVE";
  70. public final static String S_ASP_ACTIVE_ACK = "ASPACTIVEACK";
  71. public final static String S_ASP_INACTIVE_ACK = "ASPINACTIVEACK";
  72. //Routing Key Management (RKM) Messages
  73. public final static int REG_REQUEST = 1;
  74. public final static int REG_RESPONSE = 2;
  75. public final static int DEREG_REQUEST = 3;
  76. public final static int DEREG_RESPONSE = 4;
  77. public final static String S_REG_REQUEST = "REGREQ";
  78. public final static String S_REG_RESPONSE = "REGRSP";
  79. public final static String S_DEREG_REQUEST = "DEREGREQ";
  80. public final static String S_DEREG_RESPONSE = "DEREGRESP";
  81. }