replace don't bridge when parsing replaces header on invite (also hangup)

This commit is contained in:
Anthony Minessale 2010-04-27 14:26:55 -05:00
parent 35b9439b8a
commit 8660b6f9c1
1 changed files with 6 additions and 0 deletions

View File

@ -6475,6 +6475,12 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
}
} else {
destination_number = switch_core_session_sprintf(b_session, "answer,intercept:%s", uuid);
if ((c_session = switch_core_session_locate(uuid))) {
switch_channel_t *c_channel = switch_core_session_get_channel(c_session);
switch_channel_hangup(c_channel, SWITCH_CAUSE_ATTENDED_TRANSFER);
switch_core_session_rwunlock(c_session);
}
}
}