安 ARI
控制器将软挂断来自 Statis
拨号计划的一部分。是否可以在每次软挂断请求后用代码32播放默认播放?这是收到的信息,从 ARI
在 asterisk-cli
{
"cause": 32,
"soft": true,
"type": "ChannelHangupRequest",
"timestamp": "2020-05-16T12:12:24.114",
"channel": {
"id": "1589631144.0",
"name": "SIP/+991551111-00000000",
"state": "Ring",
"caller": {
"name": "",
"number": "+991551111"
},
"connected": {
"name": "",
"number": ""
},
"accountcode": "",
"dialplan": {
"context": "finalOutbound",
"exten": "+993211111",
"priority": 9,
"app_name": "Stasis",
"app_data": "auth_app,auth_reqtype=*prepaid,flags=*attributes,*thresholds,*sessions,*accounts,*suppliers"
},
"creationtime": "2020-05-16T12:12:24.118",
"language": "en"
},
"asterisk_id": "00:0c:29:92:52:b2",
"application": "auth_app"
}
如果被叫通道挂断,你可以什么都不做.如果主叫挂断,你可以播放。例如,使用本地频道和G参数的拨号命令。