Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
819a2c13
提交
819a2c13
authored
9月 23, 2015
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8210 #resolve [mod_verto can be unloaded while it is in use]
上级
e1f93e40
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
2 行删除
+21
-2
mod_verto.c
src/mod/endpoints/mod_verto/mod_verto.c
+21
-2
没有找到文件。
src/mod/endpoints/mod_verto/mod_verto.c
浏览文件 @
819a2c13
...
...
@@ -2036,6 +2036,13 @@ static void untrack_pvt(verto_pvt_t *tech_pvt)
switch_thread_rwlock_unlock
(
globals
.
tech_rwlock
);
}
switch_endpoint_interface_t
*
verto_endpoint_interface
=
NULL
;
static
switch_status_t
verto_on_destroy
(
switch_core_session_t
*
session
)
{
UNPROTECT_INTERFACE
(
verto_endpoint_interface
);
return
SWITCH_STATUS_SUCCESS
;
}
static
switch_status_t
verto_on_hangup
(
switch_core_session_t
*
session
)
{
...
...
@@ -2244,7 +2251,7 @@ static switch_state_handler_table_t verto_state_handlers = {
/*.on_reset */
NULL
,
/*.on_park */
NULL
,
/*.on_reporting */
NULL
,
/*.on_destroy */
NULL
,
/*.on_destroy */
verto_on_destroy
,
SSH_FLAG_STICKY
};
...
...
@@ -2478,11 +2485,13 @@ static int verto_recover_callback(switch_core_session_t *session)
const
char
*
profile_name
=
NULL
,
*
jsock_uuid_str
=
NULL
;
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
session
);
PROTECT_INTERFACE
(
verto_endpoint_interface
);
profile_name
=
switch_channel_get_variable
(
channel
,
"verto_profile_name"
);
jsock_uuid_str
=
switch_channel_get_variable
(
channel
,
"jsock_uuid_str"
);
if
(
!
(
profile_name
&&
jsock_uuid_str
&&
(
profile
=
find_profile
(
profile_name
))))
{
UNPROTECT_INTERFACE
(
verto_endpoint_interface
);
return
0
;
}
...
...
@@ -3297,6 +3306,8 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
}
switch_event_add_header_string
(
var_event
,
SWITCH_STACK_BOTTOM
,
"origination_uuid"
,
call_id
);
PROTECT_INTERFACE
(
verto_endpoint_interface
);
if
((
reason
=
switch_core_session_outgoing_channel
(
NULL
,
var_event
,
"rtc"
,
NULL
,
&
session
,
NULL
,
SOF_NONE
,
&
cancel_cause
))
!=
SWITCH_CAUSE_SUCCESS
)
{
cJSON_AddItemToObject
(
obj
,
"message"
,
cJSON_CreateString
(
"Cannot create channel"
));
...
...
@@ -3456,6 +3467,8 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
return
SWITCH_TRUE
;
}
UNPROTECT_INTERFACE
(
verto_endpoint_interface
);
if
(
session
)
{
switch_core_session_destroy
(
&
session
);
}
...
...
@@ -4848,7 +4861,7 @@ static void run_profiles(void)
//// ENDPOINT
switch_endpoint_interface_t
*
verto_endpoint_interface
;
static
switch_call_cause_t
verto_outgoing_channel
(
switch_core_session_t
*
session
,
switch_event_t
*
var_event
,
switch_caller_profile_t
*
outbound_profile
,
...
...
@@ -4935,6 +4948,8 @@ static switch_call_cause_t verto_outgoing_channel(switch_core_session_t *session
switch_call_cause_t
cause
=
SWITCH_CAUSE_CHANNEL_UNACCEPTABLE
;
char
*
dest
=
NULL
;
PROTECT_INTERFACE
(
verto_endpoint_interface
);
if
(
!
zstr
(
outbound_profile
->
destination_number
))
{
dest
=
strdup
(
outbound_profile
->
destination_number
);
}
...
...
@@ -5041,6 +5056,10 @@ static switch_call_cause_t verto_outgoing_channel(switch_core_session_t *session
end
:
if
(
cause
!=
SWITCH_CAUSE_SUCCESS
)
{
UNPROTECT_INTERFACE
(
verto_endpoint_interface
);
}
switch_safe_free
(
dest
);
return
cause
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论