---
name: "eXosip2_options"
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_options"
---

# eXosip2\_options(3)

eXosip2 OPTIONS and UA capabilities Management

## NAME

eXosip2\_options - eXosip2 OPTIONS and UA capabilities Management

### Functions

int **eXosip\_options\_build\_request** (struct eXosip\_t \*excontext, osip\_message\_t \*\*options, const char \*to, const char \*from, const char \*route)\
 int **eXosip\_options\_send\_request** (struct eXosip\_t \*excontext, osip\_message\_t \*options)\
 int **eXosip\_options\_build\_answer** (struct eXosip\_t \*excontext, int tid, int status, osip\_message\_t \*\*answer)\
 int **eXosip\_options\_send\_answer** (struct eXosip\_t \*excontext, int tid, int status, osip\_message\_t \*answer)\

## Detailed Description

## Function Documentation

### int eXosip\_options\_build\_request (struct eXosip\_t \* excontext, osip\_message\_t \*\* options, const char \* to, const char \* from, const char \* route)

Build a default OPTIONS message.

**Parameters:**

*excontext* eXosip\_t instance. \
 *options* Pointer for the SIP request to build. \
 *to* SIP url for callee. \
 *from* SIP url for caller. \
 *route* Route header for INVITE. (optional)

### int eXosip\_options\_send\_request (struct eXosip\_t \* excontext, osip\_message\_t \* options)

Send an OPTIONS request.

**Parameters:**

*excontext* eXosip\_t instance. \
 *options* SIP OPTIONS message to send.

### int eXosip\_options\_build\_answer (struct eXosip\_t \* excontext, int tid, int status, osip\_message\_t \*\* answer)

Build answer for an OPTIONS request.

**Parameters:**

*excontext* eXosip\_t instance. \
 *tid* id of OPTIONS transaction. \
 *status* status for SIP answer to build. \
 *answer* The SIP answer to build.

### int eXosip\_options\_send\_answer (struct eXosip\_t \* excontext, int tid, int status, osip\_message\_t \* answer)

Send answer for an OPTIONS request.

**Parameters:**

*excontext* eXosip\_t instance. \
 *tid* id of OPTIONS transaction. \
 *status* status for SIP answer to send. \
 *answer* The SIP answer to send. (default will be sent if NULL)

## Author

Generated automatically by Doxygen for libeXosip2 from the source code.
