libeXosip2  5.3.0
Functions
eXosip2 Publication Management

Functions

int eXosip_build_publish (struct eXosip_t *excontext, osip_message_t **message, const char *to, const char *from, const char *route, const char *event, const char *expires, const char *ctype, const char *body)
 
int eXosip_publish (struct eXosip_t *excontext, osip_message_t *message, const char *to)
 

Detailed Description

Function Documentation

◆ eXosip_build_publish()

int eXosip_build_publish ( struct eXosip_t *  excontext,
osip_message_t **  message,
const char *  to,
const char *  from,
const char *  route,
const char *  event,
const char *  expires,
const char *  ctype,
const char *  body 
)

build publication for a user. (PUBLISH request)

Parameters
excontexteXosip_t instance.
messagereturned published request.
toSIP url for callee.
fromSIP url for caller.
routeRoute used for publication.
eventSIP Event header.
expiresSIP Expires header.
ctypeContent-Type of body.
bodybody for publication.

◆ eXosip_publish()

int eXosip_publish ( struct eXosip_t *  excontext,
osip_message_t *  message,
const char *  to 
)

Send an Publication Message (PUBLISH request).

Parameters
excontexteXosip_t instance.
messagea ready to be sent publish message .
tothe aor of the publish request