Add missing AST_CAUSE_* -> text translations
authorKinsey Moore <kmoore@digium.com>
Tue, 7 Aug 2012 18:21:56 +0000 (18:21 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 7 Aug 2012 18:21:56 +0000 (18:21 +0000)
A few of these were missing from the list and are necessary for the Who
Hung Up? functionality.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370851 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 4870902..828d0a0 100644 (file)
@@ -159,17 +159,24 @@ static const struct {
        const char *name;
        const char *desc;
 } causes[] = {
+       { AST_CAUSE_NOTDEFINED, "NOTDEFINED", "Cause not defined" },
        { AST_CAUSE_UNALLOCATED, "UNALLOCATED", "Unallocated (unassigned) number" },
        { AST_CAUSE_NO_ROUTE_TRANSIT_NET, "NO_ROUTE_TRANSIT_NET", "No route to specified transmit network" },
        { AST_CAUSE_NO_ROUTE_DESTINATION, "NO_ROUTE_DESTINATION", "No route to destination" },
+       { AST_CAUSE_MISDIALLED_TRUNK_PREFIX, "MISDIALLED_TRUNK_PREFIX", "Misdialed trunk prefix" },
        { AST_CAUSE_CHANNEL_UNACCEPTABLE, "CHANNEL_UNACCEPTABLE", "Channel unacceptable" },
        { AST_CAUSE_CALL_AWARDED_DELIVERED, "CALL_AWARDED_DELIVERED", "Call awarded and being delivered in an established channel" },
+       { AST_CAUSE_PRE_EMPTED, "PRE_EMPTED", "Pre-empted" },
+       { AST_CAUSE_NUMBER_PORTED_NOT_HERE, "NUMBER_PORTED_NOT_HERE", "Number ported elsewhere" },
        { AST_CAUSE_NORMAL_CLEARING, "NORMAL_CLEARING", "Normal Clearing" },
        { AST_CAUSE_USER_BUSY, "USER_BUSY", "User busy" },
        { AST_CAUSE_NO_USER_RESPONSE, "NO_USER_RESPONSE", "No user responding" },
        { AST_CAUSE_NO_ANSWER, "NO_ANSWER", "User alerting, no answer" },
+       { AST_CAUSE_SUBSCRIBER_ABSENT, "SUBSCRIBER_ABSENT", "Subscriber absent" },
        { AST_CAUSE_CALL_REJECTED, "CALL_REJECTED", "Call Rejected" },
        { AST_CAUSE_NUMBER_CHANGED, "NUMBER_CHANGED", "Number changed" },
+       { AST_CAUSE_REDIRECTED_TO_NEW_DESTINATION, "REDIRECTED_TO_NEW_DESTINATION", "Redirected to new destination" },
+       { AST_CAUSE_ANSWERED_ELSEWHERE, "ANSWERED_ELSEWHERE", "Answered elsewhere" },
        { AST_CAUSE_DESTINATION_OUT_OF_ORDER, "DESTINATION_OUT_OF_ORDER", "Destination out of order" },
        { AST_CAUSE_INVALID_NUMBER_FORMAT, "INVALID_NUMBER_FORMAT", "Invalid number format" },
        { AST_CAUSE_FACILITY_REJECTED, "FACILITY_REJECTED", "Facility rejected" },
@@ -181,7 +188,6 @@ static const struct {
        { AST_CAUSE_SWITCH_CONGESTION, "SWITCH_CONGESTION", "Switching equipment congestion" },
        { AST_CAUSE_ACCESS_INFO_DISCARDED, "ACCESS_INFO_DISCARDED", "Access information discarded" },
        { AST_CAUSE_REQUESTED_CHAN_UNAVAIL, "REQUESTED_CHAN_UNAVAIL", "Requested channel not available" },
-       { AST_CAUSE_PRE_EMPTED, "PRE_EMPTED", "Pre-empted" },
        { AST_CAUSE_FACILITY_NOT_SUBSCRIBED, "FACILITY_NOT_SUBSCRIBED", "Facility not subscribed" },
        { AST_CAUSE_OUTGOING_CALL_BARRED, "OUTGOING_CALL_BARRED", "Outgoing call barred" },
        { AST_CAUSE_INCOMING_CALL_BARRED, "INCOMING_CALL_BARRED", "Incoming call barred" },