Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d3c8429a
提交
d3c8429a
authored
5月 30, 2012
作者:
kapil
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'nsg-4.3' of
ssh://git.sangoma.com/smg_freeswitch
into nsg-4.3
上级
076d9fbe
a941cad1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
53 行增加
和
9 行删除
+53
-9
ftmod_sangoma_ss7_m2ua.c
...etdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_m2ua.c
+49
-5
megaco.conf.xml
src/mod/endpoints/mod_megaco/conf/megaco.conf.xml
+4
-4
没有找到文件。
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_m2ua.c
浏览文件 @
d3c8429a
...
@@ -69,6 +69,7 @@ ftdm_status_t sng_m2ua_cfg(void);
...
@@ -69,6 +69,7 @@ ftdm_status_t sng_m2ua_cfg(void);
static
S16
ftmod_sigtran_tsap_bnd
(
void
);
static
S16
ftmod_sigtran_tsap_bnd
(
void
);
static
S16
ftmod_sigtran_sctsap_bnd
(
void
);
static
S16
ftmod_sigtran_sctsap_bnd
(
void
);
static
S16
ftmod_sigtran_open_endpoint
(
void
);
static
S16
ftmod_sigtran_dlsap_bnd
(
U32
id
);
static
S16
ftmod_sigtran_dlsap_bnd
(
U32
id
);
static
S16
ftmod_ss7_dlsap_bnd
(
U32
id
);
static
S16
ftmod_ss7_dlsap_bnd
(
U32
id
);
...
@@ -708,16 +709,16 @@ static S16 ftmod_sigtran_m2ua_sctsap_config(void)
...
@@ -708,16 +709,16 @@ static S16 ftmod_sigtran_m2ua_sctsap_config(void)
/* service provider ID */
/* service provider ID */
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
spId
=
1
;
/* TUCL sct sap id is 1 */
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
spId
=
1
;
/* TUCL sct sap id is 1 */
/* source port number */
/* source port number */
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcPort
=
0
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcPort
=
2904
;
/* interface address */
/* interface address */
/*For multiple IP address support */
/*For multiple IP address support */
#ifdef SCT_ENDP_MULTI_IPADDR
#ifdef SCT_ENDP_MULTI_IPADDR
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcAddrLst
.
nmb
=
1
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcAddrLst
.
nmb
=
1
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcAddrLst
.
nAddr
[
0
].
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcAddrLst
.
nAddr
[
0
].
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
0
"
);
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
srcAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
2
"
);
#else
#else
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
intfAddr
.
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
intfAddr
.
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
intfAddr
.
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
0
"
);
cfg
.
t
.
cfg
.
s
.
sctSapCfg
.
intfAddr
.
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
2
"
);
#endif
#endif
/* lower SAP primitive timer */
/* lower SAP primitive timer */
...
@@ -784,7 +785,7 @@ static S16 ftmod_sigtran_m2ua_peer_config(void)
...
@@ -784,7 +785,7 @@ static S16 ftmod_sigtran_m2ua_peer_config(void)
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
suId
=
0
;
/* SCTSAP ID */
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
suId
=
0
;
/* SCTSAP ID */
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nmb
=
1
;
/* destination address list*/
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nmb
=
1
;
/* destination address list*/
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nAddr
[
0
].
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nAddr
[
0
].
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
0
"
);
/* TODO */
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
1
"
);
/* TODO */
;
#if 0
#if 0
cfg.t.cfg.s.peerCfg.assocCfg.dstAddrLst.nAddr[1].type = CM_NETADDR_IPV4;
cfg.t.cfg.s.peerCfg.assocCfg.dstAddrLst.nAddr[1].type = CM_NETADDR_IPV4;
cfg.t.cfg.s.peerCfg.assocCfg.dstAddrLst.nAddr[1].u.ipv4NetAddr = ftmod_parse_conv_ipaddr("172.25.0.93"); /* TODO */;
cfg.t.cfg.s.peerCfg.assocCfg.dstAddrLst.nAddr[1].u.ipv4NetAddr = ftmod_parse_conv_ipaddr("172.25.0.93"); /* TODO */;
...
@@ -794,7 +795,7 @@ static S16 ftmod_sigtran_m2ua_peer_config(void)
...
@@ -794,7 +795,7 @@ static S16 ftmod_sigtran_m2ua_peer_config(void)
#endif
#endif
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
srcAddrLst
.
nmb
=
1
;
/* source address list */
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
srcAddrLst
.
nmb
=
1
;
/* source address list */
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
srcAddrLst
.
nAddr
[
0
].
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
srcAddrLst
.
nAddr
[
0
].
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
srcAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
0
"
);
/* TODO */
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
srcAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
=
ftmod_parse_conv_ipaddr
((
S8
*
)
"192.168.1.10
2
"
);
/* TODO */
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
priDstAddr
.
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
priDstAddr
.
type
=
CM_NETADDR_IPV4
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
priDstAddr
.
u
.
ipv4NetAddr
=
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
;
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
priDstAddr
.
u
.
ipv4NetAddr
=
cfg
.
t
.
cfg
.
s
.
peerCfg
.
assocCfg
.
dstAddrLst
.
nAddr
[
0
].
u
.
ipv4NetAddr
;
...
@@ -1196,10 +1197,53 @@ int ftmod_ss7_m2ua_start(void){
...
@@ -1196,10 +1197,53 @@ int ftmod_ss7_m2ua_start(void){
ftdm_log
(
FTDM_LOG_INFO
,
"Control request to bind DLSAP between NIF and MTP2 : OK
\n
"
);
ftdm_log
(
FTDM_LOG_INFO
,
"Control request to bind DLSAP between NIF and MTP2 : OK
\n
"
);
}
}
}
}
/* Send a control request to open endpoint */
if
(
(
ret
=
ftmod_sigtran_open_endpoint
())
!=
ROK
)
{
ftdm_log
(
FTDM_LOG_ERROR
,
"ftmod_sigtran_open_endpoint FAIL
\n
"
);
return
1
;
}
else
{
ftdm_log
(
FTDM_LOG_ERROR
,
"ftmod_sigtran_open_endpoint SUCCESS
\n
"
);
}
return
0
;
return
0
;
}
}
static
S16
ftmod_sigtran_open_endpoint
(
void
)
{
Pst
pst
;
MwMgmt
cntrl
;
memset
((
U8
*
)
&
pst
,
0
,
sizeof
(
Pst
));
memset
((
U8
*
)
&
cntrl
,
0
,
sizeof
(
MwMgmt
));
smPstInit
(
&
pst
);
pst
.
dstEnt
=
ENTMW
;
/* prepare header */
cntrl
.
hdr
.
msgType
=
TCNTRL
;
/* message type */
cntrl
.
hdr
.
entId
.
ent
=
ENTMW
;
/* entity */
cntrl
.
hdr
.
entId
.
inst
=
0
;
/* instance */
cntrl
.
hdr
.
elmId
.
elmnt
=
STMWSCTSAP
;
/* General */
cntrl
.
hdr
.
transId
=
1
;
/* transaction identifier */
cntrl
.
hdr
.
response
.
selector
=
0
;
cntrl
.
hdr
.
response
.
prior
=
PRIOR0
;
cntrl
.
hdr
.
response
.
route
=
RTESPEC
;
cntrl
.
hdr
.
response
.
mem
.
region
=
S_REG
;
cntrl
.
hdr
.
response
.
mem
.
pool
=
S_POOL
;
cntrl
.
t
.
cntrl
.
action
=
AMWENDPOPEN
;
cntrl
.
t
.
cntrl
.
s
.
suId
=
0
;
/* M2UA sct sap Id */
return
(
sng_cntrl_m2ua
(
&
pst
,
&
cntrl
));
}
static
S16
ftmod_sigtran_tsap_bnd
(
void
)
static
S16
ftmod_sigtran_tsap_bnd
(
void
)
{
{
...
...
src/mod/endpoints/mod_megaco/conf/megaco.conf.xml
浏览文件 @
d3c8429a
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<param
name=
"id"
value=
"1"
/>
<!-- /* equivalent to SSAP ID of MEGACO layer */-->
<param
name=
"id"
value=
"1"
/>
<!-- /* equivalent to SSAP ID of MEGACO layer */-->
<param
name=
"protocol"
value=
"MEGACO"
/>
<!-- /* Protocol Type , Supported values are MEGACO/MGCP */ -->
<param
name=
"protocol"
value=
"MEGACO"
/>
<!-- /* Protocol Type , Supported values are MEGACO/MGCP */ -->
<param
name=
"transportProfileId"
value=
"1"
/>
<!-- /* Link to transport layer configuration -->
<param
name=
"transportProfileId"
value=
"1"
/>
<!-- /* Link to transport layer configuration -->
<param
name=
"localIp"
value=
"
xxx-xxx-xx-xx
"
/>
<!-- /* Local node IP */ -->
<param
name=
"localIp"
value=
"
192.168.1.100
"
/>
<!-- /* Local node IP */ -->
<param
name=
"port"
value=
"2944"
/>
<!-- /* Port */ -->
<param
name=
"port"
value=
"2944"
/>
<!-- /* Port */ -->
<param
name=
"myDomainName"
value=
"mg.sangoma.com"
/>
<!--/* Local domain name */ -->
<param
name=
"myDomainName"
value=
"mg.sangoma.com"
/>
<!--/* Local domain name */ -->
<param
name=
"mid"
value=
"<lab.sangoma.com>"
/>
<!-- /* Message Identifier (MID) of MEGACO message */ -->
<param
name=
"mid"
value=
"<lab.sangoma.com>"
/>
<!-- /* Message Identifier (MID) of MEGACO message */ -->
<param
name=
"peerId"
value=
"1"
/>
<!--/* MGC Peer Configuration profile ID */-->
<param
name=
"peerId"
value=
"1"
/>
<!--/* MGC Peer Configuration profile ID */-->
<!--/*We can define multiple peer_ids depends on number of MGC per MG.
<!--/*We can define multiple peer_ids depends on number of MGC per MG.
MGC Priority - peer order can defines the priority or we can priority attribute in peer_id element..Not needed now..we can think later
MGC Priority - peer order can defines the priority or we can priority attribute in peer_id element..Not needed now..we can think later
...
@@ -35,10 +35,10 @@
...
@@ -35,10 +35,10 @@
<sng_mg_peer_interface
name=
"MG_PEER1"
>
<sng_mg_peer_interface
name=
"MG_PEER1"
>
<param
name=
"id"
value=
"1"
/>
<!-- /* Peer profile ID */-->
<param
name=
"id"
value=
"1"
/>
<!-- /* Peer profile ID */-->
<param
name=
"ip"
value=
"
xxx-xxx-xx-xx
"
/>
<!-- /* Peer node IP */ -->
<param
name=
"ip"
value=
"
192.168.1.101
"
/>
<!-- /* Peer node IP */ -->
<param
name=
"port"
value=
"2944"
/>
<!--/* peer port */ -->
<param
name=
"port"
value=
"2944"
/>
<!--/* peer port */ -->
<param
name=
"encodingScheme"
value=
"TEXT"
/>
<!--/* H.248 Encoding scheme TEXT/BINARY */ -->
<param
name=
"encodingScheme"
value=
"TEXT"
/>
<!--/* H.248 Encoding scheme TEXT/BINARY */ -->
<param
name=
"mid"
value=
"
remote.mgc.com
"
/>
<!-- /* Message Identifier (MID) of remote MGC MEGACO message */-->
<param
name=
"mid"
value=
"
<remote.mgc.com>
"
/>
<!-- /* Message Identifier (MID) of remote MGC MEGACO message */-->
</sng_mg_peer_interface>
</sng_mg_peer_interface>
</sng_mg_peer_interfaces>
</sng_mg_peer_interfaces>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论