Revert to original for managing of In-dialog RTP
This commit is contained in:
@@ -133,11 +133,7 @@ route[NATMANAGE] {
|
||||
if ((is_reply() && ($T_req($tt) != $null)) || (is_request() && has_totag())) {
|
||||
# In-Dialog requests
|
||||
# Requests originating from MO or MT
|
||||
if ((is_request() && isflagset(FLT_MOBILE_ORIG) && is_direction("downstream")) || (is_request() && !isflagset(FLT_MOBILE_ORIG) && is_direction("upstream"))) {
|
||||
rtpengine_manage();
|
||||
} else if ((is_reply() && !isflagset(FLT_MOBILE_ORIG) && is_direction("upstream")) || (is_reply() && isflagset(FLT_MOBILE_ORIG) && is_direction("downstream"))) {
|
||||
rtpengine_manage();
|
||||
}
|
||||
rtpengine_manage();
|
||||
} else {
|
||||
# Initial Requests
|
||||
if ($avp(rtpproxy_offer_flags) == $null)
|
||||
@@ -145,9 +141,9 @@ route[NATMANAGE] {
|
||||
if ($avp(rtpproxy_answer_flags) == $null)
|
||||
return;
|
||||
|
||||
if (is_request() && isflagset(FLT_MOBILE_ORIG)) {
|
||||
if (is_request()) {
|
||||
rtpengine_manage($avp(rtpproxy_offer_flags));
|
||||
} else if (is_reply() && !isflagset(FLT_MOBILE_ORIG)) {
|
||||
} else {
|
||||
rtpengine_manage($avp(rtpproxy_answer_flags));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user