forked from mirrors/linphone-iphone
allow adding Contacts in publish
This commit is contained in:
parent
3a69a548df
commit
05ee4c4a31
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue