} else if (!strcasecmp(var, "tcp-ping2pong") && !zstr(val)) {
profile->tcp_ping2pong = atoi(val);
sofia_set_pflag(profile, PFLAG_TCP_PING2PONG);
- } else if (!strcasecmp(var, "proxy-refer-replaces") && !zstr(val)) {
+ } else if ((!strcasecmp(var, "proxy-refer-replaces") || !strcasecmp(var, "proxy-refer")) && !zstr(val)) {
if (switch_true(val)) {
- sofia_set_pflag(profile, PFLAG_PROXY_REFER_REPLACES);
+ sofia_set_pflag(profile, PFLAG_PROXY_REFER);
} else {
- sofia_clear_pflag(profile, PFLAG_PROXY_REFER_REPLACES);
+ sofia_clear_pflag(profile, PFLAG_PROXY_REFER);
}
} else if (!strcasecmp(var, "sip-messages-respond-200-ok") && !zstr(val)) {
if (switch_true(val)) {
}
- if (sofia_test_pflag(profile, PFLAG_PROXY_REFER_REPLACES)) {
+ if (sofia_test_pflag(profile, PFLAG_PROXY_REFER)) {
switch_core_session_t *other_session;
- if (switch_stristr("replaces=", full_ref_to) && switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
+ if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
switch_core_session_message_t *msg;
msg = switch_core_session_alloc(other_session, sizeof(*msg));