mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
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:
@@ -839,20 +839,20 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
||||
*dialplan++ = '\0';
|
||||
}
|
||||
|
||||
if (!switch_strlen_zero(context)) {
|
||||
if (!zstr(context)) {
|
||||
caller_profile->context = switch_core_strdup(caller_profile->pool, context);
|
||||
}
|
||||
|
||||
if (!switch_strlen_zero(dialplan)) {
|
||||
if (!zstr(dialplan)) {
|
||||
caller_profile->dialplan = switch_core_strdup(caller_profile->pool, dialplan);
|
||||
}
|
||||
}
|
||||
|
||||
if (switch_strlen_zero(caller_profile->context)) {
|
||||
if (zstr(caller_profile->context)) {
|
||||
caller_profile->context = switch_core_strdup(caller_profile->pool, "default");
|
||||
}
|
||||
|
||||
if (switch_strlen_zero(caller_profile->dialplan)) {
|
||||
if (zstr(caller_profile->dialplan)) {
|
||||
caller_profile->dialplan = switch_core_strdup(caller_profile->pool, "xml");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user