replace don't bridge when parsing replaces header on invite (also hangup)
This commit is contained in:
parent
35b9439b8a
commit
8660b6f9c1
|
@ -6475,6 +6475,12 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
destination_number = switch_core_session_sprintf(b_session, "answer,intercept:%s", uuid);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue