eXosip2_conf(3)

πŸ“¦ version 5.3.0, in epel 9

πŸ’– NAME πŸ’–

eXosip2_conf(3) from libeXosip2 β€” it's the eXosip2 configuration API, bestie. Think of it as the control room where you set up options, transports, DNS cache stuff, TLS stuff, and all the little knobs that make eXosip behave. πŸ’…


✨ SYNOPSIS ✨

okay so here's the whole cast list. no skipping, no vibes-only summary, every single one is important πŸ‘‘

πŸŽ€ Data Structures πŸŽ€

  • struct eXosip_dns_cache
  • struct eXosip_stats
  • struct eXosip_tls_credentials_s
  • struct eXosip_tls_ctx_s

🧚 Macros 🧚

these are literally the option keys, so keep them exactly as they are:

#define EXOSIP_OPT_UDP_KEEP_ALIVE   (EXOSIP_OPT_BASE_OPTION + 1)
#define EXOSIP_OPT_AUTO_MASQUERADE_CONTACT   (EXOSIP_OPT_BASE_OPTION + 2)
#define EXOSIP_OPT_USE_RPORT   (EXOSIP_OPT_BASE_OPTION + 7)
#define EXOSIP_OPT_SET_IPV4_FOR_GATEWAY   (EXOSIP_OPT_BASE_OPTION + 8)
#define EXOSIP_OPT_ADD_DNS_CACHE   (EXOSIP_OPT_BASE_OPTION + 9)
#define EXOSIP_OPT_DELETE_DNS_CACHE   (EXOSIP_OPT_BASE_OPTION + 10)
#define EXOSIP_OPT_SET_IPV6_FOR_GATEWAY   (EXOSIP_OPT_BASE_OPTION + 12)
#define EXOSIP_OPT_ADD_ACCOUNT_INFO   (EXOSIP_OPT_BASE_OPTION + 13)
#define EXOSIP_OPT_DNS_CAPABILITIES   (EXOSIP_OPT_BASE_OPTION + 14)
#define EXOSIP_OPT_SET_DSCP   (EXOSIP_OPT_BASE_OPTION + 15)
#define EXOSIP_OPT_REGISTER_WITH_DATE   (EXOSIP_OPT_BASE_OPTION + 16)
#define EXOSIP_OPT_SET_HEADER_USER_AGENT   (EXOSIP_OPT_BASE_OPTION + 17)
#define EXOSIP_OPT_ENABLE_DNS_CACHE   (EXOSIP_OPT_BASE_OPTION + 18)
#define EXOSIP_OPT_ENABLE_AUTOANSWERBYE   (EXOSIP_OPT_BASE_OPTION + 19)
#define EXOSIP_OPT_ENABLE_IPV6   (EXOSIP_OPT_BASE_OPTION + 20)
#define EXOSIP_OPT_ENABLE_REUSE_TCP_PORT   (EXOSIP_OPT_BASE_OPTION + 21)
#define EXOSIP_OPT_ENABLE_USE_EPHEMERAL_PORT   (EXOSIP_OPT_BASE_OPTION + 22)
#define EXOSIP_OPT_SET_CALLBACK_WAKELOCK   (EXOSIP_OPT_BASE_OPTION + 23)
#define EXOSIP_OPT_ENABLE_OUTBOUND   (EXOSIP_OPT_BASE_OPTION + 24)
#define EXOSIP_OPT_SET_OC_LOCAL_ADDRESS   (EXOSIP_OPT_BASE_OPTION + 25)
#define EXOSIP_OPT_SET_OC_PORT_RANGE   (EXOSIP_OPT_BASE_OPTION + 26)
#define EXOSIP_OPT_REMOVE_PREROUTESET   (EXOSIP_OPT_BASE_OPTION + 27)
#define EXOSIP_OPT_SET_SIP_INSTANCE   (EXOSIP_OPT_BASE_OPTION + 28)
#define EXOSIP_OPT_SET_MAX_MESSAGE_TO_READ   (EXOSIP_OPT_BASE_OPTION + 29)
#define EXOSIP_OPT_SET_MAX_READ_TIMEOUT   (EXOSIP_OPT_BASE_OPTION + 30)
#define EXOSIP_OPT_SET_DEFAULT_CONTACT_DISPLAYNAME   (EXOSIP_OPT_BASE_OPTION + 31)
#define EXOSIP_OPT_SET_SESSIONTIMERS_FORCE     (EXOSIP_OPT_BASE_OPTION + 32)
#define EXOSIP_OPT_FORCE_CONNECTIONREUSE   (EXOSIP_OPT_BASE_OPTION + 33)
#define EXOSIP_OPT_SET_CONTACT_DIALOG_EXTRA_PARAMS   (EXOSIP_OPT_BASE_OPTION + 34)
#define EXOSIP_OPT_SET_TLS_VERIFY_CERTIFICATE   (EXOSIP_OPT_BASE_OPTION + 500)
#define EXOSIP_OPT_SET_TLS_CERTIFICATES_INFO   (EXOSIP_OPT_BASE_OPTION + 501)
#define EXOSIP_OPT_SET_TLS_CLIENT_CERTIFICATE_NAME   (EXOSIP_OPT_BASE_OPTION + 502)
#define EXOSIP_OPT_SET_TLS_SERVER_CERTIFICATE_NAME   (EXOSIP_OPT_BASE_OPTION + 503)
#define EXOSIP_OPT_SET_TSC_SERVER   (EXOSIP_OPT_BASE_OPTION + 1001)
#define EXOSIP_OPT_GET_STATISTICS   (EXOSIP_OPT_BASE_OPTION + 2000)

πŸ¦‹ Enumerations πŸ¦‹

enum eXosip_tls_ctx_error { TLS_OK = 0, TLS_ERR_NO_RAND = -1,
    TLS_ERR_NO_DH_PARAM = -2, TLS_ERR_NO_PW = -3, TLS_ERR_NO_ROOT_CA =
    -4, TLS_ERR_MISSING_AUTH_PART = -5 }

πŸ‘‘ Functions πŸ‘‘

here's the function lineup, signatures kept exactly as they are:

struct eXosip_t * eXosip_malloc (void)
int eXosip_init (struct eXosip_t *excontext)
void eXosip_quit (struct eXosip_t *excontext)
int eXosip_lock (struct eXosip_t *excontext)
int eXosip_unlock (struct eXosip_t *excontext)
int eXosip_execute (struct eXosip_t *excontext)
int eXosip_set_option (struct eXosip_t *excontext, int opt, const void
    *value)
struct osip_naptr * eXosip_dnsutils_naptr (struct eXosip_t *excontext,
    const char *domain, const char *protocol, const char *transport, int
    keep_in_cache)
void eXosip_dnsutils_release (struct osip_naptr *naptr_record)
int eXosip_dnsutils_dns_process (struct osip_naptr *output_record, int
    force)
int eXosip_dnsutils_rotate_srv (struct osip_srv_record *output_record)
int eXosip_listen_addr (struct eXosip_t *excontext, int transport, const
    char *addr, int port, int family, int secure)
int eXosip_reset_transports (struct eXosip_t *excontext)
int eXosip_set_socket (struct eXosip_t *excontext, int transport, int
    socket, int port)
void eXosip_set_user_agent (struct eXosip_t *excontext, const char
    *user_agent)
const char * eXosip_get_version (void)
int eXosip_set_cbsip_message (struct eXosip_t *excontext, CbSipCallback
    cbsipCallback)
void eXosip_masquerade_contact (struct eXosip_t *excontext, const char
    *public_address, int port)
int eXosip_find_free_port (struct eXosip_t *excontext, int free_port,
    int transport)

🌸 Detailed Description 🌸

okay this part is literally just a runway into the macro docs β€” no extra prose from the page here, just straight to the definitions. periodt πŸ’…


πŸ’… Macro Definition Documentation πŸ’…

  • EXOSIP_OPT_UDP_KEEP_ALIVE β€” #define EXOSIP_OPT_UDP_KEEP_ALIVE (EXOSIP_OPT_BASE_OPTION + 1) β€” int *: interval for keep alive packets (UDP, TCP, TLS, DTLS)
  • EXOSIP_OPT_AUTO_MASQUERADE_CONTACT β€” #define EXOSIP_OPT_AUTO_MASQUERADE_CONTACT (EXOSIP_OPT_BASE_OPTION + 2) β€” int *: specific re-usage of 'rport'
  • EXOSIP_OPT_USE_RPORT β€” #define EXOSIP_OPT_USE_RPORT (EXOSIP_OPT_BASE_OPTION + 7) β€” int *: enable or disable rport in via
  • EXOSIP_OPT_SET_IPV4_FOR_GATEWAY β€” #define EXOSIP_OPT_SET_IPV4_FOR_GATEWAY (EXOSIP_OPT_BASE_OPTION + 8) β€” char *: usually, this is the proxy address
  • EXOSIP_OPT_ADD_DNS_CACHE β€” #define EXOSIP_OPT_ADD_DNS_CACHE (EXOSIP_OPT_BASE_OPTION + 9) β€” struct eXosip_dns_cache *: force some cache entry to avoid DNS
  • EXOSIP_OPT_DELETE_DNS_CACHE β€” #define EXOSIP_OPT_DELETE_DNS_CACHE (EXOSIP_OPT_BASE_OPTION + 10) β€” struct eXosip_dns_cache *: force removal of some cache entry to avoid DNS
  • EXOSIP_OPT_SET_IPV6_FOR_GATEWAY β€” #define EXOSIP_OPT_SET_IPV6_FOR_GATEWAY (EXOSIP_OPT_BASE_OPTION + 12) β€” char *: usually, this is the proxy address
  • EXOSIP_OPT_ADD_ACCOUNT_INFO β€” #define EXOSIP_OPT_ADD_ACCOUNT_INFO (EXOSIP_OPT_BASE_OPTION + 13) β€” struct eXosip_account_info *: internal stuff
  • EXOSIP_OPT_DNS_CAPABILITIES β€” #define EXOSIP_OPT_DNS_CAPABILITIES (EXOSIP_OPT_BASE_OPTION + 14) β€” int *: 0 to disable, 2 (default) to use NAPTR/SRV record
  • EXOSIP_OPT_SET_DSCP β€” #define EXOSIP_OPT_SET_DSCP (EXOSIP_OPT_BASE_OPTION + 15) β€” int *: set a dscp value for SIP socket
  • EXOSIP_OPT_REGISTER_WITH_DATE β€” #define EXOSIP_OPT_REGISTER_WITH_DATE (EXOSIP_OPT_BASE_OPTION + 16) β€” int *: enable usage of Date header in REGISTER
  • EXOSIP_OPT_SET_HEADER_USER_AGENT β€” #define EXOSIP_OPT_SET_HEADER_USER_AGENT (EXOSIP_OPT_BASE_OPTION + 17) β€” char *: set the User-Agent header
  • EXOSIP_OPT_ENABLE_DNS_CACHE β€” #define EXOSIP_OPT_ENABLE_DNS_CACHE (EXOSIP_OPT_BASE_OPTION + 18) β€” int *: 0 to disable use of cache
  • EXOSIP_OPT_ENABLE_AUTOANSWERBYE β€” #define EXOSIP_OPT_ENABLE_AUTOANSWERBYE (EXOSIP_OPT_BASE_OPTION + 19) β€” int *: 0 to disable automatic answer of BYE
  • EXOSIP_OPT_ENABLE_IPV6 β€” #define EXOSIP_OPT_ENABLE_IPV6 (EXOSIP_OPT_BASE_OPTION + 20) β€” int *: 0 to disable, 1 to use only IPv6, 2 to use choose the best -this is a per-eXosip_t parameter for using IPv6 DNS request
  • EXOSIP_OPT_ENABLE_REUSE_TCP_PORT β€” #define EXOSIP_OPT_ENABLE_REUSE_TCP_PORT (EXOSIP_OPT_BASE_OPTION + 21) β€” int *: 0 to disable, 1 to enable reusing local tcp port for outgoing tcp connection
  • EXOSIP_OPT_ENABLE_USE_EPHEMERAL_PORT β€” #define EXOSIP_OPT_ENABLE_USE_EPHEMERAL_PORT (EXOSIP_OPT_BASE_OPTION + 22) β€” int *: 0 to disable, 1 to enable usage of emphemeral tcp port in Contact headers instead of local listening port for TCP/TLS
  • EXOSIP_OPT_SET_CALLBACK_WAKELOCK β€” #define EXOSIP_OPT_SET_CALLBACK_WAKELOCK (EXOSIP_OPT_BASE_OPTION + 23) β€” CbSipWakeLock *: set a callback to be called upon start/end of transaction
  • EXOSIP_OPT_ENABLE_OUTBOUND β€” #define EXOSIP_OPT_ENABLE_OUTBOUND (EXOSIP_OPT_BASE_OPTION + 24) β€” int *: 0 to disable, 1 to enable usage of ob parmeter (rfc 5626) in dialog's contact headers
  • EXOSIP_OPT_SET_OC_LOCAL_ADDRESS β€” #define EXOSIP_OPT_SET_OC_LOCAL_ADDRESS (EXOSIP_OPT_BASE_OPTION + 25) β€” char *: set the ip address to bind for outbound connection
  • EXOSIP_OPT_SET_OC_PORT_RANGE β€” #define EXOSIP_OPT_SET_OC_PORT_RANGE (EXOSIP_OPT_BASE_OPTION + 26) β€” int[2] *: set the port range (min, max) to bind for outbound connection (if EXOSIP_OPT_SET_OC_LOCAL_ADDRESS is not used, this options apply to TCP/TLS only)
  • EXOSIP_OPT_REMOVE_PREROUTESET β€” #define EXOSIP_OPT_REMOVE_PREROUTESET (EXOSIP_OPT_BASE_OPTION + 27) β€” int *: 0: keep pre-route set in initial INVITE/SUBSCRIBE/REFER, 1 (default): remove pre-route set
  • EXOSIP_OPT_SET_SIP_INSTANCE β€” #define EXOSIP_OPT_SET_SIP_INSTANCE (EXOSIP_OPT_BASE_OPTION + 28) β€” char *: define +sip.instance parameter in Contact headers (example: urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6)
  • EXOSIP_OPT_SET_MAX_MESSAGE_TO_READ β€” #define EXOSIP_OPT_SET_MAX_MESSAGE_TO_READ (EXOSIP_OPT_BASE_OPTION + 29) β€” int: set the number of message to read at once for each network processing (high load traffic use-case: DO NOT USE FOR COMMON USAGE)
🚨 bestie, that DO NOT USE FOR COMMON USAGE is not a vibe suggestion. high load traffic use-case only, fr fr.
  • EXOSIP_OPT_SET_MAX_READ_TIMEOUT β€” #define EXOSIP_OPT_SET_MAX_READ_TIMEOUT (EXOSIP_OPT_BASE_OPTION + 30) β€” long int: set the period in nano seconds during we read for sip message. (high load traffic use-case: DO NOT USE FOR COMMON USAGE)
🚨 same warning, same energy: high load traffic use-case, DO NOT USE FOR COMMON USAGE.
  • EXOSIP_OPT_SET_DEFAULT_CONTACT_DISPLAYNAME β€” #define EXOSIP_OPT_SET_DEFAULT_CONTACT_DISPLAYNAME (EXOSIP_OPT_BASE_OPTION + 31) β€” char *: define a display name to be added in Contact headers (example: 'john Doe')
  • EXOSIP_OPT_SET_SESSIONTIMERS_FORCE β€” #define EXOSIP_OPT_SET_SESSIONTIMERS_FORCE (EXOSIP_OPT_BASE_OPTION + 32) β€” int *: 0 (default): activate 'session timers' if supported on both side, 1: if remote side (UAS) do not indicate support for 'session timers', activate feature on UAC (local) side
  • EXOSIP_OPT_FORCE_CONNECTIONREUSE β€” #define EXOSIP_OPT_FORCE_CONNECTIONREUSE (EXOSIP_OPT_BASE_OPTION + 33) β€” int *: 0 to disable, 1 to force reusing established connection for ACK and dialog message
  • EXOSIP_OPT_SET_CONTACT_DIALOG_EXTRA_PARAMS β€” #define EXOSIP_OPT_SET_CONTACT_DIALOG_EXTRA_PARAMS (EXOSIP_OPT_BASE_OPTION + 34) β€” char *: define extra parameters in Contact headers (example: 'audio;video;xxx=yyy' parameter must not contains initial ';')
  • EXOSIP_OPT_SET_TLS_VERIFY_CERTIFICATE β€” #define EXOSIP_OPT_SET_TLS_VERIFY_CERTIFICATE (EXOSIP_OPT_BASE_OPTION + 500) β€” int *: enable verification of certificate for TLS connection
  • EXOSIP_OPT_SET_TLS_CERTIFICATES_INFO β€” #define EXOSIP_OPT_SET_TLS_CERTIFICATES_INFO (EXOSIP_OPT_BASE_OPTION + 501) β€” eXosip_tls_ctx_t *: client and/or server certificate/ca-root/key info
  • EXOSIP_OPT_SET_TLS_CLIENT_CERTIFICATE_NAME β€” #define EXOSIP_OPT_SET_TLS_CLIENT_CERTIFICATE_NAME (EXOSIP_OPT_BASE_OPTION + 502) β€” char*: user can choose a specific certifcate present in Windows Certificate Store
  • EXOSIP_OPT_SET_TLS_SERVER_CERTIFICATE_NAME β€” #define EXOSIP_OPT_SET_TLS_SERVER_CERTIFICATE_NAME (EXOSIP_OPT_BASE_OPTION + 503) β€” char*: user can choose a specific certifcate present in Windows Certificate Store
  • EXOSIP_OPT_SET_TSC_SERVER β€” #define EXOSIP_OPT_SET_TSC_SERVER (EXOSIP_OPT_BASE_OPTION + 1001) β€” deprecated
πŸ’€ deprecated, bestie. not the main character anymore.
  • EXOSIP_OPT_GET_STATISTICS β€” #define EXOSIP_OPT_GET_STATISTICS (EXOSIP_OPT_BASE_OPTION + 2000) β€” struct eXosip_stats*: retreive numerous statistics about transactions, registrations, calls, publications and subscriptions...

🌈 Enumeration Type Documentation 🌈

🫢 enum eXosip_tls_ctx_error

An enumeration which describes the error which can occur while setting the eXosip_tls_ctx

enum eXosip_tls_ctx_error { TLS_OK = 0, TLS_ERR_NO_RAND = -1,
    TLS_ERR_NO_DH_PARAM = -2, TLS_ERR_NO_PW = -3, TLS_ERR_NO_ROOT_CA =
    -4, TLS_ERR_MISSING_AUTH_PART = -5 }

⭐ 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

✨ Function Documentation ✨

okay bestie, this is the function buffet β€” every single one, with all the params and caveats intact. no skips, no summaries, we ate. πŸ’…


🧸 struct eXosip_t* eXosip_malloc (void)

Allocates an eXosip context. It's giving β€œnew instance energy.”

Returns: a new allocated eXosip_t instance. 🫢


🌸 int eXosip_init (struct eXosip_t * excontext)

Initiate the eXtented oSIP library (yes, that spelling β€” we're keeping it, it's iconic). ✨

Parameters:

  • excontext β€” the eXosip_t instance.

πŸ¦‹ void eXosip_quit (struct eXosip_t * excontext)

Release the resources used by the eXtented oSIP library. Cleanup era, no cap. 🧹

Parameters:

  • excontext β€” the eXosip_t instance.

πŸ”’ int eXosip_lock (struct eXosip_t * excontext)

Lock the eXtented oSIP library. Grab that lock, bestie. πŸ”

Parameters:

  • excontext β€” the eXosip_t instance.

πŸ”“ int eXosip_unlock (struct eXosip_t * excontext)

UnLock the eXtented oSIP library. Release the lock, we're free. πŸ•ŠοΈ

Parameters:

  • excontext β€” the eXosip_t instance.

⚑ int eXosip_execute (struct eXosip_t * excontext)

Process eXosip events. The manpage is very loud about this one: it's for non-threaded mode ONLY. Do not come for me if you ignore that. 😭

Parameters:

  • excontext β€” the eXosip_t instance.

πŸŽ€ int eXosip_set_option (struct eXosip_t * excontext, int opt, const void * value)

Set eXosip options. Peep eXosip_option for the available options menu. πŸ“

Parameters:

  • excontext β€” the eXosip_t instance.
  • opt β€” option to configure.
  • value β€” value for options.

🧚 struct osip_naptr* eXosip_dnsutils_naptr (struct eXosip_t * excontext, const char * domain, const char * protocol, const char * transport, int keep_in_cache)

Start and return an osip_naptr context. Heads up: DNS results might not yet be available, so don't expect instant answers. ⏳

If you provide a FQDN, a NAPTR query will be done on it. For example: 'antisip.com'.

If you wish to do a ENUM query, you need to specify both the domain to query and the AUS (ie, the number dialed). You'll use a '!' separator between them. For example, to query '+123456789' on 'e164.org', please use: 'e164.org!+123456789'.

Parameters:

  • excontext β€” the eXosip_t instance.
  • domain β€” domain name for NAPTR record OR ENUM query (such as e164.org!+123456789).
  • protocol β€” protocol to use ('SIP').
  • transport β€” transport to use ('UDP').
  • keep_in_cache β€” keep result in cache if >0.

πŸ’€ void eXosip_dnsutils_release (struct osip_naptr * naptr_record)

For every eXosip_dnsutils_naptr query you make, you must call eXosip_dnsutils_release to release the memory. This is not optional, bestie. Clean up after yourself. 🧼

Parameters:

  • naptr_record β€” the naptr structure to release.

🌈 int eXosip_dnsutils_dns_process (struct osip_naptr * output_record, int force)

Continue to process asynchronous DNS request (if implemented). Yes, β€œif implemented” β€” read it and weep. 😭

Parameters:

  • output_record β€” result structure.
  • force β€” force waiting for final answer if >0.

πŸ”„ int eXosip_dnsutils_rotate_srv (struct osip_srv_record * output_record)

Rotate first SRV entry to last SRV entry. Spin that list. πŸŒ€

Parameters:

  • output_record β€” result structure.

🎧 int eXosip_listen_addr (struct eXosip_t * excontext, int transport, const char * addr, int port, int family, int secure)

Listen on a specified socket. Socket era. πŸ”Œ

Parameters:

  • excontext β€” the 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).

🧹 int eXosip_reset_transports (struct eXosip_t * excontext)

Reset transport sockets. Fresh start, reset the vibes. ✨

Parameters:

  • excontext β€” the eXosip_t instance.

πŸͺ„ int eXosip_set_socket (struct eXosip_t * excontext, int transport, int socket, int port)

Listen on a specified socket. Yes, another one β€” the manpage said it twice, so we say it twice. πŸ’…

Parameters:

  • excontext β€” the 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.

🫧 void eXosip_set_user_agent (struct eXosip_t * excontext, const char * user_agent)

Set the SIP User-Agent: header string. Make it cute, make it you. πŸŽ€

Parameters:

  • excontext β€” the eXosip_t instance.
  • user_agent β€” the User-Agent header to insert in messages.

⭐ const char* eXosip_get_version (void)

Get the eXosip version as a string. Slay. πŸ’–


πŸ“ž int eXosip_set_cbsip_message (struct eXosip_t * excontext, CbSipCallback cbsipCallback)

Set a callback to get sent and received SIP messages. Callback bestie, we love you. 🫢

Parameters:

  • excontext β€” the eXosip_t instance.
  • cbsipCallback β€” the callback to retreive messages.

πŸͺž void eXosip_masquerade_contact (struct eXosip_t * excontext, const char * public_address, int port)

This method is used to replace contact address with the public address of your NAT. The ip address should be retrieved manually (fixed IP address) or with STUN. This address will only be used when the remote correspondant appears to be on an DIFFERENT LAN. Network drama, honestly. 🌐

Parameters:

  • excontext β€” the 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). Auto-pilot mode: on. ✨


πŸ” int eXosip_find_free_port (struct eXosip_t * excontext, int free_port, int transport)

This method is used to find out a free IPPROTO_UDP or IPPROTO_TCP port. Port hunting, but make it tech. πŸ•΅οΈβ€β™€οΈ

Parameters:

  • excontext β€” the eXosip_t instance.
  • free_port β€” initial port for search.
  • transport β€” IPPROTO_UDP or IPPROTO_TCP protocol.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libeXosip2 from the source code.


πŸ’– okay that's the whole function list, bestie! This page is from Version 5.3.0, dated Thu May 18 2023, and it lives at eXosip2_conf(3). Periodt. 🫢✨🌸

πŸ“¦ where this page comes from