Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
257bf9a4
提交
257bf9a4
authored
2月 02, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix possible bad pointer in global vars (please test)
上级
4ae8282e
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
3 行删除
+10
-3
mod_freetdm.c
libs/freetdm/mod_freetdm/mod_freetdm.c
+7
-0
mod_openzap.c
libs/openzap/mod_openzap/mod_openzap.c
+3
-3
没有找到文件。
libs/freetdm/mod_freetdm/mod_freetdm.c
浏览文件 @
257bf9a4
...
@@ -1067,9 +1067,16 @@ static const char* channel_get_variable(switch_core_session_t *session, switch_e
...
@@ -1067,9 +1067,16 @@ static const char* channel_get_variable(switch_core_session_t *session, switch_e
return
variable
;
return
variable
;
}
}
}
}
// This is unsafe, I don't see anywhere in the whole code where this is called with NULL session anyway.
// There is a new switch_core_get_variable_dup that will strdup it for you and then you must free it.
// That messes up the abstraction completely so I am just commenting it out for you.....
/*
if ((variable = switch_core_get_variable(variable_name))) {
if ((variable = switch_core_get_variable(variable_name))) {
return variable;
return variable;
}
}
*/
return
NULL
;
return
NULL
;
}
}
...
...
libs/openzap/mod_openzap/mod_openzap.c
浏览文件 @
257bf9a4
...
@@ -1234,19 +1234,19 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
...
@@ -1234,19 +1234,19 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
zap_set_string
(
caller_data
.
ani
.
digits
,
dest
);
zap_set_string
(
caller_data
.
ani
.
digits
,
dest
);
}
}
if
((
var
=
switch_event_get_header
(
var_event
,
"openzap_outbound_ton"
))
||
(
var
=
switch_core_get_variable
(
"openzap_outbound_ton"
))
)
{
if
((
var
=
switch_event_get_header
(
var_event
,
"openzap_outbound_ton"
)))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Setting TON to: %s
\n
"
,
var
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Setting TON to: %s
\n
"
,
var
);
zap_set_ton
(
var
,
&
caller_data
.
ani
.
type
);
zap_set_ton
(
var
,
&
caller_data
.
ani
.
type
);
}
else
{
}
else
{
caller_data
.
ani
.
type
=
outbound_profile
->
destination_number_ton
;
caller_data
.
ani
.
type
=
outbound_profile
->
destination_number_ton
;
}
}
if
((
var
=
switch_event_get_header
(
var_event
,
"openzap_custom_call_data"
))
||
(
var
=
switch_core_get_variable
(
"openzap_custom_call_data"
))
)
{
if
((
var
=
switch_event_get_header
(
var_event
,
"openzap_custom_call_data"
)))
{
zap_set_string
((
char
*
)
caller_data
.
raw_data
,
var
);
zap_set_string
((
char
*
)
caller_data
.
raw_data
,
var
);
caller_data
.
raw_data_len
=
strlen
(
var
);
caller_data
.
raw_data_len
=
strlen
(
var
);
}
}
if
((
var
=
switch_event_get_header
(
var_event
,
"openzap_outbound_npi"
))
||
(
var
=
switch_core_get_variable
(
"openzap_outbound_npi"
))
)
{
if
((
var
=
switch_event_get_header
(
var_event
,
"openzap_outbound_npi"
)))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Setting NPI to: %s
\n
"
,
var
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Setting NPI to: %s
\n
"
,
var
);
zap_set_npi
(
var
,
&
caller_data
.
ani
.
plan
);
zap_set_npi
(
var
,
&
caller_data
.
ani
.
plan
);
}
else
{
}
else
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论