Skip to content

Commit

Permalink
presence: updated to use xavp long value field
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 22, 2022
1 parent 24b3bf2 commit 642530f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/presence/notify.c
Expand Up @@ -1949,7 +1949,7 @@ int pres_get_delete_sub(void)

vavp = xavp_get_child_with_ival(&pres_xavp_cfg, &vname);
if(vavp != NULL) {
return (int)vavp->val.v.i;
return (int)vavp->val.v.l;
}

return 0;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/presence/presentity.c
Expand Up @@ -173,7 +173,7 @@ unsigned int pres_get_priority(void)

vavp = xavp_get_child_with_ival(&pres_xavp_cfg, &vname);
if(vavp != NULL) {
return (unsigned int)vavp->val.v.i;
return (unsigned int)vavp->val.v.l;
}

return (unsigned int)(time(NULL) - PRES_PRIORITY_TBASE);
Expand Down

0 comments on commit 642530f

Please sign in to comment.