Skip to content

Commit

Permalink
pua: Add Events for reginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbock committed Mar 8, 2024
1 parent 02d01aa commit 9f0de9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/pua/add_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ int pua_add_events(void)
LM_ERR("while adding event presence\n");
return -1;
}
/* add application/reginfo+xml */
if(add_pua_event(REGINFO_EVENT, "reg", "application/reginfo+xml", 0)< 0)
{
LM_ERR("while adding event application/reginfo+xml with version "
"increase\n");
return -1;
}

return 0;
}
Expand Down
3 changes: 3 additions & 0 deletions modules/pua/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#define XCAPDIFF_EVENT 1<<5
#define DIALOG_EVENT 1<<6
#define CALLINFO_EVENT 1<<7
#define REGINFO_EVENT 1<<8

#define UL_PUBLISH 1<<0
#define BLA_PUBLISH 1<<1
Expand All @@ -55,6 +56,8 @@
#define RLS_SUBSCRIBE 1<<9
#define DIALOG_PUBLISH 1<<10
#define CALLINFO_PUBLISH 1<<11
#define REGINFO_SUBSCRIBE 1<<12
#define REGINFO_PUBLISH 1<<13

#define NO_UPDATEDB_FLAG 0
#define UPDATEDB_FLAG 1
Expand Down

0 comments on commit 9f0de9e

Please sign in to comment.