asterisk App-Hangup 挂机
2008-03-13 17:32
363 查看
Synopsis:
Hangup()Description:
Unconditional hangup无条件挂机
Unconditionally hangs up a given channel by returning -1 always.
For PRI Connections: Setting a PRI_CAUSE
Available on CVS versions March, 2004On Zap PRI channels it is possible to set the PRI_CAUSE variable prior to Hangup(). This will send a PRI DISCONNECT message with the set CAUSE element to the switch. Some commonly used causecodes:
ZAP Pri通道上在挂机前设置PRI_CAUSE变量是可能的,这会发送PRI DISCONNECT消息
1 = Unallocated number
16 = Normal call clearing
17 = User busy
18 = No user responding (telephone device not connected)
21 = Call rejected
22 = Number changed
27 = Destignation out of order
38 = Network out of order
41 = Temporary failure
In Canada, through Group Telecom (May work through others) The hangup with PRI_CAUSE delivers these messages.
PRI_CAUSE = 0,22,28,65-66 We're sorry your call cannot be completedas dialed, please contact the group telecom customer service center at1-877-484-5101 if you require assistance.
PRI_CAUSE = 2-16,19-20,23-27,29-40,43-53,55-64,67-100 Fast Busy Signal / Congestions
PRI_CAUSE = 17,41 Slow Busy Signal (Normal busy signal you hear every day)
PRI_CAUSE = 18,21 Ringing (Normal ringing you hear every day)
PRI_CAUSE = 42,54 We're sorry, all circuits are busy, please try your call again later.
Example:
exten => i,1,SetVar(PRI_CAUSE=1); invalid extension dialed - PRI_CAUSE=unallocated number
exten => i,2,Hangup
; send the DISCONNECT message
; This will in most cases result in a network generated recording like
"The number you have dialed has been disconnected ..."
See also
Asterisk cmd softhangupAsterisk variable Hangupcause
Asterisk variable DIALSTATUS
Asterisk variable PRI_CAUSE
Asterisk variables
Introduction
相关文章推荐
- asterisk拨号计划中Hangup() App执行规则
- 陌陌引流脚本,陌陌APP引流脚本,可挂机全自动引流的脚本。
- iOS开发中,真机调试-Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 da
- Asterisk Callgroups and Pickupgroups-10
- 【转】Using RIL to hangup unwanted calls
- nodejs http调用报错:socket hang up
- 引流脚本是骗子吗,火山小视频APP引流脚本,可挂机引流日增2000+精准活粉
- Android 关于::app:clean :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE,引用jar冲突问题
- Up navigation with fragments using AppCompat
- 关于::app:clean :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE,引用jar冲突问题
- 【问题】vmware server 2.0 虚拟机启动到95%hangup
- speeding up app in android
- android-Backing up App Data to the Cloud
- Asterisk检测不到外线挂机的解决办法
- 给asterisk写app供CLI调用
- AndroidStudio创建TV-APP,出现Error:(28, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.0 的解决
- Using RIL to hangup unwanted calls
- APP引流脚本,摩擦APP引流脚本,可挂机全自动引流,的脚本。
- Hang up voice calls(转)
- Asterisk检测不到外线挂机的解决办法