Files
gb28181/GB28181Device/sip/sip_reg.h
2024-12-15 20:42:32 +08:00

43 lines
1.6 KiB
C

/***************************************************************************************
*
* 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 SIP_REG_H
#define SIP_REG_H
#ifdef __cplusplus
extern "C" {
#endif
BOOL sip_reg_notify(HSIP_USER * p_user, PUAEVT evt);
BOOL sip_sua_digest_calc(const char * method_type, SUA * p_sua);
BOOL sip_get_digest_info(HSIP_MSG * rx_msg, HD_AUTH_INFO * auth_info);
HSIP_MSG * sip_build_register_normal_msg(HSIP_USER * p_user, uint32 srv_ip, uint16 srv_port);
HSIP_MSG * sip_build_register_digest_msg(HSIP_MSG * rx_msg, HSIP_USER * p_user);
void sip_register_response_rx(HSIP_MSG * rx_msg, HSIP_USER * p_user);
BOOL http_digest_auth(HSIP_USER * p_user, HD_AUTH_INFO * auth_info, const char * method);
#ifdef __cplusplus
}
#endif
#endif