Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00034 #include <stdio.h>
00035 #include <stdlib.h>
00036 #include <string.h>
00037 #include "../../parser/parse_content.h"
00038 #include "../presence/event_list.h"
00039 #include "presence_profile.h"
00040
00041
00042 int profile_add_events(void)
00043 {
00044 pres_ev_t event;
00045
00046
00047 memset(&event, 0, sizeof(pres_ev_t));
00048 event.name.s = "ua-profile";
00049 event.name.len = 10;
00050
00051
00052 event.content_type.s = "text/xml";
00053 event.content_type.len = 8;
00054
00055 event.default_expires= 3600;
00056 event.type = PUBL_TYPE;
00057 event.req_auth = 0;
00058 event.evs_publ_handl = 0;
00059
00060 if (pres_add_event(&event) < 0) {
00061 LM_ERR("failed to add event \"ua-profile\"\n");
00062 return -1;
00063 }
00064
00065 return 0;
00066 }