Exosip2 configuration api -
int *: interval for keep alive packets (UDP, TCP, TLS, DTLS)
int *: specific re-usage of 'rport'
int *: enable or disable rport in via
char *: usually, this is the proxy address
struct eXosip_dns_cache *: force some cache entry to avoid DNS
struct eXosip_dns_cache *: force removal of some cache entry to avoid DNS
char *: usually, this is the proxy address
struct eXosip_account_info *: internal stuff
int *: 0 to disable, 2 to use NAPTR/SRV record
int *: set a dscp value for SIP socket
int *: enable usage of Date header in REGISTER
char *: set the User-Agent header
int *: 0 to disable use of cache
int *: 0 to disable automatic answer of BYE
int *: 0 to disable -this is a per-eXosip_t parameter for using IPv6 DNS request
int *: enable verification of certificate for TLS connection
eXosip_tls_ctx_t *: client and/or server certificate/ca-root/key info
char*: user can choose a specific certifcate present in Windows Certificate Store
char*: user can choose a specific certifcate present in Windows Certificate Store
void*: set the tsc tunnel handle
An enumeration which describes the error which can occur while setting the eXosip_tls_ctx
Enumerator
TLS_OK
yippieh, everything is fine :)
TLS_ERR_NO_RAND
no absolute path to the random file was specified
TLS_ERR_NO_DH_PARAM
no absolute path to the diifie hellman file was specified
TLS_ERR_NO_PW
no password was specified
TLS_ERR_NO_ROOT_CA
no absolute path to the rootCA file was specified
TLS_ERR_MISSING_AUTH_PART
something is missing: the private key or the certificate
Allocate an eXosip context.
Returns:
a new allocated eXosip_t instance.
Initiate the eXtented oSIP library.
Parameters:
excontext eXosip_t instance.
Release resource used by the eXtented oSIP library.
Parameters:
excontext eXosip_t instance.
Lock the eXtented oSIP library.
Parameters:
excontext eXosip_t instance.
UnLock the eXtented oSIP library.
Parameters:
excontext eXosip_t instance.
Process (non-threaded mode ONLY) eXosip events.
Parameters:
excontext eXosip_t instance.
Set eXosip options. See eXosip_option for available options.
Parameters:
excontext eXosip_t instance.
opt option to configure.
value value for options.
Start and return osip_naptr context. Note that DNS results might not yet be available.
Parameters:
excontext eXosip_t instance.
domain domain name for NAPTR record
protocol protocol to use ('SIP')
transport transport to use ('UDP')
keep_in_cache keep result in cache if >0
Continue to process asynchronous DNS request (if implemented).
Parameters:
output_record result structure.
force force waiting for final answer if >0
Rotate first SRV entry to last SRV entry.
Parameters:
output_record result structure.
Listen on a specified socket.
Parameters:
excontext eXosip_t instance.
transport IPPROTO_UDP for udp. (soon to come: TCP/TLS?)
addr the address to bind (NULL for all interface)
port the listening port. (0 for random port)
family the IP family (AF_INET or AF_INET6).
secure 0 for UDP or TCP, 1 for TLS (with TCP).
Reset transport sockets.
Parameters:
excontext eXosip_t instance.
Listen on a specified socket.
Parameters:
excontext eXosip_t instance.
transport IPPROTO_UDP for udp. (soon to come: TCP/TLS?)
socket socket to use for listening to UDP sip messages.
port the listening port for masquerading.
Set the SIP User-Agent: header string.
Parameters:
excontext eXosip_t instance.
user_agent the User-Agent header to insert in messages.
Get the eXosip version as a sring
Set a callback to get sent and received SIP messages.
Parameters:
excontext eXosip_t instance.
cbsipCallback the callback to retreive messages.
Use IPv6 instead of IPv4. (global setting)
DEPRECATED: you MUST use EXOSIP_OPT_ENABLE_IPV6 to configure each eXosip_t independently.
THIS CODE DOES NOTHING, REPLACE WITH
eXosip_set_option(excontext, EXOSIP_OPT_ENABLE_IPV6, &val);
Parameters:
ipv6_enable This parameter should be set to 1 to enable IPv6 mode.
This method is used to replace contact address with the public address of your NAT. The ip address should be retreived manually (fixed IP address) or with STUN. This address will only be used when the remote correspondant appears to be on an DIFFERENT LAN.
Parameters:
excontext eXosip_t instance.
public_address the ip address.
port the port for masquerading.
If set to NULL, then the local ip address will be guessed automatically (returns to default mode).
This method is used to find out an free IPPROTO_UDP or IPPROTO_TCP port.
Parameters:
excontext eXosip_t instance.
free_port initial port for search.
transport IPPROTO_UDP or IPPROTO_TCP protocol.
Generated automatically by Doxygen for libeXosip2 from the source code.