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