Skip to content

Commit

Permalink
Sample opensips.cfg: Avoid double-replying after save()
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Jan 14, 2021
1 parent 46553a9 commit e4708c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etc/opensips.cfg
Expand Up @@ -193,9 +193,9 @@ route{
}

if (is_method("REGISTER")) {
# store the registration and generate a SIP reply
if (!save("location"))
sl_reply_error();
xlog("failed to register AoR $tu\n");

exit;
}
Expand Down
3 changes: 2 additions & 1 deletion menuconfig/configs/opensips_residential.m4
Expand Up @@ -389,8 +389,9 @@ ifelse(ENABLE_TCP, `yes', ifelse(ENABLE_TLS, `yes', `
setbflag("SIP_PING_FLAG");
}',`')dnl

# store the registration and generate a SIP reply
if (!save("location"))
sl_reply_error();
xlog("failed to register AoR $tu\n");

exit;
}
Expand Down

0 comments on commit e4708c2

Please sign in to comment.