/*************************************************************************************** * * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. * * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * Copyright (C) 2014-2022, Happytimesoft Corporation, all rights reserved. * * Redistribution and use in binary forms, with or without modification, are permitted. * * Unless required by applicable law or agreed to in writing, software distributed * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific * language governing permissions and limitations under the License. * ****************************************************************************************/ #ifndef GB28181_SUBSCRIBE_H #define GB28181_SUBSCRIBE_H #include "sys_inc.h" #include "sip_inc.h" #include "gb28181_msg.h" typedef struct { char subscriber[64]; // 订阅者 char subscriber_dst[128]; // 订阅消息的To char subscriber_uri[128]; // 订阅消息的From char subscriber_tag[64]; // 订阅者的Tag char ntf_tag[64]; // char subscribe_callid[128]; // 订阅的Call-ID char subscribe_event[64]; // 订阅事件 uint32 subscribe_sn; // 订阅SN uint32 subscribe_st; // 订阅开始时间 uint32 subscribe_expires; // 订阅的超时长度 uint32 prev_send_time; // 上一次发送通知时间 } GB28181_SUBSCRIBE; #ifdef __cplusplus extern "C" { #endif BOOL gb28181_subscribe_rx(HSIP_MSG * rx_msg); BOOL gb28181_event_notify(GB28181_ALARM * p_req); BOOL gb28181_media_notify(GB28181_MEDIA_NOTIFY * p_req); BOOL gb28181_catalog_notify(GB28181_CATALOG * p_req); BOOL gb28181_mobile_position_notify(GB28181_MOBILE_POSITION * p_req); void gb28181_subscribe_timer(); #ifdef __cplusplus } #endif #endif