|
|
|
@ -1118,7 +1118,7 @@ static int ooh323_answer(struct ast_channel *ast)
|
|
|
|
|
ast_channel_lock(ast);
|
|
|
|
|
if (!p->alertsent) {
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
|
ast_debug(1, "Sending forced ringback for %s, res = %d\n",
|
|
|
|
|
ast_debug(1, "Sending forced ringback for %s, res = %u\n",
|
|
|
|
|
callToken, ooManualRingback(callToken));
|
|
|
|
|
} else {
|
|
|
|
|
ooManualRingback(callToken);
|
|
|
|
@ -1172,7 +1172,7 @@ static int ooh323_write(struct ast_channel *ast, struct ast_frame *f)
|
|
|
|
|
p->lastrtptx = time(NULL);
|
|
|
|
|
|
|
|
|
|
if (f->frametype == AST_FRAME_MODEM) {
|
|
|
|
|
ast_debug(1, "Send UDPTL %d/%d len %d for %s\n",
|
|
|
|
|
ast_debug(1, "Send UDPTL %u/%d len %d for %s\n",
|
|
|
|
|
f->frametype, f->subclass.integer, f->datalen, ast_channel_name(ast));
|
|
|
|
|
if (p->udptl)
|
|
|
|
|
res = ast_udptl_write(p->udptl, f);
|
|
|
|
@ -1218,7 +1218,7 @@ static int ooh323_write(struct ast_channel *ast, struct ast_frame *f)
|
|
|
|
|
ast_mutex_unlock(&p->lock);
|
|
|
|
|
return 0;
|
|
|
|
|
} else {
|
|
|
|
|
ast_log(LOG_WARNING, "Can't send %d type frames with OOH323 write\n",
|
|
|
|
|
ast_log(LOG_WARNING, "Can't send %u type frames with OOH323 write\n",
|
|
|
|
|
f->frametype);
|
|
|
|
|
ast_mutex_unlock(&p->lock);
|
|
|
|
|
return 0;
|
|
|
|
@ -1282,7 +1282,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
|
|
|
|
|
if (ast_channel_state(ast) != AST_STATE_UP) {
|
|
|
|
|
if (!p->progsent) {
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
|
ast_debug(1, "Sending manual progress for %s, res = %d\n", callToken,
|
|
|
|
|
ast_debug(1, "Sending manual progress for %s, res = %u\n", callToken,
|
|
|
|
|
ooManualProgress(callToken));
|
|
|
|
|
} else {
|
|
|
|
|
ooManualProgress(callToken);
|
|
|
|
@ -1295,7 +1295,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
|
|
|
|
|
if (ast_channel_state(ast) == AST_STATE_RING || ast_channel_state(ast) == AST_STATE_RINGING) {
|
|
|
|
|
if (!p->alertsent) {
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
|
ast_debug(1, "Sending manual ringback for %s, res = %d\n",
|
|
|
|
|
ast_debug(1, "Sending manual ringback for %s, res = %u\n",
|
|
|
|
|
callToken,
|
|
|
|
|
ooManualRingback(callToken));
|
|
|
|
|
} else {
|
|
|
|
@ -3208,7 +3208,7 @@ static char *handle_cli_ooh323_show_peer(struct ast_cli_entry *e, int cmd, struc
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "AccountCode: ", peer->accountcode);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "AMA flags: ", ast_channel_amaflags2string(peer->amaflags));
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "IP:Port: ", ip_port);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%d\n", "OutgoingLimit: ", peer->outgoinglimit);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%u\n", "OutgoingLimit: ", peer->outgoinglimit);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%d\n", "rtptimeout: ", peer->rtptimeout);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "nat: ", peer->nat?"yes":"no");
|
|
|
|
|
if (peer->rtpmaskstr[0]) {
|
|
|
|
@ -3347,7 +3347,7 @@ static char *handle_cli_ooh323_show_user(struct ast_cli_entry *e, int cmd, struc
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "AMA flags: ", ast_channel_amaflags2string(user->amaflags));
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "Context: ", user->context);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%d\n", "IncomingLimit: ", user->incominglimit);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%d\n", "InUse: ", user->inUse);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%u\n", "InUse: ", user->inUse);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%d\n", "rtptimeout: ", user->rtptimeout);
|
|
|
|
|
ast_cli(a->fd, "%-15.15s%s\n", "nat: ", user->nat?"yes":"no");
|
|
|
|
|
if (user->rtpmaskstr[0]) {
|
|
|
|
@ -4416,7 +4416,7 @@ static enum ast_rtp_glue_result ooh323_get_rtp_peer(struct ast_channel *chan, st
|
|
|
|
|
|
|
|
|
|
ast_rtp_instance_get_remote_address(*rtp, &tmp);
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
|
ast_verb(0, "ooh323_get_rtp_peer %s -> %s:%d, %d\n", ast_channel_name(chan), ast_sockaddr_stringify_addr(&tmp),
|
|
|
|
|
ast_verb(0, "ooh323_get_rtp_peer %s -> %s:%d, %u\n", ast_channel_name(chan), ast_sockaddr_stringify_addr(&tmp),
|
|
|
|
|
ast_sockaddr_port(&tmp), res);
|
|
|
|
|
}
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
@ -4943,7 +4943,7 @@ struct ast_frame *ooh323_rtp_read(struct ast_channel *ast, struct ooh323_pvt *p)
|
|
|
|
|
case 5:
|
|
|
|
|
f = ast_udptl_read(p->udptl); /* UDPTL t.38 data */
|
|
|
|
|
if (gH323Debug) {
|
|
|
|
|
ast_debug(1, "Got UDPTL %d/%d len %d for %s\n",
|
|
|
|
|
ast_debug(1, "Got UDPTL %u/%d len %d for %s\n",
|
|
|
|
|
f->frametype, f->subclass.integer, f->datalen, ast_channel_name(ast));
|
|
|
|
|
}
|
|
|
|
|
p->lastrtprx = time(NULL);
|
|
|
|
|