`

AST_CAUSE 定义

阅读更多

 

文件位置asterisk-1.4.26.2/include/asterisk/causes.h

 

 

#ifndef _ASTERISK_CAUSES_H
#define _ASTERISK_CAUSES_H

/* Causes for disconnection (from Q.931) */
#define AST_CAUSE_UNALLOCATED				1
#define AST_CAUSE_NO_ROUTE_TRANSIT_NET			2
#define AST_CAUSE_NO_ROUTE_DESTINATION			3
#define AST_CAUSE_CHANNEL_UNACCEPTABLE			6
#define AST_CAUSE_CALL_AWARDED_DELIVERED		7
#define AST_CAUSE_NORMAL_CLEARING			16
#define AST_CAUSE_USER_BUSY				17
#define AST_CAUSE_NO_USER_RESPONSE			18
#define AST_CAUSE_NO_ANSWER				19
#define AST_CAUSE_SUBSCRIBER_ABSENT			20
#define AST_CAUSE_CALL_REJECTED				21
#define AST_CAUSE_NUMBER_CHANGED			22
#define AST_CAUSE_DESTINATION_OUT_OF_ORDER		27
#define AST_CAUSE_INVALID_NUMBER_FORMAT			28
#define AST_CAUSE_FACILITY_REJECTED			29
#define AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY		30
#define AST_CAUSE_NORMAL_UNSPECIFIED			31
#define AST_CAUSE_NORMAL_CIRCUIT_CONGESTION		34
#define AST_CAUSE_NETWORK_OUT_OF_ORDER			38
#define AST_CAUSE_NORMAL_TEMPORARY_FAILURE		41
#define AST_CAUSE_SWITCH_CONGESTION			42
#define AST_CAUSE_ACCESS_INFO_DISCARDED			43
#define AST_CAUSE_REQUESTED_CHAN_UNAVAIL		44
#define AST_CAUSE_PRE_EMPTED				45
#define AST_CAUSE_FACILITY_NOT_SUBSCRIBED  		50
#define AST_CAUSE_OUTGOING_CALL_BARRED     		52
#define AST_CAUSE_INCOMING_CALL_BARRED     		54
#define AST_CAUSE_BEARERCAPABILITY_NOTAUTH		57
#define AST_CAUSE_BEARERCAPABILITY_NOTAVAIL     	58
#define AST_CAUSE_BEARERCAPABILITY_NOTIMPL		65
#define AST_CAUSE_CHAN_NOT_IMPLEMENTED     		66
#define AST_CAUSE_FACILITY_NOT_IMPLEMENTED      	69
#define AST_CAUSE_INVALID_CALL_REFERENCE		81
#define AST_CAUSE_INCOMPATIBLE_DESTINATION		88
#define AST_CAUSE_INVALID_MSG_UNSPECIFIED  		95
#define AST_CAUSE_MANDATORY_IE_MISSING			96
#define AST_CAUSE_MESSAGE_TYPE_NONEXIST			97
#define AST_CAUSE_WRONG_MESSAGE				98
#define AST_CAUSE_IE_NONEXIST				99
#define AST_CAUSE_INVALID_IE_CONTENTS			100
#define AST_CAUSE_WRONG_CALL_STATE			101
#define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE		102
#define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR		103
#define AST_CAUSE_PROTOCOL_ERROR			111
#define AST_CAUSE_INTERWORKING				127

/* Special Asterisk aliases */
#define AST_CAUSE_BUSY 					AST_CAUSE_USER_BUSY
#define AST_CAUSE_FAILURE 				AST_CAUSE_NETWORK_OUT_OF_ORDER
#define AST_CAUSE_NORMAL 				AST_CAUSE_NORMAL_CLEARING
#define AST_CAUSE_NOANSWER	 			AST_CAUSE_NO_ANSWER
#define AST_CAUSE_CONGESTION	 			AST_CAUSE_NORMAL_CIRCUIT_CONGESTION
#define AST_CAUSE_UNREGISTERED				AST_CAUSE_SUBSCRIBER_ABSENT
#define AST_CAUSE_NOTDEFINED 				0
#define AST_CAUSE_NOSUCHDRIVER				AST_CAUSE_CHAN_NOT_IMPLEMENTED

#endif /* _ASTERISK_CAUSES_H */
 
注释部分
文件位置:asterisk-1.4.26.2/main/channels.c
-------------------------------------------------------------------

	{ 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_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_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_CALL_REJECTED, "CALL_REJECTED", "Call Rejected" },
	{ AST_CAUSE_NUMBER_CHANGED, "NUMBER_CHANGED", "Number changed" },
	{ 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" },
	{ AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY, "RESPONSE_TO_STATUS_ENQUIRY", "Response to STATus ENQuiry" },
	{ AST_CAUSE_NORMAL_UNSPECIFIED, "NORMAL_UNSPECIFIED", "Normal, unspecified" },
	{ AST_CAUSE_NORMAL_CIRCUIT_CONGESTION, "NORMAL_CIRCUIT_CONGESTION", "Circuit/channel congestion" },
	{ AST_CAUSE_NETWORK_OUT_OF_ORDER, "NETWORK_OUT_OF_ORDER", "Network out of order" },
	{ AST_CAUSE_NORMAL_TEMPORARY_FAILURE, "NORMAL_TEMPORARY_FAILURE", "Temporary failure" },
	{ 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" },
	{ AST_CAUSE_BEARERCAPABILITY_NOTAUTH, "BEARERCAPABILITY_NOTAUTH", "Bearer capability not authorized" },
	{ AST_CAUSE_BEARERCAPABILITY_NOTAVAIL, "BEARERCAPABILITY_NOTAVAIL", "Bearer capability not available" },
	{ AST_CAUSE_BEARERCAPABILITY_NOTIMPL, "BEARERCAPABILITY_NOTIMPL", "Bearer capability not implemented" },
	{ AST_CAUSE_CHAN_NOT_IMPLEMENTED, "CHAN_NOT_IMPLEMENTED", "Channel not implemented" },
	{ AST_CAUSE_FACILITY_NOT_IMPLEMENTED, "FACILITY_NOT_IMPLEMENTED", "Facility not implemented" },
	{ AST_CAUSE_INVALID_CALL_REFERENCE, "INVALID_CALL_REFERENCE", "Invalid call reference value" },
	{ AST_CAUSE_INCOMPATIBLE_DESTINATION, "INCOMPATIBLE_DESTINATION", "Incompatible destination" },
	{ AST_CAUSE_INVALID_MSG_UNSPECIFIED, "INVALID_MSG_UNSPECIFIED", "Invalid message unspecified" },
	{ AST_CAUSE_MANDATORY_IE_MISSING, "MANDATORY_IE_MISSING", "Mandatory information element is missing" },
	{ AST_CAUSE_MESSAGE_TYPE_NONEXIST, "MESSAGE_TYPE_NONEXIST", "Message type nonexist." },
	{ AST_CAUSE_WRONG_MESSAGE, "WRONG_MESSAGE", "Wrong message" },
	{ AST_CAUSE_IE_NONEXIST, "IE_NONEXIST", "Info. element nonexist or not implemented" },
	{ AST_CAUSE_INVALID_IE_CONTENTS, "INVALID_IE_CONTENTS", "Invalid information element contents" },
	{ AST_CAUSE_WRONG_CALL_STATE, "WRONG_CALL_STATE", "Message not compatible with call state" },
	{ AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE, "RECOVERY_ON_TIMER_EXPIRE", "Recover on timer expiry" },
	{ AST_CAUSE_MANDATORY_IE_LENGTH_ERROR, "MANDATORY_IE_LENGTH_ERROR", "Mandatory IE length error" },
	{ AST_CAUSE_PROTOCOL_ERROR, "PROTOCOL_ERROR", "Protocol error, unspecified" },
	{ AST_CAUSE_INTERWORKING, "INTERWORKING", "Interworking, unspecified" },
 

 

分享到:
评论

相关推荐

    ast_dp501_fw.bin

    安装ubuntu系统时需要重装Nvidia驱动,当使用低版本的Nvidia.run文件Nvidia驱动时,提示在指定位置找不到ast_dp501_fw.bin的文件,需要将此文件放到指定位置重新安装即可解决此问题。

    json4s-ast_2.11-3.2.11-API文档-中文版.zip

    赠送jar包:json4s-ast_2.11-3.2.11.jar; 赠送原API文档:json4s-ast_2.11-3.2.11-javadoc.jar; 赠送源代码:json4s-ast_2.11-3.2.11-sources.jar; 赠送Maven依赖信息文件:json4s-ast_2.11-3.2.11.pom; 包含...

    json4s-ast_2.11-3.2.11-API文档-中英对照版.zip

    赠送jar包:json4s-ast_2.11-3.2.11.jar; 赠送原API文档:json4s-ast_2.11-3.2.11-javadoc.jar; 赠送源代码:json4s-ast_2.11-3.2.11-sources.jar; 赠送Maven依赖信息文件:json4s-ast_2.11-3.2.11.pom; 包含...

    json4s-ast_2.12-3.5.3-API文档-中文版.zip

    赠送jar包:json4s-ast_2.12-3.5.3.jar; 赠送原API文档:json4s-ast_2.12-3.5.3-javadoc.jar; 赠送源代码:json4s-ast_2.12-3.5.3-sources.jar; 赠送Maven依赖信息文件:json4s-ast_2.12-3.5.3.pom; 包含翻译后...

    json4s-ast_2.12-3.5.3-API文档-中英对照版.zip

    赠送jar包:json4s-ast_2.12-3.5.3.jar; 赠送原API文档:json4s-ast_2.12-3.5.3-javadoc.jar; 赠送源代码:json4s-ast_2.12-3.5.3-sources.jar; 赠送Maven依赖信息文件:json4s-ast_2.12-3.5.3.pom; 包含翻译后...

    json4s-ast_2.10-3.2.1.zip

    JSON4S与Scala的2.10版本兼容,并且在这个例子中,我们看到的是JSON4S的一个特定版本——json4s-ast_2.10-3.2.1.zip。这个压缩包包含的是JSON4S库中的抽象语法树(AST)部分,用于构建和解析JSON结构。 JSON4S的AST...

    PyPI 官网下载 | ast_tools-0.0.25-py3-none-any.whl

    《PyPI官网下载:深入理解Python库ast_tools-0.0.25-py3-none-any.whl》 PyPI(Python Package Index)是Python世界中的一个核心资源库,它为全球的Python开发者提供了一个集中地,用于分享、发现和下载Python...

    ast_tools:使用Python AST的工具箱

    pip install ast_tools 有用的参考 通行证 ast_tools提供了许多用于重写函数和类的过程(也可以在模块级别工作,但是不存在这样的过程)。 通行证与apply_passes装饰器一起应用: @ apply_passes ([ pass1 (), pass...

    Python库 | ast_tools-0.0.20-py3-none-any.whl

    在Python中,`ast_tools-0.0.20-py3-none-any.whl` 是一个特定版本的Python库包,主要用于处理抽象语法树(Abstract Syntax Tree, AST)。这个库可能是为了解析、修改或生成Python代码而设计的,因为AST是编译器和...

    ast_viewer.cr:通过ASTNode对象,源文件或源代码字符串可视化AST结构

    `ast_viewer.cr` 是一个基于 Crystal 语言的工具,它允许开发者通过图形化方式查看抽象语法树(Abstract Syntax Tree, AST)结构。AST 是源代码在编译阶段被解析后的表示形式,它以树状结构捕获了源代码的结构和语义...

    星载热发射和反射辐射计(ASTER)AST-L1T-User-Guide-V3.pdf

    AST_L1T产品是ASTER数据处理流程中的一个重要环节,它通过对原始传感器辐射数据进行地形校正,生成了更为精确且经过地理配准的产品。这些产品适用于各种科学应用,如气候变化监测、地质灾害评估、植被健康分析等。 ...

    AST_14-JAIIO-2002.rar_ast

    标题中的"AST_14-JAIIO-2002.rar_ast"可能指的是一个学术研讨会或者会议的标识,其中"AST"可能代表一种技术、研究领域或者活动的缩写,"JAIIO"可能是特定组织或者事件的名称,而"2002"则指示了该资料的年份。...

    WIN64AST_110_BETA1.zip

    标题“WIN64AST_110_BETA1.zip”暗示了这是一款64位Windows平台的应用程序或驱动程序的测试版本,版本号为110,并处于Beta1阶段。这个压缩包包含了运行该软件所需的组件和辅助文档。 Win64AST.dll:这是一个动态...

    WIN64AST_110_BETA6.zip

    "WIN64AST_110_BETA6.zip"这个压缩包提供了一个名为"WIN64AST.exe"的工具,它专门用于查看和管理64位Windows系统的内核信息,为高级用户、安全研究人员和系统管理员提供了宝贵的资源。 首先,我们要理解什么是...

    AST_Space:AST Space 多学科实验室的网络服务

    AST_Space AST Space 多学科实验室的 Web 服务。 在 Linux/MacOS 上设置本地环境以进行贡献: $ mkdir ast_project $ cd ast_project $ git clone https://github.com/fandi-peng/AST_Space $ python3 -m venv ....

    jawn-ast_2.11-0.10.3.zip

    标题 "jawn-ast_2.11-0.10.3.zip" 提供的信息表明,这是一个与Java编程语言相关的库,特别是针对JSON解析的。Jawn(Java AST,即Java抽象语法树)是一个快速、灵活且轻量级的JSON解析框架,支持Scala 2.11版本,并且...

Global site tag (gtag.js) - Google Analytics