Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
fec13f56
提交
fec13f56
authored
9月 02, 2009
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
up
git-svn-id:
http://svn.openzap.org/svn/openzap/trunk@824
a93c3328-9c30-0410-af19-c9cd2b2d52af
上级
a80a7ea4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
239 行增加
和
239 行删除
+239
-239
ozmod_sangoma_boost.c
...eetdm/src/ozmod/ozmod_sangoma_boost/ozmod_sangoma_boost.c
+150
-150
sangoma_boost_client.c
...etdm/src/ozmod/ozmod_sangoma_boost/sangoma_boost_client.c
+48
-48
sangoma_boost_client.h
...etdm/src/ozmod/ozmod_sangoma_boost/sangoma_boost_client.h
+31
-31
zap_sangoma_boost.h
...freetdm/src/ozmod/ozmod_sangoma_boost/zap_sangoma_boost.h
+10
-10
没有找到文件。
libs/freetdm/src/ozmod/ozmod_sangoma_boost/ozmod_sangoma_boost.c
浏览文件 @
fec13f56
差异被折叠。
点击展开。
libs/freetdm/src/ozmod/ozmod_sangoma_boost/sangoma_boost_client.c
浏览文件 @
fec13f56
差异被折叠。
点击展开。
libs/freetdm/src/ozmod/ozmod_sangoma_boost/sangoma_boost_client.h
浏览文件 @
fec13f56
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#ifndef _S
S7
BC_H
#ifndef _S
ANGOMA
BC_H
#define _S
S7
BC_H
#define _S
ANGOMA
BC_H
#include <ctype.h>
#include <ctype.h>
#include <string.h>
#include <string.h>
...
@@ -53,46 +53,46 @@
...
@@ -53,46 +53,46 @@
#include <sigboost.h>
#include <sigboost.h>
#include <sys/time.h>
#include <sys/time.h>
#define s
s7
bc_test_flag(p,flag) ({ \
#define s
angoma
bc_test_flag(p,flag) ({ \
((p)->flags & (flag)); \
((p)->flags & (flag)); \
})
})
#define s
s7
bc_set_flag(p,flag) do { \
#define s
angoma
bc_set_flag(p,flag) do { \
((p)->flags |= (flag)); \
((p)->flags |= (flag)); \
} while (0)
} while (0)
#define s
s7
bc_clear_flag(p,flag) do { \
#define s
angoma
bc_clear_flag(p,flag) do { \
((p)->flags &= ~(flag)); \
((p)->flags &= ~(flag)); \
} while (0)
} while (0)
#define s
s7
bc_copy_flags(dest,src,flagz) do { \
#define s
angoma
bc_copy_flags(dest,src,flagz) do { \
(dest)->flags &= ~(flagz); \
(dest)->flags &= ~(flagz); \
(dest)->flags |= ((src)->flags & (flagz)); \
(dest)->flags |= ((src)->flags & (flagz)); \
} while (0)
} while (0)
typedef
t_sigboost_callstart
s
s7
bc_event_t
;
typedef
t_sigboost_callstart
s
angoma
bc_event_t
;
typedef
t_sigboost_short
s
s7
bc_short_event_t
;
typedef
t_sigboost_short
s
angoma
bc_short_event_t
;
typedef
uint32_t
s
s7
bc_event_id_t
;
typedef
uint32_t
s
angoma
bc_event_id_t
;
typedef
struct
s
s7
bc_ip_cfg
typedef
struct
s
angoma
bc_ip_cfg
{
{
char
local_ip
[
25
];
char
local_ip
[
25
];
int
local_port
;
int
local_port
;
char
remote_ip
[
25
];
char
remote_ip
[
25
];
int
remote_port
;
int
remote_port
;
}
s
s7
bc_ip_cfg_t
;
}
s
angoma
bc_ip_cfg_t
;
typedef
enum
{
typedef
enum
{
MSU_FLAG_EVENT
=
(
1
<<
0
),
MSU_FLAG_EVENT
=
(
1
<<
0
),
MSU_FLAG_DOWN
=
(
1
<<
1
)
MSU_FLAG_DOWN
=
(
1
<<
1
)
}
s
s7
bc_flag_t
;
}
s
angoma
bc_flag_t
;
struct
s
s7
bc_connection
{
struct
s
angoma
bc_connection
{
zap_socket_t
socket
;
zap_socket_t
socket
;
struct
sockaddr_in
local_addr
;
struct
sockaddr_in
local_addr
;
struct
sockaddr_in
remote_addr
;
struct
sockaddr_in
remote_addr
;
s
s7
bc_event_t
event
;
s
angoma
bc_event_t
event
;
struct
hostent
remote_hp
;
struct
hostent
remote_hp
;
struct
hostent
local_hp
;
struct
hostent
local_hp
;
unsigned
int
flags
;
unsigned
int
flags
;
...
@@ -102,11 +102,11 @@ struct ss7bc_connection {
...
@@ -102,11 +102,11 @@ struct ss7bc_connection {
unsigned
int
rxseq
;
unsigned
int
rxseq
;
unsigned
int
txwindow
;
unsigned
int
txwindow
;
unsigned
int
rxseq_reset
;
unsigned
int
rxseq_reset
;
s
s7
bc_ip_cfg_t
cfg
;
s
angoma
bc_ip_cfg_t
cfg
;
uint32_t
hb_elapsed
;
uint32_t
hb_elapsed
;
};
};
typedef
struct
s
s7bc_connection
ss7
bc_connection_t
;
typedef
struct
s
angomabc_connection
sangoma
bc_connection_t
;
/* disable nagle's algorythm */
/* disable nagle's algorythm */
static
inline
void
sctp_no_nagle
(
int
socket
)
static
inline
void
sctp_no_nagle
(
int
socket
)
...
@@ -117,21 +117,21 @@ static inline void sctp_no_nagle(int socket)
...
@@ -117,21 +117,21 @@ static inline void sctp_no_nagle(int socket)
#endif
#endif
}
}
int
s
s7bc_connection_close
(
ss7
bc_connection_t
*
mcon
);
int
s
angomabc_connection_close
(
sangoma
bc_connection_t
*
mcon
);
int
s
s7bc_connection_open
(
ss7
bc_connection_t
*
mcon
,
char
*
local_ip
,
int
local_port
,
char
*
ip
,
int
port
);
int
s
angomabc_connection_open
(
sangoma
bc_connection_t
*
mcon
,
char
*
local_ip
,
int
local_port
,
char
*
ip
,
int
port
);
s
s7bc_event_t
*
__ss7bc_connection_read
(
ss7
bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
);
s
angomabc_event_t
*
__sangomabc_connection_read
(
sangoma
bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
);
s
s7bc_event_t
*
__ss7bc_connection_readp
(
ss7
bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
);
s
angomabc_event_t
*
__sangomabc_connection_readp
(
sangoma
bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
);
int
__s
s7bc_connection_write
(
ss7bc_connection_t
*
mcon
,
ss7
bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
);
int
__s
angomabc_connection_write
(
sangomabc_connection_t
*
mcon
,
sangoma
bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
);
int
__s
s7bc_connection_writep
(
ss7bc_connection_t
*
mcon
,
ss7
bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
);
int
__s
angomabc_connection_writep
(
sangomabc_connection_t
*
mcon
,
sangoma
bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
);
#define s
s7bc_connection_write(_m,_e) __ss7
bc_connection_write(_m, _e, __FILE__, __func__, __LINE__)
#define s
angomabc_connection_write(_m,_e) __sangoma
bc_connection_write(_m, _e, __FILE__, __func__, __LINE__)
#define s
s7bc_connection_writep(_m,_e) __ss7
bc_connection_writep(_m, _e, __FILE__, __func__, __LINE__)
#define s
angomabc_connection_writep(_m,_e) __sangoma
bc_connection_writep(_m, _e, __FILE__, __func__, __LINE__)
#define s
s7bc_connection_read(_m,_e) __ss7
bc_connection_read(_m, _e, __FILE__, __func__, __LINE__)
#define s
angomabc_connection_read(_m,_e) __sangoma
bc_connection_read(_m, _e, __FILE__, __func__, __LINE__)
#define s
s7bc_connection_readp(_m,_e) __ss7
bc_connection_readp(_m, _e, __FILE__, __func__, __LINE__)
#define s
angomabc_connection_readp(_m,_e) __sangoma
bc_connection_readp(_m, _e, __FILE__, __func__, __LINE__)
void
s
s7bc_event_init
(
ss7bc_short_event_t
*
event
,
ss7
bc_event_id_t
event_id
,
int
chan
,
int
span
);
void
s
angomabc_event_init
(
sangomabc_short_event_t
*
event
,
sangoma
bc_event_id_t
event_id
,
int
chan
,
int
span
);
void
s
s7bc_call_init
(
ss7
bc_event_t
*
event
,
const
char
*
calling
,
const
char
*
called
,
int
setup_id
);
void
s
angomabc_call_init
(
sangoma
bc_event_t
*
event
,
const
char
*
calling
,
const
char
*
called
,
int
setup_id
);
const
char
*
s
s7
bc_event_id_name
(
uint32_t
event_id
);
const
char
*
s
angoma
bc_event_id_name
(
uint32_t
event_id
);
int
s
s7bc_exec_command
(
ss7
bc_connection_t
*
mcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
);
int
s
angomabc_exec_command
(
sangoma
bc_connection_t
*
mcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
);
int
s
s7bc_exec_commandp
(
ss7
bc_connection_t
*
pcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
);
int
s
angomabc_exec_commandp
(
sangoma
bc_connection_t
*
pcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
);
#endif
#endif
...
...
libs/freetdm/src/ozmod/ozmod_sangoma_boost/zap_sangoma_boost.h
浏览文件 @
fec13f56
...
@@ -31,22 +31,22 @@
...
@@ -31,22 +31,22 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#ifndef ZAP_S
S7
_BOOST_H
#ifndef ZAP_S
ANGOMA
_BOOST_H
#define ZAP_S
S7
_BOOST_H
#define ZAP_S
ANGOMA
_BOOST_H
#include "s
s7
_boost_client.h"
#include "s
angoma
_boost_client.h"
#include "openzap.h"
#include "openzap.h"
typedef
enum
{
typedef
enum
{
ZAP_S
S7
_BOOST_RUNNING
=
(
1
<<
0
),
ZAP_S
ANGOMA
_BOOST_RUNNING
=
(
1
<<
0
),
ZAP_S
S7
_BOOST_RESTARTING
=
(
1
<<
1
)
ZAP_S
ANGOMA
_BOOST_RESTARTING
=
(
1
<<
1
)
}
zap_s
s7
_boost_flag_t
;
}
zap_s
angoma
_boost_flag_t
;
typedef
struct
zap_s
s7
_boost_data
{
typedef
struct
zap_s
angoma
_boost_data
{
s
s7
bc_connection_t
mcon
;
s
angoma
bc_connection_t
mcon
;
s
s7
bc_connection_t
pcon
;
s
angoma
bc_connection_t
pcon
;
zio_signal_cb_t
signal_cb
;
zio_signal_cb_t
signal_cb
;
uint32_t
flags
;
uint32_t
flags
;
}
zap_s
s7
_boost_data_t
;
}
zap_s
angoma
_boost_data_t
;
#endif
#endif
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论