Sat Aug 6 00:39:23 2011

Asterisk developer's documentation


causes.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 1999 - 2005, Digium, Inc.
00005  *
00006  * Martin Pycko <martinp@digium.com>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*! \file
00020  * \brief Internal Asterisk hangup causes
00021  */
00022 
00023 #ifndef _ASTERISK_CAUSES_H
00024 #define _ASTERISK_CAUSES_H
00025 
00026 /* Causes for disconnection (from Q.931) */
00027 #define AST_CAUSE_UNALLOCATED          1
00028 #define AST_CAUSE_NO_ROUTE_TRANSIT_NET       2
00029 #define AST_CAUSE_NO_ROUTE_DESTINATION       3
00030 #define AST_CAUSE_CHANNEL_UNACCEPTABLE       6
00031 #define AST_CAUSE_CALL_AWARDED_DELIVERED     7
00032 #define AST_CAUSE_NORMAL_CLEARING         16
00033 #define AST_CAUSE_USER_BUSY            17
00034 #define AST_CAUSE_NO_USER_RESPONSE        18
00035 #define AST_CAUSE_NO_ANSWER            19
00036 #define AST_CAUSE_SUBSCRIBER_ABSENT       20
00037 #define AST_CAUSE_CALL_REJECTED           21
00038 #define AST_CAUSE_NUMBER_CHANGED       22
00039 #define AST_CAUSE_DESTINATION_OUT_OF_ORDER      27
00040 #define AST_CAUSE_INVALID_NUMBER_FORMAT         28
00041 #define AST_CAUSE_FACILITY_REJECTED       29
00042 #define AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY    30
00043 #define AST_CAUSE_NORMAL_UNSPECIFIED         31
00044 #define AST_CAUSE_NORMAL_CIRCUIT_CONGESTION     34
00045 #define AST_CAUSE_NETWORK_OUT_OF_ORDER       38
00046 #define AST_CAUSE_NORMAL_TEMPORARY_FAILURE      41
00047 #define AST_CAUSE_SWITCH_CONGESTION       42
00048 #define AST_CAUSE_ACCESS_INFO_DISCARDED         43
00049 #define AST_CAUSE_REQUESTED_CHAN_UNAVAIL     44
00050 #define AST_CAUSE_PRE_EMPTED           45
00051 #define AST_CAUSE_FACILITY_NOT_SUBSCRIBED       50
00052 #define AST_CAUSE_OUTGOING_CALL_BARRED          52
00053 #define AST_CAUSE_INCOMING_CALL_BARRED          54
00054 #define AST_CAUSE_BEARERCAPABILITY_NOTAUTH      57
00055 #define AST_CAUSE_BEARERCAPABILITY_NOTAVAIL        58
00056 #define AST_CAUSE_BEARERCAPABILITY_NOTIMPL      65
00057 #define AST_CAUSE_CHAN_NOT_IMPLEMENTED          66
00058 #define AST_CAUSE_FACILITY_NOT_IMPLEMENTED         69
00059 #define AST_CAUSE_INVALID_CALL_REFERENCE     81
00060 #define AST_CAUSE_INCOMPATIBLE_DESTINATION      88
00061 #define AST_CAUSE_INVALID_MSG_UNSPECIFIED       95
00062 #define AST_CAUSE_MANDATORY_IE_MISSING       96
00063 #define AST_CAUSE_MESSAGE_TYPE_NONEXIST         97
00064 #define AST_CAUSE_WRONG_MESSAGE           98
00065 #define AST_CAUSE_IE_NONEXIST          99
00066 #define AST_CAUSE_INVALID_IE_CONTENTS        100
00067 #define AST_CAUSE_WRONG_CALL_STATE        101
00068 #define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE      102
00069 #define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR     103
00070 #define AST_CAUSE_PROTOCOL_ERROR       111
00071 #define AST_CAUSE_INTERWORKING            127
00072 
00073 /* Special Asterisk aliases */
00074 #define AST_CAUSE_BUSY              AST_CAUSE_USER_BUSY
00075 #define AST_CAUSE_FAILURE           AST_CAUSE_NETWORK_OUT_OF_ORDER
00076 #define AST_CAUSE_NORMAL            AST_CAUSE_NORMAL_CLEARING
00077 #define AST_CAUSE_NOANSWER          AST_CAUSE_NO_ANSWER
00078 #define AST_CAUSE_CONGESTION           AST_CAUSE_NORMAL_CIRCUIT_CONGESTION
00079 #define AST_CAUSE_UNREGISTERED            AST_CAUSE_SUBSCRIBER_ABSENT
00080 #define AST_CAUSE_NOTDEFINED           0
00081 #define AST_CAUSE_NOSUCHDRIVER            AST_CAUSE_CHAN_NOT_IMPLEMENTED
00082 
00083 #endif /* _ASTERISK_CAUSES_H */

Generated on Sat Aug 6 00:39:23 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7