libeXosip2  4.0.0
Functions
eXosip2 Publication Management
SIP messages and call control API

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

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.
int eXosip_publish ( struct eXosip_t *  excontext,
osip_message_t *  message,
const char *  to 
)

Send an Publication Message (PUBLISH request).

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