Send AAR upon 183 or 200 for replies with SDP

This commit is contained in:
herlesupreeth
2020-09-30 13:45:16 +02:00
parent 155a11b6cb
commit 7985bdc5f5
2 changed files with 3 additions and 8 deletions

View File

@@ -169,15 +169,13 @@ onreply_route[MO_indialog_reply] {
xnotice("Source IP and Port: ($si:$sp)\n Route-URI: $route_uri\n");
xnotice("Received IP and Port: ($Ri:$Rp)\n");
xnotice("Contact header: $ct\n");
#!ifdef WITH_IPSEC
ipsec_forward("location");
#!endif
# In case of 1xx and 2xx do NAT
if(status=~"[12][0-9][0-9]")
route(NATMANAGE);
#!ifdef WITH_RX
if(t_check_status("200") && is_method("INVITE")) {
if (t_check_status("183|200") && has_body("application/sdp")) {
if (t_is_retr_async_reply()) {
xlog("L_DBG", "Dropping retransmitted reply which is still currently suspended\n");
drop();

View File

@@ -86,9 +86,6 @@ route[MT_indialog] {
xnotice("Received IP and Port: ($Ri:$Rp)\n");
xnotice("Contact header: $ct\n");
#resetflag(FLT_MOBILE_ORIG);
#!ifdef WITH_IPSEC
ipsec_forward("location");
#!endif
t_on_reply("MT_indialog_reply");
}
@@ -102,7 +99,7 @@ onreply_route[MT_indialog_reply] {
route(NATMANAGE);
#!ifdef WITH_RX
if(t_check_status("200") && is_method("INVITE")) {
if (t_check_status("183|200") && has_body("application/sdp")) {
if (t_is_retr_async_reply()) {
xlog("L_DBG", "Dropping retransmitted reply which is still currently suspended\n");
drop();