Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
fe7744a9
提交
fe7744a9
authored
7月 30, 2008
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update boost
git-svn-id:
http://svn.openzap.org/svn/openzap/trunk@507
a93c3328-9c30-0410-af19-c9cd2b2d52af
上级
e2cb2de2
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
321 行增加
和
104 行删除
+321
-104
openzap.h
libs/openzap/src/include/openzap.h
+12
-0
sigboost.h
libs/openzap/src/include/sigboost.h
+39
-14
ss7_boost_client.h
libs/openzap/src/include/ss7_boost_client.h
+10
-4
zap_ss7_boost.h
libs/openzap/src/include/zap_ss7_boost.h
+2
-1
ss7_boost_client.c
libs/openzap/src/ss7_boost_client.c
+158
-23
zap_ss7_boost.c
libs/openzap/src/zap_ss7_boost.c
+100
-62
没有找到文件。
libs/openzap/src/include/openzap.h
浏览文件 @
fe7744a9
...
...
@@ -595,6 +595,18 @@ static __inline__ void zap_set_state_all(zap_span_t *span, zap_channel_state_t s
zap_mutex_unlock
(
span
->
mutex
);
}
static
__inline__
int
zap_check_state_all
(
zap_span_t
*
span
,
zap_channel_state_t
state
)
{
uint32_t
j
;
for
(
j
=
1
;
j
<=
span
->
chan_count
;
j
++
)
{
if
(
span
->
channels
[
j
].
state
!=
state
||
zap_test_flag
((
&
span
->
channels
[
j
]),
ZAP_CHANNEL_STATE_CHANGE
))
{
return
0
;
}
}
return
1
;
}
static
__inline__
void
zap_set_flag_all
(
zap_span_t
*
span
,
uint32_t
flag
)
{
uint32_t
j
;
...
...
libs/openzap/src/include/sigboost.h
浏览文件 @
fe7744a9
/****************************************************************************
* sigboost.h $Revision: 1.
3
$
* sigboost.h $Revision: 1.
5
$
*
* Definitions for the sigboost interface.
*
...
...
@@ -33,12 +33,12 @@ enum e_sigboost_event_id_values
SIGBOOST_EVENT_INSERT_CHECK_LOOP
=
0x8a
,
/*138*/
SIGBOOST_EVENT_REMOVE_CHECK_LOOP
=
0x8b
,
/*139*/
SIGBOOST_EVENT_AUTO_CALL_GAP_ABATE
=
0x8c
,
/*140*/
SIGBOOST_EVENT_DIGIT_IN
=
0x8d
,
/*141*/
};
enum
e_sigboost_release_cause_values
{
SIGBOOST_RELEASE_CAUSE_UNDEFINED
=
0
,
SIGBOOST_RELEASE_CAUSE_NORMAL
=
16
,
SIGBOOST_RELEASE_CAUSE_BUSY
=
17
,
/* probable elimination */
//SIGBOOST_RELEASE_CAUSE_BUSY = 0x91, /* 145 */
//SIGBOOST_RELEASE_CAUSE_CALLED_NOT_EXIST = 0x92, /* 146 */
...
...
@@ -59,7 +59,6 @@ enum e_sigboost_call_setup_ack_nack_cause_values
};
#define MAX_DIALED_DIGITS 31
#define MAX_CALLING_NAME 31
/* Next two defines are used to create the range of values for call_setup_id
* in the t_sigboost structure.
...
...
@@ -68,37 +67,63 @@ enum e_sigboost_call_setup_ack_nack_cause_values
#define CORE_MAX_CHAN_PER_SPAN 30
#define MAX_PENDING_CALLS CORE_MAX_SPANS * CORE_MAX_CHAN_PER_SPAN
/* 0..(MAX_PENDING_CALLS-1) is range of call_setup_id below */
#define SIZE_RDNIS 80
//#undef MSGWINDOW
#define MSGWINDOW
#define SIZE_RDNIS 128
#pragma pack(1)
typedef
struct
{
uint32_t
event_id
;
/* delete sequence numbers - SCTP does not need them */
uint32_t
fseqno
;
#ifdef MSGWINDOW
uint32_t
bseqno
;
#endif
uint16_t
call_setup_id
;
uint32_t
trunk_group
;
uint32_t
span
;
uint32_t
chan
;
uint8_t
span
;
uint8_t
chan
;
struct
timeval
tv
;
uint8_t
called_number_digits_count
;
char
called_number_digits
[
MAX_DIALED_DIGITS
+
1
];
/* it's a null terminated string */
uint8_t
calling_number_digits_count
;
/* it's an array */
char
calling_number_digits
[
MAX_DIALED_DIGITS
+
1
];
/* it's a null terminated string */
uint8_t
release_cause
;
struct
timeval
tv
;
/* ref. Q.931 Table 4-11 and Q.951 Section 3 */
uint8_t
calling_number_screening_ind
;
uint8_t
calling_number_presentation
;
char
calling_name
[
MAX_DIALED_DIGITS
+
1
];
uint16_t
redirection_string_size
;
char
redirection_string
[
SIZE_RDNIS
];
/* it's a null terminated string */
/* redir string format:
* http://www.ss7box.com/wiki/tiki-index.php?page=Call+Redirection
* */
}
t_sigboost
;
}
t_sigboost_callstart
;
#define MIN_SIZE_CALLSTART_MSG (sizeof(t_sigboost_callstart) - SIZE_RDNIS)
typedef
struct
{
uint32_t
event_id
;
/* delete sequence numbers - SCTP does not need them */
uint32_t
fseqno
;
uint32_t
bseqno
;
uint16_t
call_setup_id
;
uint32_t
trunk_group
;
uint8_t
span
;
uint8_t
chan
;
struct
timeval
tv
;
uint8_t
release_cause
;
}
t_sigboost_short
;
#pragma pack()
static
inline
int
boost_full_event
(
int
event_id
)
{
switch
(
event_id
)
{
case
SIGBOOST_EVENT_CALL_START
:
case
SIGBOOST_EVENT_DIGIT_IN
:
return
1
;
default:
return
0
;
}
return
0
;
}
#endif
libs/openzap/src/include/ss7_boost_client.h
浏览文件 @
fe7744a9
...
...
@@ -70,7 +70,8 @@
(dest)->flags |= ((src)->flags & (flagz)); \
} while (0)
typedef
t_sigboost
ss7bc_event_t
;
typedef
t_sigboost_callstart
ss7bc_event_t
;
typedef
t_sigboost_short
ss7bc_short_event_t
;
typedef
uint32_t
ss7bc_event_id_t
;
typedef
struct
ss7bc_ip_cfg
...
...
@@ -117,14 +118,19 @@ static inline void sctp_no_nagle(int socket)
int
ss7bc_connection_close
(
ss7bc_connection_t
*
mcon
);
int
ss7bc_connection_open
(
ss7bc_connection_t
*
mcon
,
char
*
local_ip
,
int
local_port
,
char
*
ip
,
int
port
);
ss7bc_event_t
*
ss7bc_connection_read
(
ss7bc_connection_t
*
mcon
,
int
iteration
);
ss7bc_event_t
*
ss7bc_connection_readp
(
ss7bc_connection_t
*
mcon
,
int
iteration
);
ss7bc_event_t
*
__ss7bc_connection_read
(
ss7bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
);
ss7bc_event_t
*
__ss7bc_connection_readp
(
ss7bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
);
int
__ss7bc_connection_write
(
ss7bc_connection_t
*
mcon
,
ss7bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
);
int
__ss7bc_connection_writep
(
ss7bc_connection_t
*
mcon
,
ss7bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
);
#define ss7bc_connection_write(_m,_e) __ss7bc_connection_write(_m, _e, __FILE__, __func__, __LINE__)
void
ss7bc_event_init
(
ss7bc_event_t
*
event
,
ss7bc_event_id_t
event_id
,
int
chan
,
int
span
);
#define ss7bc_connection_writep(_m,_e) __ss7bc_connection_writep(_m, _e, __FILE__, __func__, __LINE__)
#define ss7bc_connection_read(_m,_e) __ss7bc_connection_read(_m, _e, __FILE__, __func__, __LINE__)
#define ss7bc_connection_readp(_m,_e) __ss7bc_connection_readp(_m, _e, __FILE__, __func__, __LINE__)
void
ss7bc_event_init
(
ss7bc_short_event_t
*
event
,
ss7bc_event_id_t
event_id
,
int
chan
,
int
span
);
void
ss7bc_call_init
(
ss7bc_event_t
*
event
,
const
char
*
calling
,
const
char
*
called
,
int
setup_id
);
const
char
*
ss7bc_event_id_name
(
uint32_t
event_id
);
int
ss7bc_exec_command
(
ss7bc_connection_t
*
mcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
);
int
ss7bc_exec_commandp
(
ss7bc_connection_t
*
pcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
);
#endif
...
...
libs/openzap/src/include/zap_ss7_boost.h
浏览文件 @
fe7744a9
...
...
@@ -37,7 +37,8 @@
#include "openzap.h"
typedef
enum
{
ZAP_SS7_BOOST_RUNNING
=
(
1
<<
0
)
ZAP_SS7_BOOST_RUNNING
=
(
1
<<
0
),
ZAP_SS7_BOOST_RESTARTING
=
(
1
<<
1
)
}
zap_ss7_boost_flag_t
;
typedef
struct
zap_ss7_boost_data
{
...
...
libs/openzap/src/ss7_boost_client.c
浏览文件 @
fe7744a9
...
...
@@ -69,6 +69,41 @@ static struct ss7bc_map ss7bc_table[] = {
static
void
ss7bc_print_event_call
(
ss7bc_connection_t
*
mcon
,
ss7bc_event_t
*
event
,
int
priority
,
int
dir
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
if
(
event
->
event_id
==
SIGBOOST_EVENT_HEARTBEAT
)
return
;
zap_log
(
file
,
func
,
line
,
ZAP_LOG_LEVEL_DEBUG
,
"%s EVENT: %s:(%X) [w%dg%d] CSid=%i Seq=%i Cn=[%s] Cd=[%s] Ci=[%s]
\n
"
,
dir
?
"TX"
:
"RX"
,
ss7bc_event_id_name
(
event
->
event_id
),
event
->
event_id
,
event
->
span
+
1
,
event
->
chan
+
1
,
event
->
call_setup_id
,
event
->
fseqno
,
strlen
(
event
->
calling_name
)
?
event
->
calling_name
:
"N/A"
,
(
event
->
called_number_digits_count
?
(
char
*
)
event
->
called_number_digits
:
"N/A"
),
(
event
->
calling_number_digits_count
?
(
char
*
)
event
->
calling_number_digits
:
"N/A"
)
);
}
static
void
ss7bc_print_event_short
(
ss7bc_connection_t
*
mcon
,
ss7bc_short_event_t
*
event
,
int
priority
,
int
dir
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
if
(
event
->
event_id
==
SIGBOOST_EVENT_HEARTBEAT
)
return
;
zap_log
(
file
,
func
,
line
,
ZAP_LOG_LEVEL_DEBUG
,
"%s EVENT (%s): %s:(%X) [w%dg%d] Rc=%i CSid=%i Seq=%i
\n
"
,
dir
?
"TX"
:
"RX"
,
priority
?
"P"
:
"N"
,
ss7bc_event_id_name
(
event
->
event_id
),
event
->
event_id
,
event
->
span
+
1
,
event
->
chan
+
1
,
event
->
release_cause
,
event
->
call_setup_id
,
event
->
fseqno
);
}
static
int
create_conn_socket
(
ss7bc_connection_t
*
mcon
,
char
*
local_ip
,
int
local_port
,
char
*
ip
,
int
port
)
{
int
rc
;
...
...
@@ -161,13 +196,13 @@ int ss7bc_connection_open(ss7bc_connection_t *mcon, char *local_ip, int local_po
int
ss7bc_exec_command
(
ss7bc_connection_t
*
mcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
)
{
ss7bc_event_t
oevent
;
ss7bc_
short_
event_t
oevent
;
int
retry
=
5
;
ss7bc_event_init
(
&
oevent
,
cmd
,
chan
,
span
);
oevent
.
release_cause
=
cause
;
if
(
cmd
==
SIGBOOST_EVENT_SYSTEM_RESTART
)
{
if
(
cmd
==
SIGBOOST_EVENT_SYSTEM_RESTART
||
cmd
==
SIGBOOST_EVENT_SYSTEM_RESTART_ACK
)
{
mcon
->
rxseq_reset
=
1
;
mcon
->
txseq
=
0
;
mcon
->
rxseq
=
0
;
...
...
@@ -178,7 +213,7 @@ int ss7bc_exec_command(ss7bc_connection_t *mcon, int span, int chan, int id, int
oevent
.
call_setup_id
=
id
;
}
while
(
ss7bc_connection_write
(
mcon
,
&
oevent
)
<=
0
)
{
while
(
ss7bc_connection_write
(
mcon
,
(
ss7bc_event_t
*
)
&
oevent
)
<=
0
)
{
if
(
--
retry
<=
0
)
{
zap_log
(
ZAP_LOG_CRIT
,
"Failed to tx on ISUP socket: %s
\n
"
,
strerror
(
errno
));
return
-
1
;
...
...
@@ -192,17 +227,66 @@ int ss7bc_exec_command(ss7bc_connection_t *mcon, int span, int chan, int id, int
}
int
ss7bc_exec_commandp
(
ss7bc_connection_t
*
pcon
,
int
span
,
int
chan
,
int
id
,
int
cmd
,
int
cause
)
{
ss7bc_short_event_t
oevent
;
int
retry
=
5
;
ss7bc_event_init
(
&
oevent
,
cmd
,
chan
,
span
);
oevent
.
release_cause
=
cause
;
ss7bc_event_t
*
ss7bc_connection_read
(
ss7bc_connection_t
*
mcon
,
int
iteration
)
if
(
id
>=
0
)
{
oevent
.
call_setup_id
=
id
;
}
while
(
ss7bc_connection_writep
(
pcon
,
(
ss7bc_event_t
*
)
&
oevent
)
<=
0
)
{
if
(
--
retry
<=
0
)
{
zap_log
(
ZAP_LOG_CRIT
,
"Failed to tx on ISUP socket: %s
\n
"
,
strerror
(
errno
));
return
-
1
;
}
else
{
zap_log
(
ZAP_LOG_WARNING
,
"Failed to tx on ISUP socket: %s :retry %i
\n
"
,
strerror
(
errno
),
retry
);
zap_sleep
(
1
);
}
}
return
0
;
}
ss7bc_event_t
*
__ss7bc_connection_read
(
ss7bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
unsigned
int
fromlen
=
sizeof
(
struct
sockaddr_in
);
int
bytes
=
0
;
int
msg_ok
=
0
;
bytes
=
recvfrom
(
mcon
->
socket
,
&
mcon
->
event
,
sizeof
(
mcon
->
event
),
MSG_DONTWAIT
,
(
struct
sockaddr
*
)
&
mcon
->
local_addr
,
&
fromlen
);
if
(
bytes
==
sizeof
(
mcon
->
event
)
||
bytes
==
(
sizeof
(
mcon
->
event
)
-
sizeof
(
uint32_t
)))
{
/* Must check for < 0 cannot rely on bytes > MIN_SIZE_... compiler issue */
if
(
bytes
<
0
)
{
msg_ok
=
0
;
}
else
if
((
bytes
>=
MIN_SIZE_CALLSTART_MSG
)
&&
boost_full_event
(
mcon
->
event
.
event_id
))
{
msg_ok
=
1
;
}
else
if
(
bytes
==
sizeof
(
ss7bc_short_event_t
))
{
msg_ok
=
1
;
}
else
{
msg_ok
=
0
;
}
if
(
msg_ok
){
if
(
boost_full_event
(
mcon
->
event
.
event_id
))
{
ss7bc_print_event_call
(
mcon
,
&
mcon
->
event
,
0
,
0
,
file
,
func
,
line
);
}
else
{
ss7bc_print_event_short
(
mcon
,(
ss7bc_short_event_t
*
)
&
mcon
->
event
,
0
,
0
,
file
,
func
,
line
);
}
#if 0
/* NC: NOT USED ANY MORE */
if (mcon->rxseq_reset) {
if (mcon->event.event_id == SIGBOOST_EVENT_SYSTEM_RESTART_ACK) {
zap_log(ZAP_LOG_DEBUG, "Rx sync ok\n");
...
...
@@ -213,6 +297,7 @@ ss7bc_event_t *ss7bc_connection_read(ss7bc_connection_t *mcon, int iteration)
zap_log(ZAP_LOG_DEBUG, "Waiting for rx sync...\n");
return NULL;
}
#endif
mcon
->
txwindow
=
mcon
->
txseq
-
mcon
->
event
.
bseqno
;
mcon
->
rxseq
++
;
...
...
@@ -233,14 +318,21 @@ ss7bc_event_t *ss7bc_connection_read(ss7bc_connection_t *mcon, int iteration)
return
NULL
;
}
ss7bc_event_t
*
ss7bc_connection_readp
(
ss7bc_connection_t
*
mcon
,
int
iteration
)
ss7bc_event_t
*
__ss7bc_connection_readp
(
ss7bc_connection_t
*
mcon
,
int
iteration
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
unsigned
int
fromlen
=
sizeof
(
struct
sockaddr_in
);
int
bytes
=
0
;
bytes
=
recvfrom
(
mcon
->
socket
,
&
mcon
->
event
,
sizeof
(
mcon
->
event
),
MSG_DONTWAIT
,
(
struct
sockaddr
*
)
&
mcon
->
local_addr
,
&
fromlen
);
if
(
bytes
==
sizeof
(
mcon
->
event
)
||
bytes
==
(
sizeof
(
mcon
->
event
)
-
sizeof
(
uint32_t
)))
{
if
(
bytes
==
sizeof
(
ss7bc_short_event_t
))
{
if
(
boost_full_event
(
mcon
->
event
.
event_id
))
{
ss7bc_print_event_call
(
mcon
,
&
mcon
->
event
,
1
,
0
,
file
,
func
,
line
);
}
else
{
ss7bc_print_event_short
(
mcon
,(
ss7bc_short_event_t
*
)
&
mcon
->
event
,
1
,
0
,
file
,
func
,
line
);
}
return
&
mcon
->
event
;
}
else
{
if
(
iteration
==
0
)
{
...
...
@@ -256,6 +348,7 @@ ss7bc_event_t *ss7bc_connection_readp(ss7bc_connection_t *mcon, int iteration)
int
__ss7bc_connection_write
(
ss7bc_connection_t
*
mcon
,
ss7bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
int
err
;
int
event_size
=
sizeof
(
ss7bc_event_t
);
if
(
!
event
||
mcon
->
socket
<
0
||
!
mcon
->
mutex
)
{
zap_log
(
file
,
func
,
line
,
ZAP_LOG_LEVEL_CRIT
,
"Critical Error: No Event Device
\n
"
);
...
...
@@ -269,30 +362,71 @@ int __ss7bc_connection_write(ss7bc_connection_t *mcon, ss7bc_event_t *event, con
return
-
1
;
}
if
(
!
boost_full_event
(
event
->
event_id
))
{
event_size
=
sizeof
(
ss7bc_short_event_t
);
}
gettimeofday
(
&
event
->
tv
,
NULL
);
zap_mutex_lock
(
mcon
->
mutex
);
event
->
fseqno
=
mcon
->
txseq
++
;
if
(
event
->
event_id
==
SIGBOOST_EVENT_SYSTEM_RESTART_ACK
)
{
mcon
->
txseq
=
0
;
mcon
->
rxseq
=
0
;
event
->
fseqno
=
0
;
}
else
{
event
->
fseqno
=
mcon
->
txseq
++
;
}
event
->
bseqno
=
mcon
->
rxseq
;
err
=
sendto
(
mcon
->
socket
,
event
,
sizeof
(
ss7bc_event_t
),
0
,
(
struct
sockaddr
*
)
&
mcon
->
remote_addr
,
sizeof
(
mcon
->
remote_addr
));
err
=
sendto
(
mcon
->
socket
,
event
,
event_size
,
0
,
(
struct
sockaddr
*
)
&
mcon
->
remote_addr
,
sizeof
(
mcon
->
remote_addr
));
zap_mutex_unlock
(
mcon
->
mutex
);
if
(
err
!=
sizeof
(
ss7bc_event_t
)
)
{
if
(
err
!=
event_size
)
{
err
=
-
1
;
abort
();
}
if
(
boost_full_event
(
event
->
event_id
))
{
ss7bc_print_event_call
(
mcon
,
event
,
0
,
1
,
file
,
func
,
line
);
}
else
{
ss7bc_print_event_short
(
mcon
,(
ss7bc_short_event_t
*
)
event
,
0
,
1
,
file
,
func
,
line
);
}
return
err
;
}
int
__ss7bc_connection_writep
(
ss7bc_connection_t
*
mcon
,
ss7bc_event_t
*
event
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
int
err
;
int
event_size
=
sizeof
(
ss7bc_event_t
);
if
(
!
event
||
mcon
->
socket
<
0
||
!
mcon
->
mutex
)
{
zap_log
(
file
,
func
,
line
,
ZAP_LOG_LEVEL_CRIT
,
"Critical Error: No Event Device
\n
"
);
return
-
EINVAL
;
abort
();
}
if
(
!
boost_full_event
(
event
->
event_id
))
{
event_size
=
sizeof
(
ss7bc_short_event_t
);
}
gettimeofday
(
&
event
->
tv
,
NULL
);
zap_log
(
file
,
func
,
line
,
ZAP_LOG_LEVEL_DEBUG
,
"TX EVENT: %s:(%X) [w%dg%d] Rc=%i CSid=%i Seq=%i Cd=[%s] Ci=[%s]
\n
"
,
ss7bc_event_id_name
(
event
->
event_id
),
event
->
event_id
,
event
->
span
+
1
,
event
->
chan
+
1
,
event
->
release_cause
,
event
->
call_setup_id
,
event
->
fseqno
,
(
event
->
called_number_digits_count
?
(
char
*
)
event
->
called_number_digits
:
"N/A"
),
(
event
->
calling_number_digits_count
?
(
char
*
)
event
->
calling_number_digits
:
"N/A"
)
);
zap_mutex_lock
(
mcon
->
mutex
);
err
=
sendto
(
mcon
->
socket
,
event
,
event_size
,
0
,
(
struct
sockaddr
*
)
&
mcon
->
remote_addr
,
sizeof
(
mcon
->
remote_addr
));
zap_mutex_unlock
(
mcon
->
mutex
);
if
(
err
!=
event_size
)
{
err
=
-
1
;
abort
();
}
if
(
boost_full_event
(
event
->
event_id
))
{
ss7bc_print_event_call
(
mcon
,
event
,
1
,
1
,
file
,
func
,
line
);
}
else
{
ss7bc_print_event_short
(
mcon
,(
ss7bc_short_event_t
*
)
event
,
1
,
1
,
file
,
func
,
line
);
}
return
err
;
}
...
...
@@ -317,9 +451,9 @@ void ss7bc_call_init(ss7bc_event_t *event, const char *calling, const char *call
}
void
ss7bc_event_init
(
ss7bc_
event_t
*
event
,
ss7bc_event_id_t
event_id
,
int
chan
,
int
span
)
void
ss7bc_event_init
(
ss7bc_
short_event_t
*
event
,
ss7bc_event_id_t
event_id
,
int
chan
,
int
span
)
{
memset
(
event
,
0
,
sizeof
(
ss7bc_event_t
));
memset
(
event
,
0
,
sizeof
(
ss7bc_
short_
event_t
));
event
->
event_id
=
event_id
;
event
->
chan
=
chan
;
event
->
span
=
span
;
...
...
@@ -340,6 +474,7 @@ const char *ss7bc_event_id_name(uint32_t event_id)
return
ret
;
}
/* For Emacs:
* Local Variables:
* mode:c
...
...
libs/openzap/src/zap_ss7_boost.c
浏览文件 @
fe7744a9
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论