The information about the video intercom event is uploaded in JSON format of EventNotificationAlert message.
{
"ipAddress":172.6.64.7,
/*required, string, IPv4 address of the alarm device, the maximum size is 32 bytes*/
"ipv6Address":"",
/*optional, string, IPv6 address of the alarm device, the maximum size is 128 bytes*/
"portNo":80,
/*optional, integer32, port No. of the alarm device*/
"protocol":"HTTP",
/*optional, string, protocol type: "HTTP", "HTTPS", the maximum size is 32 bytes*/
"macAddress":"01:17:24:45:D9:F4",
/*optional, string, MAC address, the maximum size is 32 bytes*/
"channelID":"1",
/*optional, integer32, device channel No. that triggered alarm*/
"dateTime":"2016-12-12T17:30:08+08:00",
/*required, string, time when the alarm is triggered (UTC time, e.g., "2017-04-22T15:39:01+08:00"), the maximum size is 32 bytes*/
"activePostCount":1,
/*required, integer32, times that the same alarm has been uploaded*/
"eventType":"voiceTalkEvent",
/*required, string, triggered event type, here it should be set to "voiceTalkEvent", the maximum size is 128 bytes*/
"eventState":"active",
/*required, string, event triggering status: "active"-triggered, "inactive"-not triggered, the maximum size is 32 bytes. For continuous events, this field is used to check whether uploading the continuous events is ended. For example, when the motion detection event occurs, it will be uploaded continuously until an message with eventType "inactive" is uploaded ("invalid" indicates an invalid event)*/
"eventDescription":"Voice Talk Interactive Event",
/*required, event description*/
"deviceID":"",
/*optional, string ,device ID, this field is required for devices using ISUP*/
"VoiceTalkEvent":{
"deviceName":"",
/*optional, string, device name*/
"deviceId": ,
/*optional, string, device No. which consists of 0 to 32 characters*/
"cmdType":"",
/*required, string, operation type: "request"-request for calling, "cancel"-cancel this calling, "answer"-answer this calling, "reject"-reject this calling, "bellTimeout"-the bell ringing of the callee timed out, "hangUp"-end this calling, "deviceOnCall"-the calling is in progress*/
"src":{
/*optional*/
"periodNumber": ,
/*optional, int, project No.*/
"buildingNumber": ,
/*optional, int, building No.*/
"unitNumber": ,
/*optional, int, unit No.*/
"floorNumber": ,
/*optional, int, floor No.*/
"roomNumber": ,
/*optional, int, room No.*/
"devIndex": ,
/*optional, int, device serial No.*/
"communityNumber":"",
/*optional, string, community No.*/
"unitType":""
/*optional, string, unit type: "indoor"-indoor station, "villa"-villa door station, "confirm"-doorphone, "outdoor"-door station, "fence"-outer door station, "doorbell"-doorbell, "manage"-main station, "acs"-access control device*/
},
"target":{
/*optional*/
"periodNumber": ,
/*optional, int, project No.*/
"buildingNumber": ,
/*optional, int, building No.*/
"unitNumber": ,
/*optional, int, unit No.*/
"floorNumber": ,
/*optional, int, floor No.*/
"roomNumber": ,
/*optional, int, room No.*/
"devIndex": ,
/*optional, int, device serial No.*/
"communityNumber":"",
/*optional, string, community No.*/
"unitType":""
/*optional, string, unit type: "indoor"-indoor station, "villa"-villa door station, "confirm"-doorphone, "outdoor"-door station, "fence"-outer door station, "doorbell"-doorbell, "manage"-main station, "acs"-access control device*/
},
"serialNo": ,
/*optional, int, event serial No.*/
"currentEvent": ,
/*optional, boolean, whether it is a real-time event: true-yes (real-time event), false-no (offline event)*/
"frontSerialNo": ,
/*optional, int, serial No. of the previous event. If this field is not returned, the device will check whether event loss occurs by serialNo; if this field is returned, the device will check whether event loss occurs by this field and serialNo together. This field is mainly used to solve the problem that the serialNo is noncontinuous after subscribing alarms*/
"pictureURL":"",
/*optional, string, picture URL*/
"picturesNumber":
/*optional, int, number of pictures. If there is no picture or the picture is uploaded by picture URL, this field is 0 or not returned*/
}
}