libamsip
5.2.1
|
Functions | |
int | am_network_guess_ip (int family, char *address, int size) |
int | am_network_masquerade (const char *ip, int port) |
int | am_network_start (const char *transport, int port) |
int | am_network_connection_tests (struct stun_test *stuntest, char *stun_server, int srcport) |
int | am_network_add_local_candidates (struct SdpCandidate *_candidates, int srcport) |
int | am_network_add_stun_candidates (struct SdpCandidate *candidates, struct SdpCandidate *localcandidates, char *unusedparameter, int srcport) |
int | am_network_add_turn_candidates (struct SdpCandidate *candidates, char *unusedparameter, int srcport) |
int | am_network_add_relay_candidates (struct SdpCandidate *candidates, char *relay_server, int srcport) |
char * | am_network_test_nat (const char *stun_server, int port, const char *proxy) |
char * | am_network_get_nat_info (const char *stun_server, int srcport) |
int | am_network_get_nat (char *stun_server, int srcport) |
int | am_network_get_stun_socket (const char *stun_server, int srcport, char *firewall, int *port) |
int am_network_guess_ip | ( | int | family, |
char * | address, | ||
int | size | ||
) |
Find default address of interface to reach the defined gateway.
family | AF_INET or AF_INET6 |
address | a string containing the local IP address. |
size | The size of the string |
int am_network_masquerade | ( | const char * | ip, |
int | port | ||
) |
Configure amsip to do masquerading on SIP Contact address. at run time.
PLEASE DO NOT USE UNLESS YOU REALLY UNDERSTAND THIS OPTION! THIS OPTIONS CANNOT BE USED IF YOU CONFIGURED THE STACK WITH STUN or ICE SUPPORT.
ip | IP to appear in Contact. |
port | port to appear in Contact. |
int am_network_start | ( | const char * | transport, |
int | port | ||
) |
Configure amsip to listen on a specific transport layer.
transport | Transport Protocol to use ("UDP", "TCP", "TLS") |
port | Local port to use for socket. (0 for random port) |
int am_network_connection_tests | ( | struct stun_test * | stuntest, |
char * | stun_server, | ||
int | srcport | ||
) |
Test NAT type.
stuntest | element to receive all stun test. |
stun_server | Stun server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
int am_network_add_local_candidates | ( | struct SdpCandidate * | _candidates, |
int | srcport | ||
) |
Add local candidates.
_candidates | Table for MAX_NUMBER_OF_CANDIDATES local candidates. |
srcport | Local port to use for socket. (0 for random port) |
int am_network_add_stun_candidates | ( | struct SdpCandidate * | candidates, |
struct SdpCandidate * | localcandidates, | ||
char * | unusedparameter, | ||
int | srcport | ||
) |
Add Stun candidate.
candidates | candidates to receive all stun candidates. |
localcandidates | candidates with all local candidates. (used to remove duplicates) |
unusedparameter | Stun server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
int am_network_add_turn_candidates | ( | struct SdpCandidate * | candidates, |
char * | unusedparameter, | ||
int | srcport | ||
) |
Add TURN candidate.
candidates | candidates to receive all turn candidates. |
unusedparameter | TURN server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
int am_network_add_relay_candidates | ( | struct SdpCandidate * | candidates, |
char * | relay_server, | ||
int | srcport | ||
) |
Add RELAY candidate.
candidates | candidates to receive all turn candidates. |
relay_server | STUN server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
char* am_network_test_nat | ( | const char * | stun_server, |
int | port, | ||
const char * | proxy | ||
) |
Test NAT type.
stun_server | Stun server to use for NAT traversal solution. |
port | Local port to use for socket. (0 for random port) |
proxy | SIP Proxy Address (used to determine which interface to test) |
char* am_network_get_nat_info | ( | const char * | stun_server, |
int | srcport | ||
) |
Return text information on NAT type.
stun_server | Stun server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
int am_network_get_nat | ( | char * | stun_server, |
int | srcport | ||
) |
Return binary information on NAT type.
stun_server | Stun server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
int am_network_get_stun_socket | ( | const char * | stun_server, |
int | srcport, | ||
char * | firewall, | ||
int * | port | ||
) |
Return IP/port and socket for a STUN server test.
stun_server | Stun server to use for NAT traversal solution. |
srcport | Local port to use for socket. (0 for random port) |
firewall | OUT: firewall IP detected. |
port | OUT: firewall port detected. |