Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f5b438bb
提交
f5b438bb
authored
5月 06, 2014
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of git.freeswitch.org:freeswitch
上级
68a3250a
f809d406
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
17 行删除
+30
-17
Makefile.am
Makefile.am
+8
-0
configure.ac
configure.ac
+6
-2
sofia_presence.c
src/mod/endpoints/mod_sofia/sofia_presence.c
+0
-4
switch_cpp.cpp
src/switch_cpp.cpp
+16
-11
没有找到文件。
Makefile.am
浏览文件 @
f5b438bb
...
...
@@ -61,6 +61,8 @@ sounds: sounds-en-us-callie-8000
sounds-install
:
sounds-en-us-callie-8000-install
sounds-ru
:
sounds-ru-RU-elena-8000
sounds-ru-install
:
sounds-ru-RU-elena-8000-install
sounds-fr
:
sounds-fr-ca-june-8000
sounds-fr-install
:
sounds-fr-ca-june-8000-install
moh
:
sounds-music-8000
moh-install
:
sounds-music-8000-install
...
...
@@ -68,6 +70,8 @@ hd-sounds: sounds sounds-en-us-callie-16000
hd-sounds-install
:
sounds-install sounds-en-us-callie-16000-install
hd-sounds-ru
:
sounds-ru sounds-ru-RU-elena-16000
hd-sounds-ru-install
:
sounds-ru-install sounds-ru-RU-elena-16000-install
hd-sounds-fr
:
sounds-fr-ca-june-16000
hd-sounds-fr-install
:
sounds-fr-ca-june-16000-install
hd-moh
:
moh sounds-music-16000
hd-moh-install
:
moh-install sounds-music-16000-install
...
...
@@ -75,6 +79,8 @@ uhd-sounds: hd-sounds sounds-en-us-callie-32000
uhd-sounds-install
:
hd-sounds-install sounds-en-us-callie-32000-install
uhd-sounds-ru
:
hd-sounds-ru sounds-ru-RU-elena-32000
uhd-sounds-ru-install
:
hd-sounds-ru-install sounds-ru-RU-elena-32000-install
uhd-sounds-fr
:
sounds-fr-ca-june-32000
uhd-sounds-fr-install
:
sounds-fr-ca-june-32000-install
uhd-moh
:
hd-moh sounds-music-32000
uhd-moh-install
:
hd-moh-install sounds-music-32000-install
...
...
@@ -82,6 +88,8 @@ cd-sounds: uhd-sounds sounds-en-us-callie-48000
cd-sounds-install
:
uhd-sounds-install sounds-en-us-callie-48000-install
cd-sounds-ru
:
uhd-sounds-ru sounds-ru-RU-elena-48000
cd-sounds-ru-install
:
uhd-sounds-ru-install sounds-ru-RU-elena-48000-install
cd-sounds-fr
:
sounds-fr-ca-june-48000
cd-sounds-fr-install
:
sounds-fr-ca-june-48000-install
cd-moh
:
uhd-moh sounds-music-48000
cd-moh-install
:
uhd-moh-install sounds-music-48000-install
...
...
configure.ac
浏览文件 @
f5b438bb
...
...
@@ -602,12 +602,16 @@ PLATFORM_CORE_LDFLAGS=
PLATFORM_CORE_LIBS=
path_remove () {
echo "$1" |
sed 's/:/\n/g' | grep -Fxv "$2" | tr '\n' ':' | sed 's/:$/\n
/'
echo "$1" |
tr ':' '\n' | grep -Fxv "$2" | tr '\n' ':' | sed 's/:$/
/'
}
path_push_unique () {
x="$(eval echo \$$1)"
x="$(path_remove "$x" "$2")"
eval export $1="$2:$x"
if test -z "$x"; then
eval export $1="$2"
else
eval export $1="$2:$x"
fi
}
# tweak platform specific flags
...
...
src/mod/endpoints/mod_sofia/sofia_presence.c
浏览文件 @
f5b438bb
...
...
@@ -2253,10 +2253,6 @@ static void _send_presence_notify(sofia_profile_t *profile,
if
(
dst
->
route_uri
)
{
route_uri
=
sofia_glue_strip_uri
(
dst
->
route_uri
);
}
else
{
if
(
remote_ip
&&
remote_port
)
{
route_uri
=
switch_mprintf
(
"sip:user@%s:%s;transport=%s"
,
remote_ip
,
remote_port
,
tp
);
}
}
if
(
expires
)
{
...
...
src/switch_cpp.cpp
浏览文件 @
f5b438bb
...
...
@@ -1348,19 +1348,24 @@ SWITCH_DECLARE(void) bridge(CoreSession &session_a, CoreSession &session_b)
SWITCH_DECLARE_NONSTD
(
switch_status_t
)
hanguphook
(
switch_core_session_t
*
session_hungup
)
{
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
session_hungup
);
CoreSession
*
coresession
=
NULL
;
switch_channel_state_t
state
=
switch_channel_get_state
(
channel
);
if
((
coresession
=
(
CoreSession
*
)
switch_channel_get_private
(
channel
,
"CoreSession"
)))
{
if
(
coresession
->
hook_state
!=
state
)
{
coresession
->
cause
=
switch_channel_get_cause
(
channel
);
coresession
->
hook_state
=
state
;
coresession
->
check_hangup_hook
();
if
(
session_hungup
)
{
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
session_hungup
);
CoreSession
*
coresession
=
NULL
;
switch_channel_state_t
state
=
switch_channel_get_state
(
channel
);
if
((
coresession
=
(
CoreSession
*
)
switch_channel_get_private
(
channel
,
"CoreSession"
)))
{
if
(
coresession
->
hook_state
!=
state
)
{
coresession
->
cause
=
switch_channel_get_cause
(
channel
);
coresession
->
hook_state
=
state
;
coresession
->
check_hangup_hook
();
}
}
}
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"hangup hook called with null session, something is horribly wrong
\n
"
);
return
SWITCH_STATUS_FALSE
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论