Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a1f9cc1e
提交
a1f9cc1e
authored
5月 20, 2010
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: pass remote session to ring_lines because BOND is not set yet
上级
9d456900
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
11 行删除
+14
-11
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+1
-1
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+12
-9
skinny_server.h
src/mod/endpoints/mod_skinny/skinny_server.h
+1
-1
没有找到文件。
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
a1f9cc1e
...
...
@@ -1043,7 +1043,7 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
switch_safe_free
(
sql
);
}
cause
=
skinny_ring_lines
(
tech_pvt
);
cause
=
skinny_ring_lines
(
tech_pvt
,
session
);
if
(
cause
!=
SWITCH_CAUSE_SUCCESS
)
{
goto
error
;
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
a1f9cc1e
...
...
@@ -418,6 +418,7 @@ switch_status_t skinny_session_send_call_info_all(switch_core_session_t *session
struct
skinny_ring_lines_helper
{
private_t
*
tech_pvt
;
switch_core_session_t
*
remote_session
;
uint32_t
lines_count
;
};
...
...
@@ -450,21 +451,22 @@ int skinny_ring_lines_callback(void *pArg, int argc, char **argv, char **columnN
device_name
,
device_instance
,
&
listener
);
if
(
listener
)
{
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
helper
->
tech_pvt
->
session
);
const
char
*
remote_uuid
;
switch_core_session_t
*
remote_session
;
helper
->
lines_count
++
;
switch_channel_set_variable
(
channel
,
"effective_callee_id_number"
,
value
);
switch_channel_set_variable
(
channel
,
"effective_callee_id_name"
,
caller_name
);
if
(
(
remote_uuid
=
switch_channel_get_variable
(
channel
,
SWITCH_SIGNAL_BOND_VARIABLE
))
&&
(
remote_session
=
switch_core_session_locate
(
remote_uuid
))
)
{
if
(
helper
->
remote_session
)
{
switch_core_session_message_t
*
msg
;
msg
=
switch_core_session_alloc
(
remote_session
,
sizeof
(
*
msg
));
msg
=
switch_core_session_alloc
(
helper
->
remote_session
,
sizeof
(
*
msg
));
MESSAGE_STAMP_FFL
(
msg
);
msg
->
message_id
=
SWITCH_MESSAGE_INDICATE_DISPLAY
;
msg
->
string_array_arg
[
0
]
=
switch_core_session_strdup
(
remote_session
,
caller_name
);
msg
->
string_array_arg
[
1
]
=
switch_core_session_strdup
(
remote_session
,
value
);
msg
->
string_array_arg
[
0
]
=
switch_core_session_strdup
(
helper
->
remote_session
,
caller_name
);
msg
->
string_array_arg
[
1
]
=
switch_core_session_strdup
(
helper
->
remote_session
,
value
);
msg
->
from
=
__FILE__
;
switch_core_session_queue_message
(
remote_session
,
msg
);
switch_core_session_rwunlock
(
remote_session
);
if
(
switch_core_session_queue_message
(
helper
->
remote_session
,
msg
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
helper
->
tech_pvt
->
session
),
SWITCH_LOG_WARNING
,
"Unable to send SWITCH_MESSAGE_INDICATE_DISPLAY message to channel %s
\n
"
,
switch_core_session_get_uuid
(
helper
->
remote_session
));
}
}
skinny_line_set_state
(
listener
,
line_instance
,
helper
->
tech_pvt
->
call_id
,
SKINNY_RING_IN
);
...
...
@@ -484,7 +486,7 @@ int skinny_ring_lines_callback(void *pArg, int argc, char **argv, char **columnN
return
0
;
}
switch_call_cause_t
skinny_ring_lines
(
private_t
*
tech_pvt
)
switch_call_cause_t
skinny_ring_lines
(
private_t
*
tech_pvt
,
switch_core_session_t
*
remote_session
)
{
switch_status_t
status
;
struct
skinny_ring_lines_helper
helper
=
{
0
};
...
...
@@ -494,6 +496,7 @@ switch_call_cause_t skinny_ring_lines(private_t *tech_pvt)
switch_assert
(
tech_pvt
->
session
);
helper
.
tech_pvt
=
tech_pvt
;
helper
.
remote_session
=
remote_session
;
helper
.
lines_count
=
0
;
status
=
skinny_session_walk_lines
(
tech_pvt
->
profile
,
...
...
src/mod/endpoints/mod_skinny/skinny_server.h
浏览文件 @
a1f9cc1e
...
...
@@ -40,7 +40,7 @@ skinny_action_t skinny_session_dest_match_pattern(switch_core_session_t *session
switch_status_t
skinny_session_process_dest
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
,
char
*
dest
,
char
append_dest
,
uint32_t
backspace
);
switch_status_t
skinny_session_send_call_info
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_send_call_info_all
(
switch_core_session_t
*
session
);
switch_call_cause_t
skinny_ring_lines
(
private_t
*
tech_pvt
);
switch_call_cause_t
skinny_ring_lines
(
private_t
*
tech_pvt
,
switch_core_session_t
*
remote_session
);
switch_status_t
skinny_session_ring_out
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_answer
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_start_media
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论