Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8cad28c2
提交
8cad28c2
authored
5月 29, 2007
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dos2unix
git-svn-id:
http://svn.openzap.org/svn/openzap/trunk@182
a93c3328-9c30-0410-af19-c9cd2b2d52af
上级
acbb50c0
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
73 行增加
和
73 行删除
+73
-73
zap_zt.h
libs/freetdm/src/include/zap_zt.h
+73
-73
没有找到文件。
libs/freetdm/src/include/zap_zt.h
浏览文件 @
8cad28c2
...
...
@@ -79,7 +79,7 @@ struct zt_confinfo {
/* Used with ioctl: ZT_GETGAINS and ZT_SETGAINS */
struct
zt_gains
{
int
chan_no
;
/* Channel Number, 0 for current */
unsigned
char
receive_gain
[
256
];
/* Receive gain table */
unsigned
char
receive_gain
[
256
];
/* Receive gain table */
unsigned
char
transmit_gain
[
256
];
/* Transmit gain table */
};
...
...
@@ -93,97 +93,97 @@ typedef enum {
}
zt_g711_t
;
typedef
enum
{
ZT_EVENT_NONE
=
0
,
ZT_EVENT_ONHOOK
=
1
,
ZT_EVENT_RINGOFFHOOK
=
2
,
ZT_EVENT_WINKFLASH
=
3
,
ZT_EVENT_ALARM
=
4
,
ZT_EVENT_NOALARM
=
5
,
ZT_EVENT_ABORT
=
6
,
ZT_EVENT_OVERRUN
=
7
,
ZT_EVENT_BADFCS
=
8
,
ZT_EVENT_DIALCOMPLETE
=
9
,
ZT_EVENT_RINGERON
=
10
,
ZT_EVENT_RINGE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ZT_IOMUX_WRITE
=
2
,
ZT_IOMUX_WRITEEMPTY
=
4
,
ZT_IOMUX_SIGEVENT
=
8
,
ZT_IOMUX_NOWAIT
=
256
ZT_IOMUX_READ
=
1
,
ZT_IOMUX_WRITE
=
2
,
ZT_IOMUX_WRITEEMPTY
=
4
,
ZT_IOMUX_SIGEVENT
=
8
,
ZT_IOMUX_NOWAIT
=
256
}
zt_iomux_t
;
typedef
enum
{
ZT_ONHOOK
=
0
,
ZT_OFFHOOK
=
1
,
ZT_WINK
=
2
,
ZT_FLASH
=
3
,
ZT_START
=
4
,
ZT_RING
=
5
,
ZT_RINGOFF
=
6
ZT_ONHOOK
=
0
,
ZT_OFFHOOK
=
1
,
ZT_WINK
=
2
,
ZT_FLASH
=
3
,
ZT_START
=
4
,
ZT_RING
=
5
,
ZT_RINGOFF
=
6
}
zt_hookstate_t
;
/* Defines */
#define ZT_MAX_BLOCKSIZE 8192
#define ZT_DEFAULT_MTU_MRU 2048
#define ZT_MAX_BLOCKSIZE 8192
#define ZT_DEFAULT_MTU_MRU 2048
/* ioctl defines */
#define ZT_CODE 'J'
#define ZT_GET_BLOCKSIZE _IOW (ZT_CODE, 1, int)
/* Get Transfer Block Size. */
#define ZT_SET_BLOCKSIZE _IOW (ZT_CODE, 2, int)
/* Set Transfer Block Size. */
#define ZT_FLUSH _IOW (ZT_CODE, 3, int)
/* Flush Buffer(s) and stop I/O */
#define ZT_SYNC _IOW (ZT_CODE, 4, int)
/* Wait for Write to Finish */
#define ZT_GET_PARAMS _IOR (ZT_CODE, 5, struct zt_params)
/* Get channel parameters */
#define ZT_SET_PARAMS _IOW (ZT_CODE, 6, struct zt_params)
/* Set channel parameters */
#define ZT_HOOK _IOW (ZT_CODE, 7, int)
/* Set Hookswitch Status */
#define ZT_GETEVENT _IOR (ZT_CODE, 8, int)
/* Get Signalling Event */
#define ZT_IOMUX _IOWR (ZT_CODE, 9, int)
/* Wait for something to happen (IO Mux) */
#define ZT_GETCONF _IOWR (ZT_CODE, 12, struct zt_confinfo)
/* Get Conference Mode */
#define ZT_SETCONF _IOWR (ZT_CODE, 13, struct zt_confinfo)
/* Set Conference Mode */
#define ZT_CONFLINK _IOW (ZT_CODE, 14, struct zt_confinfo)
/* Setup or Remove Conference Link */
#define ZT_CONFDIAG _IOR (ZT_CODE, 15, int)
/* Display Conference Diagnostic Information on Console */
#define ZT_GETGAINS _IOWR (ZT_CODE, 16, struct zt_gains)
/* Get Channel audio gains */
#define ZT_SETGAINS _IOWR (ZT_CODE, 17, struct zt_gains)
/* Set Channel audio gains */
#define ZT_AUDIOMODE _IOW (ZT_CODE, 32, int)
/* Set a clear channel into audio mode */
#define ZT_HDLCRAWMODE _IOW (ZT_CODE, 36, int)
/* Set a clear channel into HDLC w/out FCS checking/calculation mode */
#define ZT_HDLCFCSMODE _IOW (ZT_CODE, 37, int)
/* Set a clear channel into HDLC w/ FCS mode */
/* Specify a channel on /dev/zap/chan -- must be done before any other ioctl's and is only valid on /dev/zap/chan */
#define ZT_SPECIFY _IOW (ZT_CODE, 38, int)
/* Temporarily set the law on a channel to ZT_LAW_DEFAULT, ZT_LAW_ALAW, or ZT_LAW_MULAW. Is reset on close. */
#define ZT_SETLAW _IOW (ZT_CODE, 39, int)
/* Temporarily set the channel to operate in linear mode when non-zero or default law if 0 */
#define ZT_SETLINEAR _IOW (ZT_CODE, 40, int)
#define ZT_GETCONFMUTE _IOR (ZT_CODE, 49, int)
/* Get Conference to mute mode */
#define ZT_GET_BLOCKSIZE _IOW (ZT_CODE, 1, int)
/* Get Transfer Block Size. */
#define ZT_SET_BLOCKSIZE _IOW (ZT_CODE, 2, int)
/* Set Transfer Block Size. */
#define ZT_FLUSH _IOW (ZT_CODE, 3, int)
/* Flush Buffer(s) and stop I/O */
#define ZT_SYNC _IOW (ZT_CODE, 4, int)
/* Wait for Write to Finish */
#define ZT_GET_PARAMS _IOR (ZT_CODE, 5, struct zt_params)
/* Get channel parameters */
#define ZT_SET_PARAMS _IOW (ZT_CODE, 6, struct zt_params)
/* Set channel parameters */
#define ZT_HOOK _IOW (ZT_CODE, 7, int)
/* Set Hookswitch Status */
#define ZT_GETEVENT _IOR (ZT_CODE, 8, int)
/* Get Signalling Event */
#define ZT_IOMUX _IOWR (ZT_CODE, 9, int)
/* Wait for something to happen (IO Mux) */
#define ZT_GETCONF _IOWR (ZT_CODE, 12, struct zt_confinfo)
/* Get Conference Mode */
#define ZT_SETCONF _IOWR (ZT_CODE, 13, struct zt_confinfo)
/* Set Conference Mode */
#define ZT_CONFLINK _IOW (ZT_CODE, 14, struct zt_confinfo)
/* Setup or Remove Conference Link */
#define ZT_CONFDIAG _IOR (ZT_CODE, 15, int)
/* Display Conference Diagnostic Information on Console */
#define ZT_GETGAINS _IOWR (ZT_CODE, 16, struct zt_gains)
/* Get Channel audio gains */
#define ZT_SETGAINS _IOWR (ZT_CODE, 17, struct zt_gains)
/* Set Channel audio gains */
#define ZT_AUDIOMODE _IOW (ZT_CODE, 32, int)
/* Set a clear channel into audio mode */
#define ZT_HDLCRAWMODE _IOW (ZT_CODE, 36, int)
/* Set a clear channel into HDLC w/out FCS checking/calculation mode */
#define ZT_HDLCFCSMODE _IOW (ZT_CODE, 37, int)
/* Set a clear channel into HDLC w/ FCS mode */
/* Specify a channel on /dev/zap/chan -- must be done before any other ioctl's and is only valid on /dev/zap/chan */
#define ZT_SPECIFY _IOW (ZT_CODE, 38, int)
/* Temporarily set the law on a channel to ZT_LAW_DEFAULT, ZT_LAW_ALAW, or ZT_LAW_MULAW. Is reset on close. */
#define ZT_SETLAW _IOW (ZT_CODE, 39, int)
/* Temporarily set the channel to operate in linear mode when non-zero or default law if 0 */
#define ZT_SETLINEAR _IOW (ZT_CODE, 40, int)
#define ZT_GETCONFMUTE _IOR (ZT_CODE, 49, int)
/* Get Conference to mute mode */
/* Openzap ZT hardware interface functions */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论