mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
Merging in xylome's beaerer capabilty patch (bug 3547)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
20
channel.c
20
channel.c
@@ -39,6 +39,7 @@
|
||||
#include <asterisk/utils.h>
|
||||
#include <asterisk/lock.h>
|
||||
#include <asterisk/app.h>
|
||||
#include <asterisk/transcap.h>
|
||||
#ifdef ZAPTEL_OPTIMIZATIONS
|
||||
#include <sys/ioctl.h>
|
||||
#ifdef __linux__
|
||||
@@ -243,6 +244,25 @@ char *ast_state2str(int state)
|
||||
}
|
||||
}
|
||||
|
||||
char *ast_transfercapability2str(int transfercapability)
|
||||
{
|
||||
switch(transfercapability) {
|
||||
case AST_TRANS_CAP_SPEECH:
|
||||
return "SPEECH";
|
||||
case AST_TRANS_CAP_DIGITAL:
|
||||
return "DIGITAL";
|
||||
case AST_TRANS_CAP_RESTRICTED_DIGITAL:
|
||||
return "RESTRICTED_DIGITAL";
|
||||
case AST_TRANS_CAP_3_1K_AUDIO:
|
||||
return "3K1AUDIO";
|
||||
case AST_TRANS_CAP_DIGITAL_W_TONES:
|
||||
return "DIGITAL_W_TONES";
|
||||
case AST_TRANS_CAP_VIDEO:
|
||||
return "VIDEO";
|
||||
default:
|
||||
return "UNKNOWN";
|
||||
}
|
||||
}
|
||||
|
||||
int ast_best_codec(int fmts)
|
||||
{
|
||||
|
Reference in New Issue
Block a user