Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
56f415a1
提交
56f415a1
authored
5月 07, 2012
作者:
Giovanni Maruzzelli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
skypopen: mark chatmessages SEEN
上级
f7476320
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
2 行删除
+12
-2
skypopen_protocol.c
src/mod/endpoints/mod_skypopen/skypopen_protocol.c
+12
-2
没有找到文件。
src/mod/endpoints/mod_skypopen/skypopen_protocol.c
浏览文件 @
56f415a1
...
...
@@ -356,7 +356,7 @@ int skypopen_signaling_read(private_t *tech_pvt)
}
}
if
(
!
found
)
{
DEBUGA_SKYPE
(
"why we do not have a chats slot free? we have more than %d chats in parallel?
\n
"
,
SKYPOPEN_P_LOG
,
MAX_CHATS
);
ERRORA
(
"why we do not have a chats slot free? we have more than %d chats in parallel?
\n
"
,
SKYPOPEN_P_LOG
,
MAX_CHATS
);
}
DEBUGA_SKYPE
(
"CHAT %s is in position %d in the chats array, chatname=%s, dialog_partner=%s
\n
"
,
SKYPOPEN_P_LOG
,
id
,
i
,
...
...
@@ -378,6 +378,12 @@ int skypopen_signaling_read(private_t *tech_pvt)
skypopen_strncpy
(
prop
,
where
,
sizeof
(
prop
)
-
1
);
skypopen_strncpy
(
value
,
*
stringp
,
sizeof
(
value
)
-
1
);
if
(
!
tech_pvt
->
report_incoming_chatmessages
)
{
if
(
!
strcasecmp
(
prop
,
"STATUS"
)
&&
!
strcasecmp
(
value
,
"RECEIVED"
))
{
sprintf
(
msg_to_skype
,
"SET CHATMESSAGE %s SEEN"
,
id
);
skypopen_signaling_write
(
tech_pvt
,
msg_to_skype
);
}
}
else
{
if
(
!
strcasecmp
(
prop
,
"STATUS"
)
&&
!
strcasecmp
(
value
,
"RECEIVED"
))
{
DEBUGA_SKYPE
(
"RECEIVED CHATMESSAGE %s, let's see which type it is
\n
"
,
SKYPOPEN_P_LOG
,
id
);
sprintf
(
msg_to_skype
,
"GET CHATMESSAGE %s TYPE"
,
id
);
...
...
@@ -396,7 +402,7 @@ int skypopen_signaling_read(private_t *tech_pvt)
}
}
if
(
!
found
)
{
DEBUGA_SKYPE
(
"why we do not have a chatmessages slot free? we have more than %d chatmessages in parallel?
\n
"
,
SKYPOPEN_P_LOG
,
ERRORA
(
"why we do not have a chatmessages slot free? we have more than %d chatmessages in parallel?
\n
"
,
SKYPOPEN_P_LOG
,
MAX_CHATMESSAGES
);
}
else
{
DEBUGA_SKYPE
(
"CHATMESSAGE %s is in position %d in the chatmessages array, type=%s, id=%s
\n
"
,
SKYPOPEN_P_LOG
,
id
,
i
,
...
...
@@ -479,10 +485,14 @@ int skypopen_signaling_read(private_t *tech_pvt)
if
(
strcmp
(
tech_pvt
->
chatmessages
[
i
].
from_handle
,
tech_pvt
->
skype_user
))
{
//if the message was not sent by myself
incoming_chatmessage
(
tech_pvt
,
i
);
memset
(
&
tech_pvt
->
chatmessages
[
i
],
'\0'
,
sizeof
(
&
tech_pvt
->
chatmessages
[
i
]));
sprintf
(
msg_to_skype
,
"SET CHATMESSAGE %s SEEN"
,
id
);
skypopen_signaling_write
(
tech_pvt
,
msg_to_skype
);
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论