allow adding Contacts in publish

This commit is contained in:
Simon Morlat 2013-09-10 21:55:13 +02:00
parent 3a69a548df
commit 05ee4c4a31

View file

@ -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;
}