Hangup Cause Codes

Finding the Hangup Cause

grep -e '[CALLID].*HANGUPCAUSE' /var/log/asterisk/full

Replace call id with the hexcode of the call you are looking for

Finding the Hangup Cause

[2014-00-00 00:00:00] VERBOSE[25548][C-000001234] pbx.c: [2014-00-00 00:00:00]     -- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/9999-0000abcd", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 1 - failing through to other trunks") in new stack

In the above example "[C-000001234]" is the CALLID. All log entries related to a call should have these. 

In newer Asterisk versions asterisk will log the sip response to it's equivalent Q.931 code

Cause Codes

Q.931(PRI)

Cause Code

SIP RESPONSE

Description

Q.931(PRI)

Cause Code

SIP RESPONSE

Description

1

410

Unallocated or unassigned number

2

500

No route to specified transit network (Transit Network Identity)

3

404

No route to destination

4

500

Send special information tone

5

500

Misdialled trunk prefix

6

500

Channel unacceptable

7

500

Call awarded and being delivered in an established channel

8

500

Prefix 0 dialed but not allowed

9

500

Prefix 1 dialed but not allowed

10

 

Prefix 1 not dialed but required

11

 

More digits received than allowed, call is proceeding

16

BYE

Normal call clearing

17

486

User busy

18

480

No user responding

19

480

T.301 expired: – User Alerted, No answer from user

21

603

Call rejected

22

480

Number changed to number in diagnostic field.

23

 

Reverse charging rejected

24

 

Call suspended

25

 

Call resumed

26

500

Non-selected user clearing

27

404

Destination out of order

28

484

Invalid number format or incomplete address

29

501

EKTS facility rejected by network

30

500

Response to STATUS ENQUIRY

31

404

Normal, unspecified

33

 

Circuit out of order

34

503

No circuit/channel available

35

500

Destination unattainable

36

500

Out of order

37

500

Degraded service

38

503

Network out of order

39

500

Transit delay range cannot be achieved

40

500

Throughput range cannot be achieved

41

503

Temporary failure

42

503

Switching equipment congestion

43

500

Access information discarded

44

503

Requested circuit channel not available

45

500

Preempted

46

500

Precedence call blocked

47

503

Resource unavailable, unspecified

49

500

Quality of service unavailable

50

500

Requested facility not subscribed

51

 

Reverse charging not allowed

52

 

Outgoing calls barred

53

500

Outgoing calls barred within CUG

54

 

Incoming calls barred

55

603

Incoming calls barred within CUG

56

 

Call waiting not subscribed

57

501

Bearer capability not authorized

58

501

Bearer capability not presently available

63

503

Service or option not available, unspecified

65

501

Bearer service not implemented

66

500

Channel type not implemented

67

 

Transit network selection not implemented

68

 

Message not implemented

69

500

Requested facility not implemented

70

500

Only restricted digital information bearer capability is available

79

501

Service or option not implemented, unspecified

81

500

Invalid call reference value

82

500

Identified channel does not exist

83

500

A suspended call exists, but this call identity does not

84

500

Call identity in use

85

500

No call suspended

86

500

Call having the requested call identity has been cleared

87

603

Called user not member of CUG

88

404

Incompatible destination

89

 

Non-existent abbreviated address entry

90

500

Destination address missing, and direct call not subscribed

91

500

Invalid transit network selection (national use)

92

 

Invalid facility parameter 93 Mandatory information element is missing

93

500

Message type non-existent or not implemented

95

404

Invalid message, unspecified

96

500

Mandatory information element is missing

97

500

Message type non-existent or not implemented

98

500

Message not compatible with call state or message type non-existent or not implemented

99

500

Information element nonexistent or not implemented

100

500

Invalid information element contents

101

500

Message not compatible with call state

102

408

Recovery on timer expiry

103

500

Parameter non-existent or not implemented – passed on

111

404

Protocol error, unspecified

127

500

Internetworking, unspecified

Return to Documentation Home I Return to Sangoma Support