Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a70192f2
提交
a70192f2
authored
9月 03, 2010
作者:
Moises Silva
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.freeswitch.org/freeswitch
上级
4fbef455
bb980fde
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
20 行删除
+24
-20
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+5
-4
skinny_protocol.c
src/mod/endpoints/mod_skinny/skinny_protocol.c
+3
-7
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+1
-0
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+13
-0
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+1
-8
switch_apr.c
src/switch_apr.c
+1
-1
没有找到文件。
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
a70192f2
...
...
@@ -1391,9 +1391,13 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
switch_assert
(
listener
!=
NULL
);
#if MOD_SKINNY_NONBLOCK
switch_socket_opt_set
(
listener
->
sock
,
SWITCH_SO_TCP_NODELAY
,
TRUE
);
switch_socket_opt_set
(
listener
->
sock
,
SWITCH_SO_NONBLOCK
,
TRUE
);
#else
switch_socket_opt_set
(
listener
->
sock
,
SWITCH_SO_NONBLOCK
,
FALSE
);
switch_socket_timeout_set
(
listener
->
sock
,
5000000
);
#endif
if
(
listener
->
profile
->
debug
>
0
)
{
if
(
zstr
(
listener
->
remote_ip
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Connection Open
\n
"
);
...
...
@@ -1402,7 +1406,6 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
}
}
switch_socket_opt_set
(
listener
->
sock
,
SWITCH_SO_NONBLOCK
,
TRUE
);
switch_set_flag_locked
(
listener
,
LFLAG_RUNNING
);
keepalive_listener
(
listener
,
NULL
);
add_listener
(
listener
);
...
...
@@ -1413,8 +1416,6 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
if
(
status
!=
SWITCH_STATUS_SUCCESS
)
{
switch
(
status
)
{
case
SWITCH_STATUS_BREAK
:
break
;
case
SWITCH_STATUS_TIMEOUT
:
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Communication Time Out with %s:%d.
\n
"
,
listener
->
remote_ip
,
listener
->
remote_port
);
...
...
src/mod/endpoints/mod_skinny/skinny_protocol.c
浏览文件 @
a70192f2
...
...
@@ -118,10 +118,6 @@ switch_status_t skinny_read_packet(listener_t *listener, skinny_message_t **req)
return
SWITCH_STATUS_MEMERR
;
}
if
(
!
listener_is_ready
(
listener
))
{
return
SWITCH_STATUS_BREAK
;
}
ptr
=
mbuf
;
while
(
listener_is_ready
(
listener
))
{
...
...
@@ -137,10 +133,10 @@ switch_status_t skinny_read_packet(listener_t *listener, skinny_message_t **req)
status
=
switch_socket_recv
(
listener
->
sock
,
ptr
,
&
mlen
);
if
(
!
listener_is_ready
(
listener
))
{
return
SWITCH_STATUS_BREAK
;
break
;
}
if
(
!
SWITCH_STATUS_IS_BREAK
(
status
)
&&
status
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Socket break
.
\n
"
);
if
(
(
status
!=
70007
/* APR_TIMEUP */
)
&&
!
SWITCH_STATUS_IS_BREAK
(
status
)
&&
(
status
!=
SWITCH_STATUS_SUCCESS
)
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Socket break
with status=%d.
\n
"
,
status
);
return
SWITCH_STATUS_FALSE
;
}
...
...
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
a70192f2
...
...
@@ -1007,3 +1007,4 @@ switch_t38_options_t *sofia_glue_extract_t38_options(switch_core_session_t *sess
char
*
sofia_glue_get_multipart
(
switch_core_session_t
*
session
,
const
char
*
prefix
,
const
char
*
sdp
,
char
**
mp_type
);
void
sofia_glue_tech_simplify
(
private_object_t
*
tech_pvt
);
switch_console_callback_match_t
*
sofia_reg_find_reg_url_multi
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
);
switch_bool_t
sofia_glue_profile_exists
(
const
char
*
key
);
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
a70192f2
...
...
@@ -4174,6 +4174,19 @@ switch_status_t sofia_glue_profile_rdlock__(const char *file, const char *func,
return
status
;
}
switch_bool_t
sofia_glue_profile_exists
(
const
char
*
key
)
{
switch_bool_t
tf
=
SWITCH_FALSE
;
switch_mutex_lock
(
mod_sofia_globals
.
hash_mutex
);
if
(
switch_core_hash_find
(
mod_sofia_globals
.
profile_hash
,
key
))
{
tf
=
SWITCH_TRUE
;
}
switch_mutex_unlock
(
mod_sofia_globals
.
hash_mutex
);
return
tf
;
}
sofia_profile_t
*
sofia_glue_find_profile__
(
const
char
*
file
,
const
char
*
func
,
int
line
,
const
char
*
key
)
{
sofia_profile_t
*
profile
;
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
a70192f2
...
...
@@ -1179,20 +1179,13 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
switch_find_local_ip
(
guess_ip4
,
sizeof
(
guess_ip4
),
NULL
,
AF_INET
);
if
(
profile
->
reg_db_domain
)
{
sofia_profile_t
*
xprofile
;
if
((
xprofile
=
sofia_glue_find_profile
(
to_host
)))
{
sofia_glue_release_profile
(
xprofile
);
}
else
{
if
(
!
sofia_glue_profile_exists
(
to_host
))
{
if
(
sofia_glue_add_profile
(
switch_core_strdup
(
profile
->
pool
,
to_host
),
profile
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"Auto-Adding Alias [%s] for profile [%s]
\n
"
,
to_host
,
profile
->
name
);
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Alias [%s] for profile [%s] (already exists)
\n
"
,
to_host
,
profile
->
name
);
}
}
}
...
...
src/switch_apr.c
浏览文件 @
a70192f2
...
...
@@ -574,7 +574,7 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu
while
(
apr_dir_read
(
&
(
thedir
->
finfo
),
finfo_flags
,
thedir
->
dir_handle
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
thedir
->
finfo
.
filetype
!=
APR_REG
)
{
if
(
thedir
->
finfo
.
filetype
!=
APR_REG
&&
thedir
->
finfo
.
filetype
!=
APR_LNK
)
{
continue
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论