|
@@ -497,7 +497,10 @@ route[FORWARD]
|
|
{
|
|
{
|
|
# if this is called from the failure route we need to open a new branch
|
|
# if this is called from the failure route we need to open a new branch
|
|
if (isflagset(FLAG_FAILUREROUTE)) {
|
|
if (isflagset(FLAG_FAILUREROUTE)) {
|
|
- append_branch();
|
|
|
|
|
|
+ if (!append_branch()) {
|
|
|
|
+ t_reply("500", "Too many branches");
|
|
|
|
+ drop;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
# if this is an initial INVITE (without a To-tag) we might try another
|
|
# if this is an initial INVITE (without a To-tag) we might try another
|