SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
eXosip2 network API

Functions

int eXosip_transport_set (osip_message_t *msg, const char *transport)
 Modify the transport protocol used to send SIP message. More...
 
int eXosip_guess_localip (struct eXosip_t *excontext, int family, char *address, int size)
 Find the current localip (interface with default route). More...
 

Detailed Description

Function Documentation

int eXosip_guess_localip ( struct eXosip_t *  excontext,
int  family,
char *  address,
int  size 
)

#include <eX_setup.h>

Find the current localip (interface with default route).

Parameters
excontexteXosip_t instance.
familyAF_INET or AF_INET6
addressa string containing the local IP address.
sizeThe size of the string
int eXosip_transport_set ( osip_message_t msg,
const char *  transport 
)

#include <eX_setup.h>

Modify the transport protocol used to send SIP message.

Parameters
msgThe SIP message to modify
transporttransport protocol to use ("UDP", "TCP" or "TLS")