visio 下载-securecrt exe
2023年4月6日发(作者:如何恢复删除文件)
参考网址:
AMI+ACTION
/wiki/view/Asterisk+manager+API
Java接口请参见上面链接中的:
NewinAsterisk1.4:AJAMisanewJavaScript-basedtechnologywhichallowswebbrowsersorotherHTTPenabledapplications
andwebpagestodirectlyaccesstheAsteriskManagerInterface(AMI)viaHTTP.
ACTION+STATUS
/wiki/view/Asterisk+Manager+API+Action+Status
EVENT:
/wiki/view/asterisk+manager+events
注意事项:
1、每行以rn结束
2、key:value“:”后面要有空格
3、中
permit=127.0.0.1/255.255.255.0修改成
permit=0.0.0.0/255.255.255.0
并执行reloadmanager
登录过程:
1、客户端发送登录请求:
("action:loginrnUsername:adminrnSecret:elastix456rnrn",strlen("action:
loginrnUsername:adminrnSecret:elastix456rnrn"));
2、服务器响应:
状态请求:
1、客户端发送状态请求
("Action:Statusrnrn",strlen("Action:Statusrnrn"));
2、服务器发送响应消息
状态监控消息
1、分机注册
2、分机注销
3、拨打电话
Event:Newstate
Privilege:call,all
Channel:SIP/1002-084d85f0
State:Ring
CallerID:1002
CallerIDName:device
Uniqueid:1306476489.789
Event:Newexten
Privilege:call,all
Channel:SIP/1002-084d85f0
Context:from-internal
Extension:1006
Priority:1
Application:Macro
AppData:exten-vm|novm|1006
Uniqueid:1306476489.789
Event:ExtensionStatus
Privilege:call,all
Exten:1002
Context:ext-local
Status:1
Event:Hangup
Privilege:call,all
Channel:SIP/1002-084d85f0
Uniqueid:1306476489.789
Cause:16
Cause-txt:NormalClearing
参考enent:
'ExtensionStatus'Event
'Hangup'Event
Event:Newexten
Privilege:call,all
Channel:SIP/1001-084da428
Context:macro-hangupcall
Extension:s
Priority:9
Application:GotoIf
AppData:1?theend
Uniqueid:1306481384.804
Event:Newexten
Privilege:call,all
Channel:SIP/1001-084da428
Context:macro-hangupcall
Extension:s
Priority:11
Application:Hangup
AppData:
Uniqueid:1306481384.804
Event:Hangup
Privilege:call,all
Channel:SIP/1003-084ee2c8
Uniqueid:1306481384.805
Cause:16
Cause-txt:NormalClearing
Event:Hangup
Privilege:call,all
Channel:SIP/1001-084da428
Uniqueid:1306481384.804
Cause:16
Cause-txt:NormalClearing
Event:ExtensionStatus
Privilege:call,all
Exten:1003
Context:ext-local
Status:0
Event:ExtensionStatus
Privilege:call,all
Exten:1001
Context:ext-local
Status:0
Event:Link
Privilege:call,all
Channel1:SIP/1001-084da428
Channel2:SIP/1003-084ee2c8
Uniqueid1:1306481384.804
Uniqueid2:1306481384.805
CallerID1:1001
CallerID2:1003
Event:Unlink
Privilege:call,all
Channel1:SIP/1001-084da428
Channel2:SIP/1003-084ee2c8
Uniqueid1:1306481384.804
Uniqueid2:1306481384.805
CallerID1:1001
CallerID2:1003
Event:PeerStatus
Privilege:system,all
Peer:SIP/1001
PeerStatus:Unregistered
Event:Newstate
Privilege:call,all
Channel:SIP/1003-084ee2c8
State:Ringing
CallerID:1003
CallerIDName:
Uniqueid:1306481384.805
Devicestate.h中的宏定义
/*!briefDeviceStates
*noteTheorderofthesestatesmaynotchangebecausetheyareincluded
*inAsteriskeventswhichmaybetransmittedacrossthenetworkto
*otherservers.
*/
enumast_device_state{
AST_DEVICE_UNKNOWN,/*!
AST_DEVICE_NOT_INUSE,/*!
AST_DEVICE_INUSE,/*!
AST_DEVICE_BUSY,/*!
AST_DEVICE_INVALID,/*!
AST_DEVICE_UNAVAILABLE,/*!
AST_DEVICE_RINGING,/*!
AST_DEVICE_RINGINUSE,/*!
AST_DEVICE_ONHOLD,/*!
AST_DEVICE_TOTAL,/*/Totalnumofdevicestates,usedfortesting*/
};
更多推荐
uniqueid
发布评论