first commit
This commit is contained in:
55
GB28181Device/sip/sip_cm.h
Normal file
55
GB28181Device/sip/sip_cm.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/***************************************************************************************
|
||||
*
|
||||
* 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_CM_H
|
||||
#define SIP_CM_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void cm_set_local_ip(uint32 ip);
|
||||
void cm_server_set(const char * sip, uint16 sport, const char * sid, const char * sdomain);
|
||||
void cm_acct_set(const char * acct, const char * pwd, int is_tcp);
|
||||
void cm_name_set(char * p_disp_name);
|
||||
BOOL cm_name_get(char * p_disp_name, int max_len);
|
||||
BOOL cm_start_reg();
|
||||
char * cm_get_self_acct(uint32 index);
|
||||
char * cm_get_req_acct(void * hSua);
|
||||
char * cm_get_remote_acct(void * p_sua);
|
||||
BOOL cm_set_remote_acct(void * p_sua, const char * p_tel);
|
||||
void cm_set_ntf_func(SIPNTFC p_func, void * p_userdata);
|
||||
char * cm_get_sname(void * p_sua);
|
||||
BOOL cm_set_sname(void * p_sua, const char * p_sname);
|
||||
int cm_get_call_state(void * p_sua);
|
||||
BOOL cm_sip_cmd(void * p_sua, PUACMD ua_cmd);
|
||||
|
||||
void cm_clear_sua_cap(void * hSua, const char * cap_name);
|
||||
int cm_add_sua_cap(void * hSua, const char * cap_type, int pt, const char * encoder, int hz, int chn, int direction);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user