|
|
@ -307,6 +307,8 @@ int onCallEstablished(ooCallData *call);
|
|
|
|
int onCallCleared(ooCallData *call);
|
|
|
|
int onCallCleared(ooCallData *call);
|
|
|
|
void onModeChanged(ooCallData *call, int t38mode);
|
|
|
|
void onModeChanged(ooCallData *call, int t38mode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern OOH323EndPoint gH323ep;
|
|
|
|
|
|
|
|
|
|
|
|
static char gLogFile[256] = DEFAULT_LOGFILE;
|
|
|
|
static char gLogFile[256] = DEFAULT_LOGFILE;
|
|
|
|
static int gPort = 1720;
|
|
|
|
static int gPort = 1720;
|
|
|
|
static char gIP[2+8*4+7]; /* Max for IPv6 addr */
|
|
|
|
static char gIP[2+8*4+7]; /* Max for IPv6 addr */
|
|
|
@ -642,6 +644,7 @@ static struct ast_channel *ooh323_request(const char *type, struct ast_format_ca
|
|
|
|
ooh323_destroy(p);
|
|
|
|
ooh323_destroy(p);
|
|
|
|
ast_mutex_unlock(&iflock);
|
|
|
|
ast_mutex_unlock(&iflock);
|
|
|
|
ast_log(LOG_ERROR, "Destination format is not supported\n");
|
|
|
|
ast_log(LOG_ERROR, "Destination format is not supported\n");
|
|
|
|
|
|
|
|
*cause = AST_CAUSE_INVALID_NUMBER_FORMAT;
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -689,6 +692,10 @@ static struct ast_channel *ooh323_request(const char *type, struct ast_format_ca
|
|
|
|
ooh323_destroy(p);
|
|
|
|
ooh323_destroy(p);
|
|
|
|
ast_mutex_unlock(&iflock);
|
|
|
|
ast_mutex_unlock(&iflock);
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
} else if (gH323ep.gkClient && gH323ep.gkClient->state != GkClientRegistered) {
|
|
|
|
|
|
|
|
ast_log(LOG_ERROR, "Gatekeeper client is configured but not registered\n");
|
|
|
|
|
|
|
|
*cause = AST_CAUSE_NORMAL_TEMPORARY_FAILURE;
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
p->g729onlyA = g729onlyA;
|
|
|
|
p->g729onlyA = g729onlyA;
|
|
|
|
p->dtmfmode = gDTMFMode;
|
|
|
|
p->dtmfmode = gDTMFMode;
|
|
|
@ -2615,8 +2622,6 @@ static struct ooh323_peer *build_peer(const char *name, struct ast_variable *v,
|
|
|
|
|
|
|
|
|
|
|
|
static int ooh323_do_reload(void)
|
|
|
|
static int ooh323_do_reload(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
extern OOH323EndPoint gH323ep;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
if (gH323Debug) {
|
|
|
|
ast_verb(0, "--- ooh323_do_reload\n");
|
|
|
|
ast_verb(0, "--- ooh323_do_reload\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3369,7 +3374,6 @@ static int ooh323_show_channels(int fd, int argc, char *argv[])
|
|
|
|
static char *handle_cli_ooh323_show_gk(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
|
|
|
|
static char *handle_cli_ooh323_show_gk(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char value[FORMAT_STRING_SIZE];
|
|
|
|
char value[FORMAT_STRING_SIZE];
|
|
|
|
extern OOH323EndPoint gH323ep;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (cmd) {
|
|
|
|
switch (cmd) {
|
|
|
|
case CLI_INIT:
|
|
|
|
case CLI_INIT:
|
|
|
|