Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
b2623fb8
提交
b2623fb8
authored
9月 06, 2008
作者:
Stefan Knoblich
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Codingstyle cleanup
git-svn-id:
http://svn.openzap.org/svn/openzap/trunk@535
a93c3328-9c30-0410-af19-c9cd2b2d52af
上级
cb92fcdf
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
24 个修改的文件
包含
5301 行增加
和
5592 行删除
+5301
-5592
5ESSStateNT.c
libs/openzap/src/isdn/5ESSStateNT.c
+79
-79
5ESSStateTE.c
libs/openzap/src/isdn/5ESSStateTE.c
+177
-184
5ESSmes.c
libs/openzap/src/isdn/5ESSmes.c
+249
-236
DMSStateNT.c
libs/openzap/src/isdn/DMSStateNT.c
+61
-61
DMSStateTE.c
libs/openzap/src/isdn/DMSStateTE.c
+138
-145
DMSmes.c
libs/openzap/src/isdn/DMSmes.c
+82
-71
EuroISDNStateNT.c
libs/openzap/src/isdn/EuroISDNStateNT.c
+8
-10
EuroISDNStateTE.c
libs/openzap/src/isdn/EuroISDNStateTE.c
+8
-8
Q931.c
libs/openzap/src/isdn/Q931.c
+302
-332
Q931StateNT.c
libs/openzap/src/isdn/Q931StateNT.c
+430
-505
Q931StateTE.c
libs/openzap/src/isdn/Q931StateTE.c
+526
-599
Q931ie.c
libs/openzap/src/isdn/Q931ie.c
+1910
-2072
Q931mes.c
libs/openzap/src/isdn/Q931mes.c
+619
-592
Q932mes.c
libs/openzap/src/isdn/Q932mes.c
+75
-75
DMS.h
libs/openzap/src/isdn/include/DMS.h
+6
-10
Q931.h
libs/openzap/src/isdn/include/Q931.h
+70
-72
Q931ie.h
libs/openzap/src/isdn/include/Q931ie.h
+138
-110
Q932.h
libs/openzap/src/isdn/include/Q932.h
+1
-1
mfifo.h
libs/openzap/src/isdn/include/mfifo.h
+3
-5
national.h
libs/openzap/src/isdn/include/national.h
+8
-12
mfifo.c
libs/openzap/src/isdn/mfifo.c
+139
-150
nationalStateNT.c
libs/openzap/src/isdn/nationalStateNT.c
+66
-66
nationalStateTE.c
libs/openzap/src/isdn/nationalStateTE.c
+128
-128
nationalmes.c
libs/openzap/src/isdn/nationalmes.c
+78
-69
没有找到文件。
libs/openzap/src/isdn/5ESSStateNT.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/5ESSStateTE.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/5ESSmes.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/DMSStateNT.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/DMSStateTE.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/DMSmes.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/EuroISDNStateNT.c
浏览文件 @
b2623fb8
...
...
@@ -4,11 +4,11 @@
Contents: EuroISDN State Engine for NT (Network Mode).
The controlling state engine for Q.931 is the state engine
on the NT side. The state engine on the TE side is a slave
of this. The TE side maintain it's own states as described in
ITU-T Q931, but will in raise conditions be overridden by
the NT side.
The controlling state engine for Q.931 is the state engine
on the NT side. The state engine on the TE side is a slave
of this. The TE side maintain it's own states as described in
ITU-T Q931, but will in raise conditions be overridden by
the NT side.
License/Copyright:
...
...
@@ -19,12 +19,12 @@
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Case Labs, Ltd nor the names of its contributors
* Neither the name of the Case Labs, Ltd nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
...
...
@@ -42,5 +42,3 @@
*****************************************************************************/
#include "Q931.h"
libs/openzap/src/isdn/EuroISDNStateTE.c
浏览文件 @
b2623fb8
...
...
@@ -4,11 +4,11 @@
Contents: EuroISDN State Engine for TE (User Mode).
The controlling state engine for Q.931 is the state engine
on the NT side. The state engine on the TE side is a slave
of this. The TE side maintain it's own states as described in
ITU-T Q931, but will in raise conditions be overridden by
the NT side.
The controlling state engine for Q.931 is the state engine
on the NT side. The state engine on the TE side is a slave
of this. The TE side maintain it's own states as described in
ITU-T Q931, but will in raise conditions be overridden by
the NT side.
License/Copyright:
...
...
@@ -19,12 +19,12 @@
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Case Labs, Ltd nor the names of its contributors
* Neither the name of the Case Labs, Ltd nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
...
...
libs/openzap/src/isdn/Q931.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/Q931StateNT.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/Q931StateTE.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/Q931ie.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/Q931mes.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/Q932mes.c
浏览文件 @
b2623fb8
...
...
@@ -13,12 +13,12 @@
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Case Labs, Ltd nor the names of its contributors
* Neither the name of the Case Labs, Ltd nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
...
...
@@ -39,248 +39,248 @@
/*****************************************************************************
Function:
Q932Umes_Facility
Function:
Q932Umes_Facility
*****************************************************************************/
L3INT
Q932Umes_Facility
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_Facility
Function:
Q931Pmes_Facility
*****************************************************************************/
L3INT
Q932Pmes_Facility
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_Hold
Function:
Q932Umes_Hold
*****************************************************************************/
L3INT
Q932Umes_Hold
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_Hold
Function:
Q931Pmes_Hold
*****************************************************************************/
L3INT
Q932Pmes_Hold
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_HoldAck
Function:
Q932Umes_HoldAck
*****************************************************************************/
L3INT
Q932Umes_HoldAck
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_HoldAck
Function:
Q931Pmes_HoldAck
*****************************************************************************/
L3INT
Q932Pmes_HoldAck
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_HoldReject
Function:
Q932Umes_HoldReject
*****************************************************************************/
L3INT
Q932Umes_HoldReject
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_HoldReject
Function:
Q931Pmes_HoldReject
*****************************************************************************/
L3INT
Q932Pmes_HoldReject
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_Register
Function:
Q932Umes_Register
*****************************************************************************/
L3INT
Q932Umes_Register
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_Register
Function:
Q931Pmes_Register
*****************************************************************************/
L3INT
Q932Pmes_Register
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_Retrieve
Function:
Q932Umes_Retrieve
*****************************************************************************/
L3INT
Q932Umes_Retrieve
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_Retrieve
Function:
Q931Pmes_Retrieve
*****************************************************************************/
L3INT
Q932Pmes_Retrieve
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_RetrieveAck
Function:
Q932Umes_RetrieveAck
*****************************************************************************/
L3INT
Q932Umes_RetrieveAck
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_RetrieveAck
Function:
Q931Pmes_RetrieveAck
*****************************************************************************/
L3INT
Q932Pmes_RetrieveAck
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
/*****************************************************************************
Function:
Q932Umes_RetrieveReject
Function:
Q932Umes_RetrieveReject
*****************************************************************************/
L3INT
Q932Umes_RetrieveReject
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
)
{
L3INT
OOff
=
0
;
L3INT
OOff
=
0
;
/* TODO */
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
mes
->
Size
=
sizeof
(
Q931mes_Generic
)
-
1
+
OOff
;
return
Q931E_NO_ERROR
;
}
/*****************************************************************************
Function:
Q931Pmes_RetrieveReject
Function:
Q931Pmes_RetrieveReject
*****************************************************************************/
L3INT
Q932Pmes_RetrieveReject
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
)
{
L3BOOL
RetCode
=
L3FALSE
;
L3BOOL
RetCode
=
L3FALSE
;
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
NoWarning
(
OBuf
);
NoWarning
(
IBuf
);
return
RetCode
;
return
RetCode
;
}
libs/openzap/src/isdn/include/DMS.h
浏览文件 @
b2623fb8
...
...
@@ -4,18 +4,17 @@
Contents: Header and definition for the National ISDN dialect. The
header contents the following parts:
- Definition of codes
- Definition of codes
- Definition of information elements (nationalie_).
- Definition of messages (nationalmes_).
- Function prototypes.
- Function prototypes.
Description: The National ISDN dialect here covers ????
Related Files: national.h
National ISDN Definitions
nationalie.c National ISDN IE encoders/coders
nationalStateTE.c National ISDN TE State Engine
nationalStateNT.c National ISDN NT State Engine
Related Files: national.h National ISDN Definitions
nationalie.c National ISDN IE encoders/coders
nationalStateTE.c National ISDN TE State Engine
nationalStateNT.c National ISDN NT State Engine
License/Copyright:
...
...
@@ -77,8 +76,6 @@ L3INT DMSPmes_0x07(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize,
L3INT
DMSUmes_0x0f
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
IBuf
,
Q931mes_Generic
*
mes
,
L3INT
IOff
,
L3INT
Size
);
L3INT
DMSPmes_0x0f
(
Q931_TrunkInfo_t
*
pTrunk
,
Q931mes_Generic
*
IBuf
,
L3INT
ISize
,
L3UCHAR
*
OBuf
,
L3INT
*
OSize
);
/*****************************************************************************
Q.931 Process Function Prototyping. Implemented in nationalStateTE.c
...
...
@@ -88,7 +85,6 @@ L3INT DMSPmes_0x0f(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize,
L3INT
DMSProc0x0fTE
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
buf
,
L3INT
iFrom
);
L3INT
DMSProc0x07TE
(
Q931_TrunkInfo_t
*
pTrunk
,
L3UCHAR
*
buf
,
L3INT
iFrom
);
void
DMSCreateTE
(
L3UCHAR
i
);
void
DMSCreateNT
(
L3UCHAR
i
);
...
...
libs/openzap/src/isdn/include/Q931.h
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/include/Q931ie.h
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/include/Q932.h
浏览文件 @
b2623fb8
...
...
@@ -53,7 +53,7 @@
/*****************************************************************************
Q.932 Additional EI Codes
*****************************************************************************/
#define Q932ie_FACILITY
0x1c
/* 0001 1100
*/
#define Q932ie_FACILITY
0x1c
/* 0001 1100
*/
/*****************************************************************************
Function Prototypes.
...
...
libs/openzap/src/isdn/include/mfifo.h
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/include/national.h
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/mfifo.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/nationalStateNT.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/nationalStateTE.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
libs/openzap/src/isdn/nationalmes.c
浏览文件 @
b2623fb8
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论