Asterisk Project : Hangup Cause Mappings This page last changed on Aug 08, 2012 by mjordan. ## Asterisk Hangup Cause Code Mappings
Asterisk Value | Q.931 Cause Text | MFC/R2 | SIP
--- | --- | --- | ---
AST_CAUSE_NOT_DEFINED | Cause not defined | OR2_CAUSE_UNSPECIFIED |
AST_CAUSE_UNALLOCATED | Unallocated (unassigned) number |  | 404, 485, 604
AST_CAUSE_NO_ROUTE_TRANSIT_NET | No route to specified transmit network |  |
AST_CAUSE_NO_ROUTE_DESTINATION | No route to destination |  | 420
AST_CAUSE_MISDIALLED_TRUNK_PREFIX | Misdialed trunk prefix |  |
AST_CAUSE_CHANNEL_UNACCEPTABLE | Channel unacceptable |  |
AST_CAUSE_CALL_AWARDED_DELIVERED | Call awarded and being delivered in an established channel |  |
AST_CAUSE_PRE_EMPTED | Pre-empted |  |
AST_CAUSE_NUMBER_PORTED_NOT_HERE | Number ported elsewhere |  |
AST_CAUSE_NORMAL_CLEARING | Normal Clearing | OR2_CAUSE_NORMAL_CLEARING |
AST_CAUSE_USER_BUSY | User busy | OR2_CAUSE_BUSY_NUMBER | 486, 600
AST_CAUSE_NO_USER_RESPONSE | No user responding |  | 408
AST_CAUSE_NO_ANSWER | User alerting, no answer | OR2_CAUSE_NO_ANSWER | 480, 483
AST_CAUSE_SUBSCRIBER_ABSENT | Subscriber absent | OR2_CAUSE_UNALLOCATED_NUMBER |
AST_CAUSE_CALL_REJECTED | Call Rejected |  | 401, 403, 407, 603
AST_CAUSE_NUMBER_CHANGED | Number changed |  | 410
AST_CAUSE_REDIRECTED_TO_NEW_DESTINATION | Redirected to new destination |  |
AST_CAUSE_ANSWERED_ELSEWHERE | Answered elsewhere |  |
AST_CAUSE_DESTINATION_OUT_OF_ORDER | Destination out of order | OR2_CAUSE_OUT_OF_ORDER | 502
AST_CAUSE_INVALID_NUMBER_FORMAT | Invalid number format |  | 484
AST_CAUSE_FACILITY_REJECTED | Facility rejected |  | 501
AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY | Response to STATus ENQuiry |  |
AST_CAUSE_NORMAL_UNSPECIFIED | Normal, unspecified |  |
AST_CAUSE_NORMAL_CIRCUIT_CONGESTION | Circuit/channel congestion | OR2_CAUSE_NETWORK_CONGESTION |
AST_CAUSE_NETWORK_OUT_OF_ORDER | Network out of order |  | 500
AST_CAUSE_NORMAL_TEMPORARY_FAILURE | Temporary failure |  | 409
AST_CAUSE_SWITCH_CONGESTION | Switching equipment congestion |  | 5xx
AST_CAUSE_ACCESS_INFO_DISCARDED | Access information discarded |  |
AST_CAUSE_REQUESTED_CHAN_UNAVAIL | Requested channel not available |  |
AST_CAUSE_FACILITY_NOT_SUBSCRIBED | Facility not subscribed |  |
AST_CAUSE_OUTGOING_CALL_BARRED | Outgoing call barred |  |
AST_CAUSE_INCOMING_CALL_BARRED | Incoming call barred |  |
AST_CAUSE_BEARERCAPABILITY_NOTAUTH | Bearer capability not authorized |  |
AST_CAUSE_BEARERCAPABILITY_NOTAVAIL | Bearer capability not available |  | 488, 606
AST_CAUSE_BEARERCAPABILITY_NOTIMPL | Bearer capability not implemented |  |
AST_CAUSE_CHAN_NOT_IMPLEMENTED | Channel not implemented |  |
AST_CAUSE_FACILITY_NOT_IMPLEMENTED | Facility not implemented |  |
AST_CAUSE_INVALID_CALL_REFERENCE | Invalid call reference value |  |
AST_CAUSE_INCOMPATIBLE_DESTINATION | Incompatible destination |  |
AST_CAUSE_INVALID_MSG_UNSPECIFIED | Invalid message unspecified |  |
AST_CAUSE_MANDATORY_IE_MISSING | Mandatory information element is missing |  |
AST_CAUSE_MESSAGE_TYPE_NONEXIST | Message type nonexist |  |
AST_CAUSE_WRONG_MESSAGE | Wrong message |  |
AST_CAUSE_IE_NONEXIST | Info. element nonexist or not implemented |  |
AST_CAUSE_INVALID_IE_CONTENTS | Invalid information element contents |  |
AST_CAUSE_WRONG_CALL_STATE | Message not compatible with call state |  |
AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE | Recover on timer expiry |  | 504
AST_CAUSE_MANDATORY_IE_LENGTH_ERROR | Mandatory IE length error |  |
AST_CAUSE_PROTOCOL_ERROR | Protocol error, unspecified |  |
AST_CAUSE_INTERWORKING | Interworking, unspecified |  | 4xx, 505, 6xx
#### Notes The hangup cause AST_CAUSE_NOT_DEFINED is not actually a Q.931 cause code, and is used to capture hangup causes that do not map cleanly to a Q.931 cause code. IAX2, ISDN, and SS7 are all subsets of the cause codes listed above. Analog will always have a hangup cause code of AST_CAUSE_NORMAL_CLEARING. SIP causes of 4xx, 5xx, and 6xx correspond to all 400, 500, and 600 response codes not explicitly listed in the table above.

Document generated by Confluence on Nov 02, 2012 17:42