---
name: "eXosip2_publish"
section: "3"
platform: "linux"
package: "libexosip2-dev"
version: "4.1.0-2.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/eXosip2_publish"
---

# eXosip2\_publish(3)

eXosip2 Publication Management

## NAME

eXosip2\_publish - 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

### 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:**

*excontext* eXosip\_t instance. \
 *message* returned published request. \
 *to* SIP url for callee. \
 *from* SIP url for caller. \
 *route* Route used for publication. \
 *event* SIP Event header. \
 *expires* SIP Expires header. \
 *ctype* Content-Type of body. \
 *body* body for publication.

### int eXosip\_publish (struct eXosip\_t \* excontext, osip\_message\_t \* message, const char \* to)

Send an Publication Message (PUBLISH request).

**Parameters:**

*excontext* eXosip\_t instance. \
 *message* is a ready to be sent publish message . \
 *to* the aor of the publish request

## Author

Generated automatically by Doxygen for libeXosip2 from the source code.
