change switch_strlen_zero to zstr

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-10-23 16:03:42 +00:00
1 parent 410b6ebd1f
commit df7637f687
96 files changed
+1033 -1033

No files matched your search

@@ -141,7 +141,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
caller_profile = switch_channel_get_caller_profile(channel);
}
if (!caller_profile || switch_strlen_zero(caller_profile->destination_number)) {
if (!caller_profile || zstr(caller_profile->destination_number)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Obtaining Profile!\n");
return NULL;
}
@@ -271,7 +271,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
switch_regex_safe_free(re);
if (!extension) {
if (switch_strlen_zero(field_data)) {
if (zstr(field_data)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "No extension!\n");
break;
}
@@ -313,7 +313,7 @@ static switch_call_cause_t sip_outgoing_channel(switch_core_session_t *session,
} else {
profile = switch_core_get_variable("sip_profile");
}
if (switch_strlen_zero(profile)) {
if (zstr(profile)) {
profile = "default";
}
@@ -295,7 +295,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
const char *inline_ = switch_xml_attr_soft(xaction, "inline");
int xinline = switch_true(inline_);
if (!switch_strlen_zero(xaction->txt)) {
if (!zstr(xaction->txt)) {
data = xaction->txt;
} else {
data = (char *) switch_xml_attr_soft(xaction, "data");
@@ -393,7 +393,7 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt)
/* get our handle to the "dialplan" section of the config */
if (!switch_strlen_zero(alt_path)) {
if (!zstr(alt_path)) {
switch_xml_t conf = NULL, tag = NULL;
if (!(alt_root = switch_xml_parse_file_simple(alt_path))) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Open of [%s] failed\n", alt_path);