diff --git a/coreapi/event.c b/coreapi/event.c index 0b54f607a..557560011 100644 --- a/coreapi/event.c +++ b/coreapi/event.c @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "private.h" - +#include "lpconfig.h" struct _LinphoneEvent{ LinphoneSubscriptionDir dir; @@ -156,7 +156,7 @@ int linphone_event_notify(LinphoneEvent *lev, const LinphoneContent *body){ LinphoneEvent *linphone_core_publish(LinphoneCore *lc, const LinphoneAddress *resource, const char *event, int expires, const LinphoneContent *body){ SalBody salbody; LinphoneEvent *lev=linphone_event_new(lc,LinphoneSubscriptionInvalidDir, event); - linphone_configure_op(lc,lev->op,resource,NULL,FALSE); + linphone_configure_op(lc,lev->op,resource,NULL,lp_config_get_int(lc->config,"sip","publish_msg_with_contact",0)); sal_publish(lev->op,NULL,NULL,event,expires,sal_body_from_content(&salbody,body)); return lev; }