mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-14 04:54:49 +00:00
move this to debug and profile->debug so that its not on unless you enable the profile debug also.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13887 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a6db0cf42f
commit
809d30254e
@ -1985,7 +1985,9 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
|
|||||||
|
|
||||||
if (!switch_strlen_zero(var) && !switch_strlen_zero(val) && (xparams_type[j] == 1 || !strncasecmp(var, "sip-",4) || !strcasecmp(var, "register-gateway")) ) {
|
if (!switch_strlen_zero(var) && !switch_strlen_zero(val) && (xparams_type[j] == 1 || !strncasecmp(var, "sip-",4) || !strcasecmp(var, "register-gateway")) ) {
|
||||||
if (!switch_event_get_header(*v_event, var)) {
|
if (!switch_event_get_header(*v_event, var)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "event_add_header -> '%s' = '%s'\n",var, val);
|
if (profile->debug) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "event_add_header -> '%s' = '%s'\n",var, val);
|
||||||
|
}
|
||||||
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM, var, val);
|
switch_event_add_header_string(*v_event, SWITCH_STACK_BOTTOM, var, val);
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user