/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/errors/MAPErrorCode.java

http://mobicents.googlecode.com/ · Java · 124 lines · 51 code · 14 blank · 59 comment · 0 complexity · 357bcf023aa0243830228848d696345d 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.map.api.errors;
  23. /**
  24. * MAP Error codes
  25. * Carried by ReturnError primitive
  26. *
  27. * @author sergey vetyutnev
  28. *
  29. */
  30. public interface MAPErrorCode {
  31. // -- values band
  32. public static final int minimalCodeValue = 1;
  33. public static final int maximumCodeValue = 72;
  34. // -- generic error codes
  35. public static final int systemFailure = 34;
  36. public static final int dataMissing = 35;
  37. public static final int unexpectedDataValue = 36;
  38. public static final int facilityNotSupported = 21;
  39. public static final int incompatibleTerminal = 28;
  40. public static final int resourceLimitation = 51;
  41. // -- call handling error codes
  42. public static final int noRoamingNumberAvailable = 39;
  43. public static final int absentSubscriber = 27;
  44. public static final int busySubscriber = 45;
  45. public static final int noSubscriberReply = 46;
  46. public static final int callBarred = 13;
  47. public static final int forwardingFailed = 47;
  48. public static final int orNotAllowed = 48;
  49. public static final int forwardingViolation = 14;
  50. public static final int cugReject = 15;
  51. // -- identification and numbering errors
  52. public static final int unknownSubscriber = 1;
  53. public static final int numberChanged = 44;
  54. public static final int unknownMSC = 3;
  55. public static final int unidentifiedSubscriber = 5;
  56. public static final int unknownEquipment = 7;
  57. // -- subscription error codes
  58. public static final int roamingNotAllowed = 8;
  59. public static final int illegalSubscriber = 9;
  60. public static final int illegalEquipment = 12;
  61. public static final int bearerServiceNotProvisioned = 10;
  62. public static final int teleserviceNotProvisioned = 11;
  63. // -- short message service errors
  64. public static final int subscriberBusyForMTSMS = 31;
  65. public static final int smDeliveryFailure = 32;
  66. public static final int messageWaitingListFull = 33;
  67. public static final int absentSubscriberSM = 6;
  68. // -- location service errors
  69. public static final int unauthorizedRequestingNetwork = 52;
  70. public static final int unauthorizedLCSClient = 53;
  71. public static final int positionMethodFailure = 54;
  72. public static final int unknownOrUnreachableLCSClient = 58;
  73. public static final int mmEventNotSupported = 59;
  74. // -- supplementary service errors
  75. public static final int illegalSSOperation = 16;
  76. public static final int ssErrorStatus = 17;
  77. public static final int ssNotAvailable = 18;
  78. public static final int ssSubscriptionViolation = 19;
  79. public static final int ssIncompatibility = 20;
  80. public static final int unknownAlphabet = 71;
  81. public static final int ussdBusy = 72;
  82. public static final int pwRegistrationFailure = 37;
  83. public static final int negativePWCheck = 38;
  84. public static final int numberOfPWAttemptsViolation = 43;
  85. public static final int shortTermDenial = 29;
  86. public static final int longTermDenial = 30;
  87. /**
  88. * systemFailure |
  89. * unexpectedDataValue |
  90. * facilityNotSupported |
  91. * sm-DeliveryFailure}
  92. * dataMissing |
  93. * unidentifiedSubscriber |
  94. * illegalSubscriber |
  95. * illegalEquipment |
  96. * subscriberBusyForMT-SMS |
  97. * absentSubscriberSM
  98. * unknownSubscriber |
  99. * teleserviceNotProvisioned |
  100. * callBarred |
  101. * messageWaitingListFull
  102. * absentSubscriber
  103. * unauthorizedRequestingNetwork
  104. * unauthorizedLCSClient
  105. * positionMethodFailure
  106. * resourceLimitation
  107. * unknownOrUnreachableLCSClient
  108. *
  109. */
  110. }