BOOL noFastStart;
BOOL noH245Tunnelling;
BOOL noSilenceSuppression;
-WORD jitter;
/**
* We assume that only one endPoint should exist.
if (noH245Tunnelling)
options |= H323Connection::H245TunnelingOptionDisable;
- return new MyH323Connection(*this, callReference, options, jitter);
+ return new MyH323Connection(*this, callReference, options);
}
/* MyH323Connection */
MyH323Connection::MyH323Connection(MyH323EndPoint & ep,
unsigned callReference,
- unsigned options,
- WORD jitter): H323Connection(ep,
- callReference,
- options)
+ unsigned options)
+ : H323Connection(ep,
+ callReference,
+ options)
{
remoteIpAddress = 0; // IP Address of remote endpoint
remotePort = 0; // remote endpoint Data port (control is dataPort+1)
}
/** Start the H.323 listener */
-int h323_start_listener(int listenPort, struct sockaddr_in bindaddr, int _jitter)
+int h323_start_listener(int listenPort, struct sockaddr_in bindaddr)
{
if (!end_point_exist()) {
return 1;
}
- jitter = _jitter;
-
PIPSocket::Address interfaceAddress(bindaddr.sin_addr);
if (!listenPort)
}
}
- cout << "end" << endl;
return 0;
}
PCLASSINFO(MyH323Connection, H323Connection);
public:
- MyH323Connection(MyH323EndPoint &, unsigned, unsigned, WORD);
+ MyH323Connection(MyH323EndPoint &, unsigned, unsigned);
~MyH323Connection();
H323Channel * CreateRealTimeLogicalChannel(const H323Capability &, H323Channel::Directions, unsigned,
static int gatekeeper_discover = 0;
static int usingGk;
static int port = 1720;
-static int jitter;
static int gkroute = 0;
/* Just about everybody seems to support ulaw, so make it a nice default */
} else if (!strcasecmp(v->name, "context")) {
strncpy(alias->context, v->value, sizeof(alias->context)-1);
} else if (!strcasecmp(v->name, "secret")) {
- strncpy(alias->prefix, v->value, sizeof(alias->secret)-1);
+ strncpy(alias->secret, v->value, sizeof(alias->secret)-1);
}
v = v->next;
}
v = ast_variable_browse(cfg, "general");
while(v) {
/* Create the interface list */
- if (!strcasecmp(v->name, "jitter")) {
- jitter = (int) strtol(v->value, NULL, 10);
- if (jitter < 20 || jitter > 10000) {
- ast_log(LOG_NOTICE, "Invalid jitter value! Valid range: 20ms to 10000ms. Recommended: 100ms");
- ast_destroy(cfg);
- return 0;
- }
- } else if (!strcasecmp(v->name, "port")) {
+ if (!strcasecmp(v->name, "port")) {
port = (int)strtol(v->value, NULL, 10);
} else if (!strcasecmp(v->name, "bindaddr")) {
if (!(hp = gethostbyname(v->value))) {
connection_made, send_digit);
/* start the h.323 listener */
- if (h323_start_listener(port, bindaddr, jitter)) {
+ if (h323_start_listener(port, bindaddr)) {
ast_log(LOG_ERROR, "Unable to create H323 listener.\n");
// h323_end_process();
return -1;
int noFastStart;
int noH245Tunnelling;
int noSilenceSuppression;
- int jitter;
unsigned int port;
} call_options_t;
int h323_set_gk(int, char *, char *);
/* H323 listener related funcions */
- int h323_start_listener(int, struct sockaddr_in, int);
+ int h323_start_listener(int, struct sockaddr_in);
void h323_native_bridge(const char *, char *, char *);
;noH245Tunneling = no
;noSilenceSuppression = no
;
-; jitter buffer
-;jitter = 100
-;
; User-Input Mode (DTMF)
;
; valid entries are: rfc2833, inband