summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c
index 7ccdaf557..38d11b1c0 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -156,11 +156,13 @@ static struct ao2_container *channels;
*
* \ref causes.h
*/
-static const struct {
+struct causes_map {
int cause;
const char *name;
const char *desc;
-} causes[] = {
+};
+
+static const struct causes_map causes[] = {
{ 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" },