Skip to content

Commit

Permalink
[presence] fix evaluating shtag when cluster disabled
Browse files Browse the repository at this point in the history
Avoid evaluating sharing tags when the clustering support in presence module is disabled.
Related to #3359
  • Loading branch information
bogdan-iancu committed Apr 26, 2024
1 parent 7930e85 commit 6af9039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/presence/subscribe.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ int handle_subscribe(struct sip_msg* msg, int* force_active_param, str* tag)
reply_code= 500;
reply_str= pu_500_rpl;

if (tag) {
if (is_presence_cluster_enabled() && tag) {
subs.sh_tag = *tag;
if (c_api.shtag_get( &subs.sh_tag, pres_cluster_id)<0) {
LM_ERR("failed to lookup the <%.*s> sharing tag\n",
Expand Down

0 comments on commit 6af9039

Please sign in to comment.