00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <iax2/ies.h>
00042
00044
00045 class IAX2IeCauseCode : public IAX2IeByte
00046 {
00047 PCLASSINFO(IAX2IeCauseCode, IAX2IeByte);
00048 public:
00050 enum CauseCodes {
00051 Unallocated = 1,
00052 NoRouteTransitNet = 2,
00053 NoRouteDestination = 3,
00054 ChannelUnacceptable = 6,
00055 CallAwardedDelivered = 7,
00056 NormalClearing = 16,
00057 UserBusy = 17,
00058 NoUserResponse = 18,
00059 NoAnswer = 19,
00060 CallRejected = 21,
00061 NumberChanged = 22,
00062 DestinationOutOfOrder = 27,
00063 InvalidNumberFormat = 28,
00064 FacilityRejected = 29,
00065 ResponseToStatusEnquiry = 30,
00066 NormalUnspecified = 31,
00067 NormalCircuitCongestion = 34,
00068 NetworkOutOfOrder = 38,
00069 NormalTemporaryFailure = 41,
00070 SwitchCongestion = 42,
00071 AccessInfoDiscarded = 43,
00072 RequestedChanUnavail = 44,
00073 PreEmpted = 45,
00074 FacilityNotSubscribed = 50,
00075 OutgoingCallBarred = 52,
00076 IncomingCallBarred = 54,
00077 BearerCapabilityNotauth = 57,
00078 BearerCapabilityNotAvail = 58,
00079 BearerCapabilityNotimpl = 65,
00080 ChanNotImplemented = 66,
00081 FacilityNotImplemented = 69,
00082 InvalidCallReference = 81,
00083 IncompatibleDestination = 88,
00084 InvalidMsgUnspecified = 95,
00085 MandatoryIeMissing = 96,
00086 MessageTypeNonexist = 97,
00087 WrongMessage = 98,
00088 IeNonexist = 99,
00089 InvalidIeContents = 100,
00090 WrpngCallState = 101,
00091 RecoveryOnTimerExpire = 102,
00092 MandatoryIeLengthError = 103,
00093 ProtocolError = 111,
00094 Interworking = 127,
00096
00097 Busy = UserBusy,
00098 Failure = NetworkOutOfOrder,
00099 Normal = NormalClearing,
00100 Congestion = NormalCircuitCongestion,
00101 Unregistered = NoRouteDestination,
00102 NotDefined = 0,
00103 NoSuchDriver = ChanNotImplemented,
00104 };
00105
00109 IAX2IeCauseCode(BYTE length, BYTE *srcData) : IAX2IeByte(length, srcData) { };
00110
00112 IAX2IeCauseCode(BYTE newValue) : IAX2IeByte(newValue) { }
00113
00115 virtual BYTE GetKeyValue() const { return ie_causeCode; }
00116
00118 void PrintOn(ostream & str) const;
00119
00122 virtual void StoreDataIn(IAX2IeData &res) { res.causeCode = dataValue; }
00123
00124 };
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136