diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 766c6ceee1..6963bd3c12 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1124,8 +1124,8 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand } } - if ((v_contact_str = switch_event_get_header(*v_event, "sip-force-contact")) || auto_connectile) { - if ((!strcasecmp(v_contact_str, "NDLB-connectile-dysfunction-2.0")) || auto_connectile) { + if (auto_connectile || (v_contact_str = switch_event_get_header(*v_event, "sip-force-contact"))) { + if (auto_connectile || (!strcasecmp(v_contact_str, "NDLB-connectile-dysfunction-2.0"))) { char *path_encoded; size_t path_encoded_len; char my_contact_str[1024];