THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#82 - presence, add_event(), missing handler on subscribe
User who did this - nikita kozlov (klnikita)
----------
Hello, I'm adding a sample code to describe the issue.
<code>
int my_pres_new_events(void)
{
pres_ev_t event;
LM_INFO("adding my new event\n");
memset(&event, 0, sizeof(pres_ev_t));
event.name.s = "test-event";
event.name.len = 10;
event.content_type.s = "application/test-event";
event.content_type.len = 22;
event.default_expires= 3600;
event.type = SUBS_TYPE;
/*
* BUG : my event callback addr is not duplicated in the presence event list. (see the
patch in the ticket)
* So my callback isn't called on new subscribes.
*/
event.evs_subs_handl = addressbook_subscribe_hdlr;
if (pres_add_event(&event) < 0) {
LM_ERR("failed to add my new event\n");
return -1;
}
return 0;
}
</code>
I will be happy to have any feedback on this issue, especially if this callback is
deprecated.
Thanks.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=82#comment112
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.