I added syslog message to handle_publish():
/* search event in the list */ event= search_event((event_t*)msg->event->parsed); if(event== NULL) { goto unsupported_event; } LM_INFO("***** event name/content_type/type '%.*s'/'%.*s'/%d\n", event->name.len, event->name.s, event->content_type.len, event->content_type.s, event->type);
and got:
Sep 16 21:43:09 lohi /usr/bin/pres-serv[29250]: INFO: presence [publish.c:305]: handle_publish(): ***** event name/content_type/type 'message-summary'/'application/simple-message-summary'/2
Otherwise OK, but type does not match event name:
enum event_type { EVENT_OTHER = 0, EVENT_PRESENCE, EVENT_PRESENCE_WINFO, EVENT_SIP_PROFILE, EVENT_XCAP_CHANGE, EVENT_DIALOG, EVENT_MESSAGE_SUMMARY, EVENT_UA_PROFILE };
-- Juha