mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
no need to spam everyone with show transcoder messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -113,16 +113,16 @@ static int show_transcoder(int fd, int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
ast_mutex_lock(&channelcount);
|
ast_mutex_lock(&channelcount);
|
||||||
if (!totalchannels) {
|
if (!totalchannels) {
|
||||||
ast_verbose("No transcoder card registered\n");
|
ast_cli(fd, "No transcoder card registered\n");
|
||||||
ast_mutex_unlock(&channelcount);
|
ast_mutex_unlock(&channelcount);
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
if(!cardsmode)
|
if(!cardsmode)
|
||||||
ast_verbose("%d/%d encoders/decoders of %d channels (G.729a / G.723.1 5.3 kbps) are in use.\n",complexinuse, simpleinuse, totalchannels);
|
ast_cli(fd, "%d/%d encoders/decoders of %d channels (G.729a / G.723.1 5.3 kbps) are in use.\n",complexinuse, simpleinuse, totalchannels);
|
||||||
else if (cardsmode == 1)
|
else if (cardsmode == 1)
|
||||||
ast_verbose("%d/%d encoders/decoders of %d channels (G.729a) are in use.\n",complexinuse, simpleinuse, totalchannels);
|
ast_cli(fd, "%d/%d encoders/decoders of %d channels (G.729a) are in use.\n",complexinuse, simpleinuse, totalchannels);
|
||||||
else if (cardsmode == 2)
|
else if (cardsmode == 2)
|
||||||
ast_verbose("%d/%d encoders/decoders of %d channels (G.723.1 5.3 kbps) are in use.\n",complexinuse, simpleinuse, totalchannels);
|
ast_cli(fd, "%d/%d encoders/decoders of %d channels (G.723.1 5.3 kbps) are in use.\n",complexinuse, simpleinuse, totalchannels);
|
||||||
|
|
||||||
ast_mutex_unlock(&channelcount);
|
ast_mutex_unlock(&channelcount);
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user