PLAT_DARWIN_SRC = plat/darwin/plat_api_stub.c
#plat/darwin/netif.c
-libsipcc_la_CFLAGS = $(AM_CFLAGS)
-libsipcc_la_LDFLAGS = $(LIBS)
+libsipcc_la_CFLAGS = $(AM_CFLAGS) $(SWITCH_AM_CFLAGS)
+libsipcc_la_LDFLAGS = $(LIBS) $(PLATFORM_CORE_LDFLAGS)
libsipcc_la_SOURCES = $(CORE_CCAPP_SRC) $(CORE_COMMON_SRC) $(GSM_SRC) $(CORE_SDP_SRC) $(CORE_SIPSTACK_SRC) $(CORE_SRCCOMMON_SRC) $(CPR_COMMON_SRC) $(PLAT_CSF2G_SRC)
listener = getCcappListener(syshdr->Usr.UsrInfo);
if (listener != NULL) {
- (* ((appListener)(listener)))(msg, syshdr->Cmd);
+ (* ((listener)))(msg, syshdr->Cmd);
} else {
CCAPP_DEBUG(DEB_F_PREFIX"Event[%d] doesn't have a dedicated listener.\n", DEB_F_PREFIX_ARGS(SIP_CC_PROV, fname),
syshdr->Usr.UsrInfo);
return gCCApp.state;
}
+void ccp_handler(void* msg, int type);
+
/**
*
* CCApp Provider init routine.
void CCAppInit()
{
ccProvider_state_t srvcState;
+ appListener handler = ccp_handler;
gCCApp.state = CC_CREATED_IDLE;
gCCApp.cause = CC_CAUSE_NONE;
DEF_DEBUG(DEB_F_PREFIX"Add ccp listener: type%d", DEB_F_PREFIX_ARGS(SIP_CC_PROV, "CCAppInit"),
CCAPP_CCPROVIER);
- addCcappListener((appListener *)ccp_handler, CCAPP_CCPROVIER);
+ addCcappListener(&handler, CCAPP_CCPROVIER);
}
char buf[MAX_CONFIG_VAL_PRINT_LEN];
int i, feat;
- debugif_printf("\n------ Current *Cache* Configuration ------\n");
+ debugif_printf("\n%s\n", "------ Current *Cache* Configuration ------");
table = prot_cfg_table;
for ( i=0; i < CFGID_LINE_FEATURE; i++ ) {
static int gTransportLayerProtocol = 4; // 4 = tcp, 2 = udp
static boolean gP2PSIP = FALSE;
static boolean gSDPMODE = FALSE;
+static boolean gRTPSAVPF = TRUE; /* TRUE = RTP/SAVPF , FALSE = RTP/SAVP */
static int gVoipControlPort = 5060;
static int gCcm1_sip_port = 5060;
void config_setup_elements (const char *sipUser, const char *sipPassword, const char *sipDomain)
{
unsigned int i;
- char buf[MAX_SIP_URL_LENGTH] = {'\0'};
+ // char buf[MAX_SIP_URL_LENGTH] = {'\0'};
char ip[MAX_SIP_URL_LENGTH] = {'\0'};
char option[MAX_SIP_URL_LENGTH] = {'\0'};
int line = 0;
/* The number of arguments (argc) used in the show command */
#define NUM_OF_SHOW_ARGUMENTS 2
+#if 0
static int last_month = 99;
static char last_month_str[MAX_NTP_MONTH_STR_LEN] = "";
static const char *month_ar[MAX_NTP_MONTH_ARRAY_SIZE] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
+#endif
/*--------------------------------------------------------------------------
* External function prototypes
*--------------------------------------------------------------------------
*/
-
+#if 0
/*
* This function finds month (0 to 11) from month name
* listed above in month_ar[]. This is used to convert the
}
return (ret_val);
}
-
+#endif
/*
* check if need help
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show dcsm\n");
+ debugif_printf("%s", "show dcsm\n");
return (0);
}
return(0);
}
- debugif_printf("\n-------------------------- DCSM Data --------------------------");
+ debugif_printf("%s", "\n-------------------------- DCSM Data --------------------------");
debugif_printf("\nDCSM State = %s",dcsm_get_state_name(dcsm_cb.state));
- debugif_printf("\nDCSM waiting calls \n");
+ debugif_printf("%s", "\nDCSM waiting calls \n");
for (i=0; i< DCSM_MAX_CALL_IDS; i++) {
if (dcsm_cb.call_ids[i] != CC_NO_CALL_ID) {
debugif_printf("%d ", dcsm_cb.call_ids[i]);
}
}
- debugif_printf("\n");
+ debugif_printf("%s", "\n");
- debugif_printf("\nDCSM waiting events \n");
+ debugif_printf("%s", "\nDCSM waiting events \n");
i = 0;
msg_ptr = sll_next(dcsm_cb.s_msg_list, NULL);
while (msg_ptr) {
feat_msg ? cc_feature_name(feat_msg->feature_id):" ");
}
}
- debugif_printf("\n-------------------------- DCSM Data Done-----------------------");
+ debugif_printf("%s", "\n-------------------------- DCSM Data Done-----------------------");
return (0);
}
* Skip the head.
*/
icb = call_chn->next_icb;
- MOZ_ASSERT(icb);
+ PR_ASSERT(icb);
while (icb && !done) {
/*
* Set the required event data so the entity can process the event.
*/
cb_hdr = (fim_cb_hdr_t *) (icb->cb);
- MOZ_ASSERT(cb_hdr);
+ PR_ASSERT(cb_hdr);
if (!cb_hdr) {
done = TRUE;
break;
* Check if need help.
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show fim\n");
+ debugif_printf("%s", "show fim\n");
}
/*
* Print the icbs.
*/
- debugif_printf("\n---------------------------------- FIM icbs -----------------------------------");
- debugif_printf("\ni call_id type icb next_chn next_icb cb scb");
- debugif_printf("\n-------------------------------------------------------------------------------\n");
+ debugif_printf("%s", "\n---------------------------------- FIM icbs -----------------------------------");
+ debugif_printf("%s", "\ni call_id type icb next_chn next_icb cb scb");
+ debugif_printf("%s", "\n-------------------------------------------------------------------------------\n");
FSM_FOR_ALL_CBS(icb, fim_icbs, FIM_MAX_ICBS) {
debugif_printf("%-3d %-7d %-6s 0x%8p 0x%8p 0x%8p 0x%8p 0x%8p\n",
*/
i = 0;
debugif_printf
- ("\n------------------------ FIM scbs ------------------------");
- debugif_printf("\ni type scb sm get_cb free_cb");
+ ("%s", "\n------------------------ FIM scbs ------------------------");
+ debugif_printf("%s", "\ni type scb sm get_cb free_cb");
debugif_printf
- ("\n----------------------------------------------------------\n");
+ ("%s", "\n----------------------------------------------------------\n");
FSM_FOR_ALL_CBS(scb, fim_scbs, FIM_MAX_SCBS) {
debugif_printf("%-2d %-6s 0x%8p 0x%8p 0x%8p 0x%8p\n",
fsm_show_cmd (cc_int32_t argc, const char *argv[])
{
fsm_fcb_t *fcb;
- int i = 0;
+ int i = 0;
void *cb = NULL;
+ PR_ASSERT(i == 0);
+
/*
* check if need help
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show fsm\n");
+ debugif_printf("%s", "show fsm\n");
return 0;
}
/*
* Print the fcbs
*/
- debugif_printf("\n----------------------------- FSM fcbs -------------------------------");
- debugif_printf("\ni call_id fcb type state dcb cb ");
- debugif_printf("\n----------------------------------------------------------------------\n");
+ debugif_printf("%s", "\n----------------------------- FSM fcbs -------------------------------");
+ debugif_printf("%s", "\ni call_id fcb type state dcb cb ");
+ debugif_printf("%s", "\n----------------------------------------------------------------------\n");
FSM_FOR_ALL_CBS(fcb, fsm_fcbs, FSM_MAX_FCBS) {
switch (fcb->fsm_type) {
fsmb2bcnf_show_cmd (cc_int32_t argc, const char *argv[])
{
fsmcnf_ccb_t *ccb;
- int i = 0;
+ int i = 0;
+ PR_ASSERT( i == 0 );
/*
* check if need help
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show fsmb2bcnf\n");
+ debugif_printf("%s", "show fsmb2bcnf\n");
return (0);
}
- debugif_printf("\n-------------------------- FSMB2BCNF ccbs --------------------------");
- debugif_printf("\ni b2bcnf_id ccb cnf_call_id cns_call_id active bridged");
- debugif_printf("\n--------------------------------------------------------------------"
+ debugif_printf("%s", "\n-------------------------- FSMB2BCNF ccbs --------------------------");
+ debugif_printf("%s", "\ni b2bcnf_id ccb cnf_call_id cns_call_id active bridged");
+ debugif_printf("%s", "\n--------------------------------------------------------------------"
"\n");
FSM_FOR_ALL_CBS(ccb, fsmb2bcnf_ccbs, FSMCNF_MAX_CCBS) {
fsmcnf_ccb_t *ccb;
int i = 0;
+ PR_ASSERT(i == 0);
/*
* check if need help
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show fsmcnf\n");
+ debugif_printf("%s", "show fsmcnf\n");
return (0);
}
- debugif_printf("\n-------------------------- FSMCNF ccbs --------------------------");
- debugif_printf("\ni cnf_id ccb cnf_call_id cns_call_id active bridged");
- debugif_printf("\n-----------------------------------------------------------------"
+ debugif_printf("%s", "\n-------------------------- FSMCNF ccbs --------------------------");
+ debugif_printf("%s", "\ni cnf_id ccb cnf_call_id cns_call_id active bridged");
+ debugif_printf("%s", "\n-----------------------------------------------------------------"
"\n");
FSM_FOR_ALL_CBS(ccb, fsmcnf_ccbs, FSMCNF_MAX_CCBS) {
*/
static sm_rcs_t
fsmdef_ev_createoffer (sm_event_t *event) {
- sm_rcs_t sm_rc;
+ // sm_rcs_t sm_rc;
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
cc_causes_t cause = CC_CAUSE_NORMAL;
cc_feature_t *msg = (cc_feature_t *) event->msg;
line_t line = msg->line;
callid_t call_id = msg->call_id;
- cc_causes_t lsm_rc;
+ // cc_causes_t lsm_rc;
int sdpmode = 0;
char *ufrag = NULL;
char *ice_pwd = NULL;
*/
static sm_rcs_t
fsmdef_ev_createanswer (sm_event_t *event) {
- sm_rcs_t sm_rc;
+ // sm_rcs_t sm_rc;
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
cc_feature_t *msg = (cc_feature_t *) event->msg;
cc_msgbody_info_t msg_body;
line_t line = msg->line;
callid_t call_id = msg->call_id;
- line_t free_line;
+ // line_t free_line;
int sdpmode = 0;
- const char *called_number = "1234";
- cc_causes_t lsm_rc;
- cc_msgbody_t *part;
- uint32_t body_length;
+ // const char *called_number = "1234";
+ // cc_causes_t lsm_rc;
+ // cc_msgbody_t *part;
+ // uint32_t body_length;
char *ufrag = NULL;
char *ice_pwd = NULL;
short vcm_res;
cc_causes_t cause = CC_CAUSE_NORMAL;
cc_msgbody_info_t msg_body;
int action = msg->action;
- string_t sdp = msg->sdp;
+ // string_t sdp = msg->sdp;
int sdpmode = 0;
callid_t call_id = msg->call_id;
line_t line = msg->line;
- cc_causes_t lsm_rc;
+ // cc_causes_t lsm_rc;
FSM_DEBUG_SM(DEB_F_PREFIX"Entered.\n", DEB_F_PREFIX_ARGS(FSM, __FUNCTION__));
/* compare and fail if different:
* anant: Why? The JS should be able to modify the SDP. Commenting out for now (same for answer)
- if (strcmp(msg_body.parts[0].body, sdp) != 0) {
+ if (strcmp(msg_body.parts[0].body, msg->sdp) != 0) {
ui_set_local_description(evSetLocalDescError, line, call_id, dcb->caller_id.call_instance_id, NULL, PC_SDPCHANGED);
return (SM_RC_END);
}
}
/* compare and fail if different
- if (strcmp(msg_body.parts[0].body, sdp) != 0) {
+ if (strcmp(msg_body.parts[0].body, msg->sdp) != 0) {
ui_set_local_description(evSetLocalDescError, line, call_id, dcb->caller_id.call_instance_id, NULL, PC_SDPCHANGED);
return (SM_RC_END);
}*/
int sdpmode = 0;
callid_t call_id = msg->call_id;
line_t line = msg->line;
- cc_causes_t lsm_rc;
+ // cc_causes_t lsm_rc;
cc_msgbody_t *part;
uint32_t body_length;
cc_msgbody_info_t msg_body;
fsmdef_ev_localdesc(sm_event_t *event) {
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
- cc_causes_t cause = CC_CAUSE_NORMAL;
+ // cc_causes_t cause = CC_CAUSE_NORMAL;
int sdpmode = 0;
- cc_causes_t lsm_rc;
- cc_msgbody_t *part;
- uint32_t body_length;
- cc_msgbody_info_t msg_body;
+ // cc_causes_t lsm_rc;
+ // cc_msgbody_t *part;
+ // uint32_t body_length;
+ // cc_msgbody_info_t msg_body;
FSM_DEBUG_SM(DEB_F_PREFIX"Entered.\n", DEB_F_PREFIX_ARGS(FSM, __FUNCTION__));
fsmdef_ev_remotedesc(sm_event_t *event) {
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
- cc_causes_t cause = CC_CAUSE_NORMAL;
+ // cc_causes_t cause = CC_CAUSE_NORMAL;
int sdpmode = 0;
- cc_causes_t lsm_rc;
- cc_msgbody_t *part;
- uint32_t body_length;
- cc_msgbody_info_t msg_body;
+ // cc_causes_t lsm_rc;
+ // cc_msgbody_t *part;
+ // uint32_t body_length;
+ // cc_msgbody_info_t msg_body;
FSM_DEBUG_SM(DEB_F_PREFIX"Entered.\n", DEB_F_PREFIX_ARGS(FSM, __FUNCTION__));
fsmdef_ev_setpeerconnection(sm_event_t *event) {
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
- cc_causes_t cause = CC_CAUSE_NORMAL;
+ // cc_causes_t cause = CC_CAUSE_NORMAL;
cc_feature_t *msg = (cc_feature_t *) event->msg;
callid_t call_id = msg->call_id;
int sdpmode = 0;
fsmdef_ev_addstream(sm_event_t *event) {
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
- cc_causes_t cause = CC_CAUSE_NORMAL;
+ // cc_causes_t cause = CC_CAUSE_NORMAL;
cc_feature_t *msg = (cc_feature_t *) event->msg;
- int sdpmode = 0;
- cc_causes_t lsm_rc;
- cc_msgbody_t *part;
- uint32_t body_length;
- cc_msgbody_info_t msg_body;
+ int sdpmode = 0;
+ // cc_causes_t lsm_rc;
+ // cc_msgbody_t *part;
+ // uint32_t body_length;
+ // cc_msgbody_info_t msg_body;
FSM_DEBUG_SM(DEB_F_PREFIX"Entered.\n", DEB_F_PREFIX_ARGS(FSM, __FUNCTION__));
fsmdef_ev_removestream(sm_event_t *event) {
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
- cc_causes_t cause = CC_CAUSE_NORMAL;
+ // cc_causes_t cause = CC_CAUSE_NORMAL;
cc_feature_t *msg = (cc_feature_t *) event->msg;
int sdpmode = 0;
- cc_causes_t lsm_rc;
- cc_msgbody_t *part;
- uint32_t body_length;
- cc_msgbody_info_t msg_body;
+ // cc_causes_t lsm_rc;
+ // cc_msgbody_t *part;
+ // uint32_t body_length;
+ // cc_msgbody_info_t msg_body;
FSM_DEBUG_SM(DEB_F_PREFIX"Entered.\n", DEB_F_PREFIX_ARGS(FSM, __FUNCTION__));
fsmdef_ev_addcandidate(sm_event_t *event) {
fsm_fcb_t *fcb = (fsm_fcb_t *) event->data;
fsmdef_dcb_t *dcb = fcb->dcb;
- cc_causes_t cause = CC_CAUSE_NORMAL;
+ // cc_causes_t cause = CC_CAUSE_NORMAL;
cc_feature_t *msg = (cc_feature_t *) event->msg;
int sdpmode = 0;
short vcm_res;
- uint16_t level;
+ // uint16_t level;
FSM_DEBUG_SM(DEB_F_PREFIX"Entered.\n", DEB_F_PREFIX_ARGS(FSM, __FUNCTION__));
unsigned long strtoul_result;
char *strtoul_end;
+ PR_ASSERT( i == 0 );
/*
* Check if need help.
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show fsmdef [all|rel]\n");
+ debugif_printf("%s", "show fsmdef [all|rel]\n");
} else if ((argc == 1) || (strcmp(argv[1], "all") == 0)) {
- debugif_printf("\n-------- FSMDEF dcbs --------");
- debugif_printf("\ni call_id dcb line");
- debugif_printf("\n-----------------------------\n");
+ debugif_printf("%s", "\n-------- FSMDEF dcbs --------");
+ debugif_printf("%s", "\ni call_id dcb line");
+ debugif_printf("%s", "\n-----------------------------\n");
/*
* Print info for all dcbs.
fsmxfr_xcb_t *xcb;
int i = 0;
+ PR_ASSERT( i == 0 );
/*
* Check if need help.
*/
if ((argc == 2) && (argv[1][0] == '?')) {
- debugif_printf("show fsmxfr\n");
+ debugif_printf("%s", "show fsmxfr\n");
return (0);
}
- debugif_printf("\n------------------------ FSMXFR xcbs -------------------------");
- debugif_printf("\ni xfr_id xcb type method xfr_call_id cns_call_id");
- debugif_printf("\n--------------------------------------------------------------\n");
+ debugif_printf("%s", "\n------------------------ FSMXFR xcbs -------------------------");
+ debugif_printf("%s", "\ni xfr_id xcb type method xfr_call_id cns_call_id");
+ debugif_printf("%s", "\n--------------------------------------------------------------\n");
FSM_FOR_ALL_CBS(xcb, fsmxfr_xcbs, FSMXFR_MAX_XCBS) {
debugif_printf("%-2d %-6d 0x%8p %-4d %-6d %-11d %-11d\n",
break;
case GSM_FLASH_ONCE_TIMER:
if (media_timer_callback != NULL) {
- (* ((media_timer_callback_fp)(media_timer_callback)))();
+ (* ((media_timer_callback)))();
}
break;
case GSM_TONE_DURATION_TIMER:
*/
void gsmsdp_copy_payloads_to_previous_sdp (fsmdef_media_t *media)
{
- static const char *fname = "gsmsdp_copy_payloads_to_previous_sdp";
+ // static const char *fname = "gsmsdp_copy_payloads_to_previous_sdp";
if ((!media->payloads) && (NULL != media->previous_sdp.payloads))
{
uint16_t level;
boolean explicit_reject = FALSE;
boolean found_codec = FALSE;
- int32_t num_match_payloads = 0;
+ // int32_t num_match_payloads = 0;
int codec = RTP_NONE;
int remote_pt = RTP_NONE;
int32_t payload_types_count = 0; /* count for allocating right amout
gsmsdp_negotiate_datachannel_attribs(fsmdef_dcb_t* dcb_p, cc_sdp_t* sdp_p, uint16_t level, fsmdef_media_t* media)
{
uint32 num_streams;
- char *protocol;
+ // char *protocol;
sdp_attr_get_fmtp_streams (sdp_p->dest_sdp, level, 0, 1, &num_streams);
static const char fname[] = "gsmsdp_add_unsupported_stream_to_local_sdp";
uint32_t remote_pt;
sdp_payload_ind_e remote_pt_indicator;
- cpr_ip_addr_t addr;
+ // cpr_ip_addr_t addr;
if (sdp_p == NULL) {
GSM_ERR_MSG(GSM_F_PREFIX"sdp is null.\n", fname);
fsmdef_media_t *media;
uint8_t cap_index;
sdp_direction_e remote_direction;
- boolean result;
+ // boolean result;
int sdpmode = 0;
- char *session_pwd;
- cc_action_data_t data;
+ // char *session_pwd;
+ // cc_action_data_t data;
int j=0;
int rtcpmux = 0;
tinybool rtcp_mux = FALSE;
uint16_t i = 0;
sdp_media_e media_type;
fsmdef_dcb_t *dcb_p = fcb_p->dcb;
- boolean result;
+ // boolean result;
num_m_lines = sdp_get_num_media_lines(sdp_p->dest_sdp);
if (num_m_lines == 0) {
fsmdef_dcb_t *dcb_p = fcb_p->dcb;
cc_sdp_t *sdp_p = dcb_p->sdp;
fsmdef_media_t *media;
- int level;
+ // int level;
short result;
/* Tolerate missing ufrag/pwd here at the session level
char *session_fingerprint = NULL;
sdp_result_e sdp_res;
sdp_result_e sdp_session_res;
- short vcm_res;
+ // short vcm_res;
fsmdef_dcb_t *dcb_p = fcb_p->dcb;
cc_sdp_t *sdp_p = dcb_p->sdp;
fsmdef_media_t *media;
- int level = SDP_SESSION_LEVEL;
- short result;
+ // int level = SDP_SESSION_LEVEL;
+ // short result;
char *token;
char line_to_split[FSMDEF_MAX_DIGEST_ALG_LEN + FSMDEF_MAX_DIGEST_LEN + 2];
char *delim = " ";
static boolean
gsmsdp_is_supported_session_parm (const char *session_parms)
{
- int len, wsh;
+ int len;
const char *parm_ptr;
long strtol_result;
char *strtol_end;
int i = 0;
lsm_lcb_t *lcb;
+ PR_ASSERT( i == 0 );
debugif_printf("\n------------------ LSM lcbs -------------------");
debugif_printf("\ni call_id line state lcb");
debugif_printf("\n-----------------------------------------------\n");
#else
#endif
#define CSFLog(pri, file, line, tag, format, ...)
+#define CSFLogV(pri, file, line, tag, format, args)
#ifdef __cplusplus
}
#endif
static const char gExternalNumberMask[] = "";
static const char gVersion[] = "0.1";
static const boolean gRTCPMUX = FALSE;
-static boolean gRTPSAVPF = TRUE; /* TRUE = RTP/SAVPF , FALSE = RTP/SAVP */
static const boolean gMAXAVBITRATE = FALSE; /* Following six are OPUS fmtp options */
static const boolean gMAXCODEDAUDIOBW = FALSE;
static const boolean gUSEDTX = FALSE;
#include "plat_api.h"
#include "phone_debug.h"
#include "CSFLog.h"
+#include <assert.h>
typedef cc_int32_t (*debug_callback)(cc_int32_t argc, const char *argv[]);
typedef cc_int32_t (*show_callback)(cc_int32_t argc, const char *argv[]);
// Send debug output to CSFLog
#define debugif_printf(format, ...) CSFLogDebug("debugif", format, ## __VA_ARGS__ )
-
+#define PR_ASSERT( test ) assert( test )
#endif /* _DEBUG_INCLUDED_H */
#include "rtp_defs.h"
#include "CSFLog.h"
-static const char* logTag = "sdp_access";
+//static const char* logTag = "sdp_access";
/* Function: sdp_find_media_level
* Description: Find and return a pointer to the specified media level,
//#include "mozilla/Assertions.h"
#include "CSFLog.h"
-static const char* logTag = "sdp_attr";
+//static const char* logTag = "sdp_attr";
/*
* Macro for sdp_build_attr_fmtp
#include "sdp_private.h"
#include "CSFLog.h"
-static const char* logTag = "sdp_attr_access";
+//static const char* logTag = "sdp_attr_access";
/* Attribute access routines are all defined by the following parameters.
*
#include "sdp_private.h"
#include "CSFLog.h"
-static const char* logTag = "sdp_config";
+//static const char* logTag = "sdp_config";
/* Function: sdp_verify_conf_ptr
* Description: Verify the configuration pointer is valid by checking for
#include "sdp_private.h"
#include "CSFLog.h"
-static const char* logTag = "sdp_main";
+//static const char* logTag = "sdp_main";
/* Note: These *must* be in the same order as the enum types. */
const sdp_tokenarray_t sdp_token[SDP_MAX_TOKENS] =
#include "ccapi.h"
#include "CSFLog.h"
-static const char *logTag = "sdp_token";
+//static const char *logTag = "sdp_token";
#define MCAST_STRING_LEN 4
#define MKI_BUF_LEN 4
-static const char* logTag = "sdp_utils";
+//static const char* logTag = "sdp_utils";
sdp_mca_t *sdp_alloc_mca () {
sdp_mca_t *mca_p;
char *param_val;
char *url_other_param = NULL;
uint16_t i;
- uint32_t ttl_val;
+ // uint32_t ttl_val;
unsigned long strtoul_result;
char *strtoul_end;
if (token_found) {
errno = 0;
- strtol_result = (temp, &strtol_end, 10);
+ strtol_result = strtol(temp, &strtol_end, 10);
if (errno || temp == strtol_end || strtol_result > INT_MAX) {
return SIP_ERROR;
sipsdp_write_to_buf (cc_sdp_t *sdp_info, uint32_t *retbytes)
{
flex_string fs;
- uint32_t sdp_len;
+ // uint32_t sdp_len;
sdp_result_e rc;
flex_string_init(&fs);
#include "cpr_stdlib.h"
#include "cpr_string.h"
#include "cpr_strings.h"
+#include "debug.h"
/**
* sstrncpy
/* Sanity check on allocation size */
if (new_min_length > FLEX_STRING_MAX_SIZE) {
- MOZ_CRASH();
+ abort();
}
/* Alloc to nearest chunk */
/* Try again with new buffer */
va_start(ap, format);
vsnprintf_result = vsnprintf(fs->buffer + fs->string_length, fs->buffer_length - fs->string_length, format, ap);
- MOZ_ASSERT(vsnprintf_result > 0 && vsnprintf_result < (fs->buffer_length - fs->string_length));
+ PR_ASSERT(vsnprintf_result > 0 && vsnprintf_result < (fs->buffer_length - fs->string_length));
va_end(ap);
}
static const char fname[] = "cprCreateMessageQueue";
cpr_msg_queue_t *msgq;
static int key_id = 100; /* arbitrary starting number */
+ pthread_cond_t _cond = PTHREAD_COND_INITIALIZER;
+ pthread_mutex_t _lock = PTHREAD_MUTEX_INITIALIZER;
msgq = cpr_calloc(1, sizeof(cpr_msg_queue_t));
if (msgq == NULL) {
msgq->name = name ? name : unnamed_string;
msgq->queueId = key_id++;
- pthread_cond_t _cond = PTHREAD_COND_INITIALIZER;
msgq->cond = _cond;
- pthread_mutex_t _lock = PTHREAD_MUTEX_INITIALIZER;
msgq->mutex = _lock;
/*
cpr_socklen_t addr_len)
{
int retry = 0, retval;
+ cpr_status_e returnValue = CPR_FAILURE;
cprAssert(addr != NULL, CPR_FAILURE);
retval = connect(soc, (struct sockaddr *)addr, addr_len);
}
- cpr_status_e returnValue = CPR_FAILURE;
if ( retval == 0 || (retval == -1 && errno == EISCONN))
{
returnValue = CPR_SUCCESS;