Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:48:23 2009

## Asterisk developer's documentation

# causes.h File Reference

Internal Asterisk hangup causes. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines

#define | AST_CAUSE_ACCESS_INFO_DISCARDED 43
#define | AST_CAUSE_BEARERCAPABILITY_NOTAUTH 57
#define | AST_CAUSE_BEARERCAPABILITY_NOTAVAIL 58
#define | AST_CAUSE_BEARERCAPABILITY_NOTIMPL 65
#define | AST_CAUSE_BUSY AST_CAUSE_USER_BUSY
#define | AST_CAUSE_CALL_AWARDED_DELIVERED 7
#define | AST_CAUSE_CALL_REJECTED 21
#define | AST_CAUSE_CHAN_NOT_IMPLEMENTED 66
#define | AST_CAUSE_CHANNEL_UNACCEPTABLE 6
#define | AST_CAUSE_CONGESTION AST_CAUSE_NORMAL_CIRCUIT_CONGESTION
#define | AST_CAUSE_DESTINATION_OUT_OF_ORDER 27
#define | AST_CAUSE_FACILITY_NOT_IMPLEMENTED 69
#define | AST_CAUSE_FACILITY_NOT_SUBSCRIBED 50
#define | AST_CAUSE_FACILITY_REJECTED 29
#define | AST_CAUSE_FAILURE AST_CAUSE_NETWORK_OUT_OF_ORDER
#define | AST_CAUSE_IE_NONEXIST 99
#define | AST_CAUSE_INCOMING_CALL_BARRED 54
#define | AST_CAUSE_INCOMPATIBLE_DESTINATION 88
#define | AST_CAUSE_INTERWORKING 127
#define | AST_CAUSE_INVALID_CALL_REFERENCE 81
#define | AST_CAUSE_INVALID_IE_CONTENTS 100
#define | AST_CAUSE_INVALID_MSG_UNSPECIFIED 95
#define | AST_CAUSE_INVALID_NUMBER_FORMAT 28
#define | AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103
#define | AST_CAUSE_MANDATORY_IE_MISSING 96
#define | AST_CAUSE_MESSAGE_TYPE_NONEXIST 97
#define | AST_CAUSE_NETWORK_OUT_OF_ORDER 38
#define | AST_CAUSE_NO_ANSWER 19
#define | AST_CAUSE_NO_ROUTE_DESTINATION 3
#define | AST_CAUSE_NO_ROUTE_TRANSIT_NET 2
#define | AST_CAUSE_NO_USER_RESPONSE 18
#define | AST_CAUSE_NOANSWER AST_CAUSE_NO_ANSWER
#define | AST_CAUSE_NORMAL AST_CAUSE_NORMAL_CLEARING
#define | AST_CAUSE_NORMAL_CIRCUIT_CONGESTION 34
#define | AST_CAUSE_NORMAL_CLEARING 16
#define | AST_CAUSE_NORMAL_TEMPORARY_FAILURE 41
#define | AST_CAUSE_NORMAL_UNSPECIFIED 31
#define | AST_CAUSE_NOSUCHDRIVER AST_CAUSE_CHAN_NOT_IMPLEMENTED
#define | AST_CAUSE_NOTDEFINED 0
#define | AST_CAUSE_NUMBER_CHANGED 22
#define | AST_CAUSE_OUTGOING_CALL_BARRED 52
#define | AST_CAUSE_PRE_EMPTED 45
#define | AST_CAUSE_PROTOCOL_ERROR 111
#define | AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102
#define | AST_CAUSE_REQUESTED_CHAN_UNAVAIL 44
#define | AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY 30
#define | AST_CAUSE_SWITCH_CONGESTION 42
#define | AST_CAUSE_UNALLOCATED 1
#define | AST_CAUSE_UNREGISTERED AST_CAUSE_NO_ROUTE_DESTINATION
#define | AST_CAUSE_USER_BUSY 17
#define | AST_CAUSE_WRONG_CALL_STATE 101
#define | AST_CAUSE_WRONG_MESSAGE 98

## Detailed Description

Internal Asterisk hangup causes.

Definition in file causes.h.

## Define Documentation

#define AST_CAUSE_ACCESS_INFO_DISCARDED 43

Definition at line 47 of file causes.h.

#define AST_CAUSE_BEARERCAPABILITY_NOTAUTH 57

Definition at line 53 of file causes.h.

#define AST_CAUSE_BEARERCAPABILITY_NOTAVAIL 58

Definition at line 54 of file causes.h.

Referenced by hangup_cause2sip(), hangup_sip2cause(), sip_request_call(), and socket_read().

#define AST_CAUSE_BEARERCAPABILITY_NOTIMPL 65

Definition at line 55 of file causes.h.

#define AST_CAUSE_BUSY AST_CAUSE_USER_BUSY

Definition at line 73 of file causes.h.

Referenced by __ast_request_and_dial(), agent_request(), alsa_request(), ast_cdr_disposition(), ast_feature_request_and_dial(), cause2reason(), hangup_sip2cause(), mgcp_request(), oss_request(), phone_request(), str2cause(), update_dial_status(), wait_for_answer(), and zt_request().

#define AST_CAUSE_CALL_AWARDED_DELIVERED 7

Definition at line 31 of file causes.h.

#define AST_CAUSE_CALL_REJECTED 21

Definition at line 36 of file causes.h.

Referenced by authenticate_request(), hangup_cause2sip(), hangup_sip2cause(), and oh323_hangup().

#define AST_CAUSE_CHAN_NOT_IMPLEMENTED 66

Definition at line 56 of file causes.h.

Referenced by hangup_cause2sip().

#define AST_CAUSE_CHANNEL_UNACCEPTABLE 6

Definition at line 30 of file causes.h.

#define AST_CAUSE_CONGESTION AST_CAUSE_NORMAL_CIRCUIT_CONGESTION

Definition at line 77 of file causes.h.

Referenced by __ast_request_and_dial(), ast_feature_request_and_dial(), cause2reason(), dial_exec_full(), hangup_cause2sip(), hangup_sip2cause(), iax2_request(), str2cause(), wait_for_answer(), zt_indicate(), and zt_request().

#define AST_CAUSE_DESTINATION_OUT_OF_ORDER 27

Definition at line 38 of file causes.h.

Referenced by attempt_transmit(), hangup_cause2sip(), and hangup_sip2cause().

#define AST_CAUSE_FACILITY_NOT_IMPLEMENTED 69

Definition at line 57 of file causes.h.

#define AST_CAUSE_FACILITY_NOT_SUBSCRIBED 50

Definition at line 50 of file causes.h.

Referenced by auth_reject(), and socket_read().

#define AST_CAUSE_FACILITY_REJECTED 29

Definition at line 40 of file causes.h.

Referenced by auth_reject(), hangup_cause2sip(), and hangup_sip2cause().

#define AST_CAUSE_FAILURE AST_CAUSE_NETWORK_OUT_OF_ORDER

Definition at line 74 of file causes.h.

Referenced by ast_cdr_disposition(), hangup_cause2sip(), and hangup_sip2cause().

#define AST_CAUSE_IE_NONEXIST 99

Definition at line 64 of file causes.h.

#define AST_CAUSE_INCOMING_CALL_BARRED 54

Definition at line 52 of file causes.h.

#define AST_CAUSE_INCOMPATIBLE_DESTINATION 88

Definition at line 59 of file causes.h.

#define AST_CAUSE_INTERWORKING 127

Definition at line 70 of file causes.h.

#define AST_CAUSE_INVALID_CALL_REFERENCE 81

Definition at line 58 of file causes.h.

#define AST_CAUSE_INVALID_IE_CONTENTS 100

Definition at line 65 of file causes.h.

#define AST_CAUSE_INVALID_MSG_UNSPECIFIED 95

Definition at line 60 of file causes.h.

#define AST_CAUSE_INVALID_NUMBER_FORMAT 28

Definition at line 39 of file causes.h.

Referenced by hangup_cause2sip().

#define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103

Definition at line 68 of file causes.h.

#define AST_CAUSE_MANDATORY_IE_MISSING 96

Definition at line 61 of file causes.h.

#define AST_CAUSE_MESSAGE_TYPE_NONEXIST 97

Definition at line 62 of file causes.h.

#define AST_CAUSE_NETWORK_OUT_OF_ORDER 38

Definition at line 44 of file causes.h.

#define AST_CAUSE_NO_ANSWER 19

Definition at line 35 of file causes.h.

Referenced by hangup_cause2sip(), hangup_sip2cause(), and oh323_hangup().

#define AST_CAUSE_NO_ROUTE_DESTINATION 3

Definition at line 29 of file causes.h.

Referenced by hangup_cause2sip(), and socket_read().

#define AST_CAUSE_NO_ROUTE_TRANSIT_NET 2

Definition at line 28 of file causes.h.

Referenced by hangup_cause2sip().

#define AST_CAUSE_NO_USER_RESPONSE 18

Definition at line 34 of file causes.h.

Referenced by auto_hangup(), hangup_cause2sip(), and hangup_sip2cause().

#define AST_CAUSE_NOANSWER AST_CAUSE_NO_ANSWER

Definition at line 76 of file causes.h.

Referenced by cause2reason(), and str2cause().

#define AST_CAUSE_NORMAL AST_CAUSE_NORMAL_CLEARING

Definition at line 75 of file causes.h.

Referenced by ast_cdr_disposition(), cause2reason(), hangup_sip2cause(), sip_hangup(), and str2cause().

#define AST_CAUSE_NORMAL_CIRCUIT_CONGESTION 34

Definition at line 43 of file causes.h.

Referenced by oh323_hangup().

#define AST_CAUSE_NORMAL_CLEARING 16

Definition at line 32 of file causes.h.

Referenced by oh323_hangup(), pbx_builtin_hangup(), and wait_for_answer().

#define AST_CAUSE_NORMAL_TEMPORARY_FAILURE 41

Definition at line 45 of file causes.h.

#define AST_CAUSE_NORMAL_UNSPECIFIED 31

Definition at line 42 of file causes.h.

Referenced by hangup_cause2sip().

#define AST_CAUSE_NOSUCHDRIVER AST_CAUSE_CHAN_NOT_IMPLEMENTED

Definition at line 80 of file causes.h.

Referenced by ast_request(), and update_dial_status().

#define AST_CAUSE_NOTDEFINED 0

Definition at line 79 of file causes.h.

Referenced by ast_cdr_disposition(), ast_request(), cause2reason(), and hangup_cause2sip().

#define AST_CAUSE_NUMBER_CHANGED 22

Definition at line 37 of file causes.h.

Referenced by hangup_cause2sip().

#define AST_CAUSE_OUTGOING_CALL_BARRED 52

Definition at line 51 of file causes.h.

#define AST_CAUSE_PRE_EMPTED 45

Definition at line 49 of file causes.h.

#define AST_CAUSE_PROTOCOL_ERROR 111

Definition at line 69 of file causes.h.

#define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102

Definition at line 67 of file causes.h.

#define AST_CAUSE_REQUESTED_CHAN_UNAVAIL 44

Definition at line 48 of file causes.h.

Referenced by oh323_hangup().

#define AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY 30

Definition at line 41 of file causes.h.

#define AST_CAUSE_SWITCH_CONGESTION 42

Definition at line 46 of file causes.h.

Referenced by hangup_cause2sip(), sip_request_call(), and zt_indicate().

#define AST_CAUSE_UNALLOCATED 1

Definition at line 27 of file causes.h.

Referenced by cause2reason(), hangup_cause2sip(), hangup_sip2cause(), and ss_thread().

#define AST_CAUSE_UNREGISTERED AST_CAUSE_NO_ROUTE_DESTINATION

Definition at line 78 of file causes.h.

Referenced by agent_request(), iax2_request(), mgcp_request(), sip_request_call(), and update_dial_status().

#define AST_CAUSE_USER_BUSY 17

Definition at line 33 of file causes.h.

Referenced by hangup_cause2sip(), oh323_hangup(), and zt_indicate().

#define AST_CAUSE_WRONG_CALL_STATE 101

Definition at line 66 of file causes.h.

#define AST_CAUSE_WRONG_MESSAGE 98

Definition at line 63 of file causes.h.