Fix for IMS call between UEs not supporting preconditioning

This commit is contained in:
herlesupreeth
2024-01-10 13:25:49 +05:30
parent 5fb6af3b3d
commit c0680a40b9

View File

@@ -130,6 +130,14 @@ route[NATMANAGE] {
return;
#!endif
# Fix for calling between UEs not supporting preconditioning
if(sdp_get_line_startswith("$avp(mline)", "a=inactive")) {
xlog("m-line: $avp(mline)\n");
sdp_remove_line_by_prefix("a=inactive");
$sdp(body) = $sdp(body) + "a=sendrecv\r\n";
msg_apply_changes();
}
if ((is_reply() && ($T_req($tt) != $null)) || (is_request() && has_totag())) {
if (($fU != $null && is_in_profile("caller", "$fU")) ||
($tU != $null && is_in_profile("callee", "$tU"))) {