sipxportlib  Version 3.3
Classes | Macros | Enumerations
OsNatAgentTask.h File Reference
#include "os/IStunSocket.h"
#include "os/OsNatKeepaliveListener.h"
#include "os/OsServerTask.h"
#include "os/OsRpcMsg.h"
#include "os/OsEventMsg.h"
#include "utl/UtlHashMap.h"
#include "os/TurnMessage.h"
#include "os/StunMessage.h"
#include "os/NatMsg.h"
Include dependency graph for OsNatAgentTask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NAT_AGENT_CONTEXT
 
struct  NAT_AGENT_EXTERNAL_CONTEXT
 
class  OsNatAgentTask
 

Macros

#define SYNC_MSG_TYPE   (OsMsg::USER_START + 2)
 
#define NAT_INITIAL_ABORT_COUNT   4 /** Abort after N times (first attempt) */
 
#define NAT_PROBE_ABORT_COUNT   3 /** Abort STUN probes after N attempts */
 
#define NAT_RESEND_ABORT_COUNT   75 /** Fail after N times (refreshes) */
 
#define NAT_RESPONSE_TIMEOUT_MS   300 /** How long to wait for each attempt */
 
#define NAT_FIND_BINDING_POOL_MS   50 /** poll delay for contact searchs */
 
#define NAT_BINDING_EXPIRATION_SECS   60 /** expiration for bindings if new renewed */
 
#define MAX_OLD_TRANSACTIONS   3
 

Enumerations

enum  NAT_AGENT_BINDING_TYPE {
  STUN_DISCOVERY, STUN_PROBE, TURN_ALLOCATION, CRLF_KEEPALIVE,
  STUN_KEEPALIVE
}
 
enum  NAT_AGENT_STATUS {
  SUCCESS, SENDING, SENDING_ERROR, RESENDING,
  RESENDING_ERROR, FAILED
}
 

Macro Definition Documentation

#define SYNC_MSG_TYPE   (OsMsg::USER_START + 2)

Synchronized Msg type/id

#define NAT_INITIAL_ABORT_COUNT   4 /** Abort after N times (first attempt) */
#define NAT_PROBE_ABORT_COUNT   3 /** Abort STUN probes after N attempts */
#define NAT_RESEND_ABORT_COUNT   75 /** Fail after N times (refreshes) */
#define NAT_RESPONSE_TIMEOUT_MS   300 /** How long to wait for each attempt */
#define NAT_FIND_BINDING_POOL_MS   50 /** poll delay for contact searchs */
#define NAT_BINDING_EXPIRATION_SECS   60 /** expiration for bindings if new renewed */
#define MAX_OLD_TRANSACTIONS   3

Enumeration Type Documentation

Enumerator
STUN_DISCOVERY 
STUN_PROBE 
TURN_ALLOCATION 
CRLF_KEEPALIVE 
STUN_KEEPALIVE 
Enumerator
SUCCESS 
SENDING 
SENDING_ERROR 
RESENDING 
RESENDING_ERROR 
FAILED