char *domain = NULL, *dup_domain = NULL;
char *concat = NULL;
const char *exclude_contact = NULL;
- char *reply = "error/facility_not_subscribed";
+ char *reply;
switch_stream_handle_t mystream = { 0 };
if (!cmd) {
int sps = 0, last_sps = 0, max_sps = 0, max_sps_fivemin = 0;
int sessions_peak = 0, sessions_peak_fivemin = 0; /* Max Concurrent Sessions buffers */
switch_bool_t html = SWITCH_FALSE; /* shortcut to format.html */
- char * nl = "\n"; /* shortcut to format.nl */
+ char *nl; /* shortcut to format.nl */
stream_format format = { 0 };
switch_size_t cur = 0, max = 0;
SWITCH_STANDARD_API(json_function)
{
cJSON *jcmd = NULL, *format = NULL;
- const char *message = "";
+ const char *message;
char *response = NULL;
if (zstr(cmd)) {
member_flag_t mflags[MFLAG_MAX] = { 0 };
switch_core_session_message_t msg = { 0 };
uint8_t isbr = 0;
- char *dpin = "";
- const char *mdpin = "";
+ char *dpin;
+ const char *mdpin;
conference_xml_cfg_t xml_cfg = { 0 };
switch_event_t *params = NULL;
int locked = 0;
switch_event_t *event;
const char *var;
char *expanded;
- const char *fax_result_str = "";
+ const char *fax_result_str;
pvt = (pvt_t *) user_data;
switch_assert(pvt);
sofia_profile_t *profile = NULL;
const char *exclude_contact = NULL;
const char *match_user_agent = NULL;
- char *reply = "error/facility_not_subscribed";
+ char *reply;
switch_stream_handle_t mystream = { 0 };
if (!cmd) {
switch_channel_t *channel = switch_core_session_get_channel(session);
sip_p_asserted_identity_t *passerted = NULL;
char *name = NULL;
- const char *number = "unknown", *tmp;
+ const char *number, *tmp;
switch_caller_profile_t *caller_profile;
char *dup = NULL;
switch_event_t *event;
}
if (channel && profile->pres_type && ss_state == nua_callstate_ready && status == 200) {
- const char* to_tag = "";
+ const char* to_tag;
char *sql = NULL;
to_tag = switch_str_nil(switch_channel_get_variable(channel, "sip_to_tag"));
sql = switch_mprintf("update sip_dialogs set sip_to_tag='%q' "
nua_handle_t *bnh = NULL;
char sip_acl_authed_by[512] = "";
char sip_acl_token[512] = "";
- const char *dialog_from_user = "", *dialog_from_host = "", *to_user = "", *to_host = "", *contact_user = "", *contact_host = "";
+ const char *dialog_from_user = "", *dialog_from_host = "", *to_user = "", *to_host = "", *contact_user, *contact_host;
const char *user_agent = "", *call_id = "";
url_t *from = NULL, *to = NULL, *contact = NULL;
const char *to_tag = "";
if (profile->pres_type) {
const char *presence_data = switch_channel_get_variable(channel, "presence_data");
const char *presence_id = switch_channel_get_variable(channel, "presence_id");
- char *full_contact = "";
+ char *full_contact;
char *p = NULL;
time_t now;
switch_caller_profile_t *caller_profile;
const char *cid_name, *cid_num;
char *e_dest = NULL;
- const char *holdstr = "";
+ const char *holdstr;
char *extra_headers = NULL;
switch_status_t status = SWITCH_STATUS_FALSE;
uint32_t session_timeout = tech_pvt->profile->session_timeout;
const char *contact_host;//, *contact_user;
sip_contact_t const *contact;
char *port;
- const char *display = "\"user\"";
+ const char *display;
char new_port[25] = "";
sofia_nat_parse_t lnp = { { 0 } };
const char *ipv6;
switch_stream_handle_t stream = { 0 };
char *to;
const char *pl = NULL;
- const char *ct = "application/dialog-info+xml";
+ const char *ct;
if (mod_sofia_globals.debug_presence > 0) {
int i;
char *orig_proto = "";
char *alt_proto = NULL;
char *d_user = NULL;
- char *contact_str = "";
+ char *contact_str;
const char *call_id = NULL;
char *to_str = NULL;
char *full_from = NULL;
static int verto_init_ssl(verto_profile_t *profile)
{
- const char *err = "";
+ const char *err;
int i = 0;
profile->ssl_method = SSLv23_server_method(); /* create server instance */
}
if (listener->format == EVENT_FORMAT_JSON) {
- char *p = "{}";
+ char *p;
cJSON_AddItemToObject(cj, "events", cjevents);
p = cJSON_Print(cj);
if (cj && p) stream->write_function(stream, p);
char *path_info = switch_event_get_header(stream->param_event, "http-path-info");
char *uuid = strdup(path_info + 4);
switch_core_session_t *tsession;
- char *fname = "stream.mp3";
+ char *fname;
switch_assert(uuid);
if ((fname = strchr(uuid, '/'))) {
PyObject *pyresult, *arglist, *io = NULL;
int ts = 0;
- char *str = NULL, *what = (char*)"";
+ char *str = NULL, *what;
if (TS) {
ts++;
String::Utf8Value exception(try_catch->Exception());
const char *exception_string = js_safe_str(*exception);
Handle<Message> message = try_catch->Message();
- const char *msg = "";
+ const char *msg;
string filename = __FILE__;
int line = __LINE__;
string text = "";
static const char *media_flow_varname(switch_media_type_t type)
{
- const char *varname = "invalid";
+ const char *varname;
switch(type) {
case SWITCH_MEDIA_TYPE_AUDIO:
case SWITCH_MEDIA_TYPE_TEXT:
varname = "text_media_flow";
break;
+ default:
+ varname = "invalid";
+ break;
}
return varname;
static const char *remote_media_flow_varname(switch_media_type_t type)
{
- const char *varname = "invalid";
+ const char *varname;
switch(type) {
case SWITCH_MEDIA_TYPE_AUDIO:
case SWITCH_MEDIA_TYPE_TEXT:
varname = "remote_text_media_flow";
break;
+ default:
+ varname = "invalid";
+ break;
}
return varname;
static void media_flow_get_mode(switch_media_flow_t smode, const char **mode_str, switch_media_flow_t *opp_mode)
{
- const char *smode_str = "";
+ const char *smode_str;
switch_media_flow_t opp_smode = smode;
switch(smode) {
case SWITCH_MEDIA_FLOW_SENDRECV:
smode_str = "sendrecv";
break;
+ default:
+ smode_str = "";
+ break;
}
*mode_str = smode_str;
char max_data[128] = "";
const char *ip;
uint32_t port;
- const char *family = "IP4";
+ const char *family;
const char *username;
const char *bit_removal_on = "a=T38FaxFillBitRemoval\r\n";
const char *bit_removal_off = "";
switch_size_t len;
if (oe) {
- const char *family = "IP4";
+ const char *family;
char o_line[1024] = "";
if (oe >= pe) {
static void msrp_init_ssl(void)
{
- const char *err = "";
+ const char *err;
globals.ssl_client_method = SSLv23_client_method();
globals.ssl_client_ctx = SSL_CTX_new(globals.ssl_client_method);
switch_dtls_t *dtls;
const char *var;
int ret;
- const char *kind = "";
+ const char *kind;
unsigned long ssl_method_error = 0;
unsigned long ssl_ctx_error = 0;
const SSL_METHOD *ssl_method;