Skip to content

Commit

Permalink
Fail transaction of rtpproxy fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Aug 3, 2024
1 parent ecb8f33 commit b7d7bb3
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kamailio.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ route {
if (!has_totag()) {
t_on_failure("1");
};
} else {
sl_send_reply("502", "Very Bad Gateway");
};
};

Expand Down
3 changes: 3 additions & 0 deletions scenarios/UAC/opensips.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ route {
} else {
t_on_failure("re_invite");
}
} else {
t_reply(INT(502), "Very Bad Gateway");
exit;
};
};

Expand Down
3 changes: 3 additions & 0 deletions scenarios/UAS/auth/opensips.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ route {
} else {
t_on_failure("re_invite");
}
} else {
t_reply(INT(502), "Very Bad Gateway");
exit;
};
};

Expand Down
3 changes: 3 additions & 0 deletions scenarios/UAS/auth_db/calculate_ha1/opensips.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ route {
} else {
t_on_failure("re_invite");
}
} else {
t_reply(INT(502), "Very Bad Gateway");
exit;
};
};

Expand Down
3 changes: 3 additions & 0 deletions scenarios/UAS/auth_db/ha1/opensips.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ route {
} else {
t_on_failure("re_invite");
}
} else {
t_reply(INT(502), "Very Bad Gateway");
exit;
};
};

Expand Down
3 changes: 3 additions & 0 deletions scenarios/passtr/opensips.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ route {
t_on_failure("re_invite");
#endif
}
} else {
t_reply(INT(502), "Very Bad Gateway");
exit;
};
};

Expand Down
3 changes: 3 additions & 0 deletions scenarios/simple/opensips.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ route {
/* Get rid of session when INVITE fails unless it's re-INVITE */
t_on_failure("1");
}
} else {
t_reply(INT(502), "Very Bad Gateway");
exit;
};
};

Expand Down

0 comments on commit b7d7bb3

Please sign in to comment.