Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
13186317
提交
13186317
authored
2月 15, 2008
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@7643
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
cf73fe0a
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
88 行增加
和
88 行删除
+88
-88
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+2
-2
mod_dptools.c
src/mod/applications/mod_dptools/mod_dptools.c
+1
-1
mod_expr.c
src/mod/applications/mod_expr/mod_expr.c
+12
-12
mod_voicemail.c
src/mod/applications/mod_voicemail/mod_voicemail.c
+8
-8
mod_openmrcp.c
src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c
+24
-24
mod_wanpipe.c
src/mod/endpoints/mod_wanpipe/mod_wanpipe.c
+4
-4
mod_radius_cdr.c
src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c
+37
-37
没有找到文件。
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
13186317
...
...
@@ -555,11 +555,11 @@ static switch_status_t conference_add_member(conference_obj_t * conference, conf
}
if
(
conference
->
count
>
1
)
{
if
(
conference
->
moh_sound
)
{
if
(
conference
->
moh_sound
)
{
/* stop MoH if any */
conference_stop_file
(
conference
,
FILE_STOP_ASYNC
);
}
if
(
conference
->
enter_sound
)
{
if
(
conference
->
enter_sound
)
{
conference_play_file
(
conference
,
conference
->
enter_sound
,
CONF_DEFAULT_LEADIN
,
switch_core_session_get_channel
(
member
->
session
),
1
);
}
}
...
...
src/mod/applications/mod_dptools/mod_dptools.c
浏览文件 @
13186317
...
...
@@ -877,7 +877,7 @@ SWITCH_STANDARD_APP(fax_detect_session_function)
SWITCH_STANDARD_APP
(
system_session_function
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"Executing command: %s
\n
"
,
data
);
if
(
!
system
(
data
))
{
if
(
!
system
(
data
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"Failed to execute command: %s
\n
"
,
data
);
}
}
...
...
src/mod/applications/mod_expr/mod_expr.c
浏览文件 @
13186317
...
...
@@ -82,43 +82,43 @@ SWITCH_STANDARD_API(expr_function)
/* Create function list */
err
=
exprFuncListCreate
(
&
f
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Init function list with internal functions */
err
=
exprFuncListInit
(
f
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Add custom function */
//err = exprFuncListAdd(f, my_func, "myfunc", 1, 1, 1, 1);
//if(err != EXPR_ERROR_NOERROR)
//if
(err != EXPR_ERROR_NOERROR)
//goto error;
/* Create constant list */
err
=
exprValListCreate
(
&
c
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Init constant list with internal constants */
err
=
exprValListInit
(
c
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Create variable list */
err
=
exprValListCreate
(
&
v
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Create expression object */
err
=
exprCreate
(
&
e
,
f
,
v
,
c
,
breaker
,
NULL
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Parse expression */
err
=
exprParse
(
e
,
(
char
*
)
expr
);
if
(
err
!=
EXPR_ERROR_NOERROR
)
if
(
err
!=
EXPR_ERROR_NOERROR
)
goto
error
;
/* Enable soft errors */
...
...
@@ -153,19 +153,19 @@ SWITCH_STANDARD_API(expr_function)
done
:
/* Do cleanup */
if
(
e
)
{
if
(
e
)
{
exprFree
(
e
);
}
if
(
f
)
{
if
(
f
)
{
exprFuncListFree
(
f
);
}
if
(
v
)
{
if
(
v
)
{
exprValListFree
(
v
);
}
if
(
c
)
{
if
(
c
)
{
exprValListFree
(
c
);
}
...
...
src/mod/applications/mod_voicemail/mod_voicemail.c
浏览文件 @
13186317
...
...
@@ -1046,7 +1046,7 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t
switch_file_handle_t
fh
=
{
0
};
cc_t
cc
=
{
0
};
if
(
switch_channel_ready
(
channel
))
{
if
(
switch_channel_ready
(
channel
))
{
args
.
input_callback
=
cancel_on_dtmf
;
...
...
@@ -1160,13 +1160,13 @@ play_file:
switch_channel_set_variable
(
channel
,
"voicemail_message_len"
,
duration_str
);
switch_channel_set_variable
(
channel
,
"voicemail_email"
,
cbt
->
email
);
if
(
switch_strlen_zero
(
profile
->
email_headers
))
{
if
(
switch_strlen_zero
(
profile
->
email_headers
))
{
from
=
switch_core_session_sprintf
(
session
,
"%s@%s"
,
cbt
->
user
,
cbt
->
domain
);
}
else
{
from
=
switch_channel_expand_variables
(
channel
,
profile
->
email_from
);
}
if
(
switch_strlen_zero
(
profile
->
email_headers
))
{
if
(
switch_strlen_zero
(
profile
->
email_headers
))
{
headers
=
switch_core_session_sprintf
(
session
,
"From: FreeSWITCH mod_voicemail <%s@%s>
\n
Subject: Voicemail from %s %s
\n
X-Priority: %d"
,
cbt
->
user
,
cbt
->
domain
,
cbt
->
cid_name
,
cbt
->
cid_number
,
priority
);
...
...
@@ -1617,7 +1617,7 @@ case VM_CHECK_AUTH:
if
(
auth
||
!
thepass
||
(
thepass
&&
mypass
&&
!
strcmp
(
thepass
,
mypass
)))
{
if
(
!
dir_path
)
{
if
(
switch_strlen_zero
(
profile
->
storage_dir
))
{
if
(
switch_strlen_zero
(
profile
->
storage_dir
))
{
dir_path
=
switch_core_session_sprintf
(
session
,
"%s%svoicemail%s%s%s%s%s%s"
,
SWITCH_GLOBAL_dirs
.
storage_dir
,
SWITCH_PATH_SEPARATOR
,
SWITCH_PATH_SEPARATOR
,
...
...
@@ -1710,7 +1710,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons
return
SWITCH_STATUS_FALSE
;
}
if
(
switch_strlen_zero
(
profile
->
storage_dir
))
{
if
(
switch_strlen_zero
(
profile
->
storage_dir
))
{
dir_path
=
switch_core_session_sprintf
(
session
,
"%s%svoicemail%s%s%s%s%s%s"
,
SWITCH_GLOBAL_dirs
.
storage_dir
,
SWITCH_PATH_SEPARATOR
,
SWITCH_PATH_SEPARATOR
,
...
...
@@ -1819,14 +1819,14 @@ greet:
if
(
*
buf
!=
'\0'
)
{
if
(
!
strcasecmp
(
buf
,
profile
->
main_menu_key
))
{
voicemail_check_main
(
session
,
profile_name
,
domain_name
,
id
,
0
);
}
else
if
(
!
strcasecmp
(
buf
,
profile
->
operator_key
)
&&
!
switch_strlen_zero
(
profile
->
operator_key
))
{
}
else
if
(
!
strcasecmp
(
buf
,
profile
->
operator_key
)
&&
!
switch_strlen_zero
(
profile
->
operator_key
))
{
int
argc
;
char
*
argv
[
4
];
char
*
mycmd
;
if
(
!
switch_strlen_zero
(
profile
->
operator_ext
)
&&
(
mycmd
=
switch_core_session_strdup
(
session
,
profile
->
operator_ext
)))
{
argc
=
switch_separate_string
(
mycmd
,
' '
,
argv
,
(
sizeof
(
argv
)
/
sizeof
(
argv
[
0
])));
if
(
argc
>=
1
&&
argc
<=
4
)
{
if
(
argc
>=
1
&&
argc
<=
4
)
{
switch_ivr_session_transfer
(
session
,
argv
[
0
],
argv
[
1
],
argv
[
2
]);
/* the application still runs after we leave it so we need to make sure that we dont do anything evil */
send_mail
=
0
;
...
...
@@ -1877,7 +1877,7 @@ greet:
}
}
if
(
!
send_mail
&&
switch_file_exists
(
file_path
,
switch_core_session_get_pool
(
session
))
==
SWITCH_STATUS_SUCCESS
)
{
if
(
!
send_mail
&&
switch_file_exists
(
file_path
,
switch_core_session_get_pool
(
session
))
==
SWITCH_STATUS_SUCCESS
)
{
char
*
usql
;
switch_event_t
*
event
;
char
*
mwi_id
=
NULL
;
...
...
src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c
浏览文件 @
13186317
...
...
@@ -114,12 +114,12 @@ static openmrcp_session_t* openmrcp_session_create(openmrcp_profile_t *profile)
openmrcp_session_t
*
openmrcp_session
;
apr_pool_t
*
session_pool
;
if
(
!
profile
)
{
if
(
!
profile
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"no profile specified
\n
"
);
return
NULL
;
}
if
(
apr_pool_create
(
&
session_pool
,
NULL
)
!=
APR_SUCCESS
)
{
if
(
apr_pool_create
(
&
session_pool
,
NULL
)
!=
APR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"failed to create session_pool
\n
"
);
return
NULL
;
}
...
...
@@ -150,7 +150,7 @@ static openmrcp_session_t* openmrcp_session_create(openmrcp_profile_t *profile)
static
void
openmrcp_session_destroy
(
openmrcp_session_t
*
openmrcp_session
)
{
if
(
openmrcp_session
&&
openmrcp_session
->
pool
)
{
if
(
openmrcp_session
&&
openmrcp_session
->
pool
)
{
mrcp_client_context_session_destroy
(
openmrcp_session
->
profile
->
mrcp_context
,
openmrcp_session
->
client_session
);
apr_pool_destroy
(
openmrcp_session
->
pool
);
}
...
...
@@ -166,7 +166,7 @@ static mrcp_status_t openmrcp_on_session_terminate(mrcp_client_context_t *contex
{
openmrcp_session_t
*
openmrcp_session
=
mrcp_client_context_session_object_get
(
session
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"on_session_terminate called
\n
"
);
if
(
!
openmrcp_session
)
{
if
(
!
openmrcp_session
)
{
return
MRCP_STATUS_FAILURE
;
}
...
...
@@ -183,7 +183,7 @@ static mrcp_status_t openmrcp_on_channel_add(mrcp_client_context_t *context, mrc
{
openmrcp_session_t
*
openmrcp_session
=
mrcp_client_context_session_object_get
(
session
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"on_channel_add called
\n
"
);
if
(
!
openmrcp_session
)
{
if
(
!
openmrcp_session
)
{
return
MRCP_STATUS_FAILURE
;
}
switch_mutex_lock
(
openmrcp_session
->
flag_mutex
);
...
...
@@ -245,7 +245,7 @@ static mrcp_status_t openmrcp_recog_start(mrcp_client_context_t *context, openmr
mrcp_message_t
*
mrcp_message
=
mrcp_client_context_message_get
(
context
,
asr_session
->
client_session
,
asr_session
->
control_channel
,
RECOGNIZER_RECOGNIZE
);
if
(
!
mrcp_message
)
{
if
(
!
mrcp_message
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Could not create mrcp msg
\n
"
);
return
MRCP_STATUS_FAILURE
;
}
...
...
@@ -264,7 +264,7 @@ static mrcp_status_t openmrcp_recog_start(mrcp_client_context_t *context, openmr
buf1
[
bytes2read
]
=
'\0'
;
generic_header
=
mrcp_generic_header_prepare
(
mrcp_message
);
if
(
!
generic_header
)
{
if
(
!
generic_header
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Could not prepare generic_header
\n
"
);
return
MRCP_STATUS_FAILURE
;
}
...
...
@@ -336,11 +336,11 @@ static switch_status_t openmrcp_asr_open(switch_asr_handle_t *ah,
switch_mutex_lock
(
asr_session
->
flag_mutex
);
mrcp_client_context_channel_add
(
asr_session
->
profile
->
mrcp_context
,
asr_session
->
client_session
,
asr_channel
,
NULL
);
if
(
switch_thread_cond_timedwait
(
asr_session
->
wait_object
,
asr_session
->
flag_mutex
,
5000
*
1000
)
!=
APR_SUCCESS
)
{
if
(
switch_thread_cond_timedwait
(
asr_session
->
wait_object
,
asr_session
->
flag_mutex
,
5000
*
1000
)
!=
APR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"No response from client stack
\n
"
);
}
switch_mutex_unlock
(
asr_session
->
flag_mutex
);
if
(
!
asr_session
->
control_channel
)
{
if
(
!
asr_session
->
control_channel
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"No recognizer channel available
\n
"
);
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -404,7 +404,7 @@ static switch_status_t openmrcp_asr_feed(switch_asr_handle_t *ah, void *data, un
len
-=
(
unsigned
int
)
media_frame
.
codec_frame
.
size
;
media_frame
.
codec_frame
.
buffer
=
(
char
*
)
media_frame
.
codec_frame
.
buffer
+
media_frame
.
codec_frame
.
size
;
}
if
(
len
>
0
)
{
if
(
len
>
0
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"None frame alligned data len [%d]
\n
"
,
len
);
}
return
SWITCH_STATUS_SUCCESS
;
...
...
@@ -514,7 +514,7 @@ static switch_status_t openmrcp_asr_get_results(switch_asr_handle_t *ah, char **
</result>
*/
if
(
message
->
body
)
{
if
(
message
->
body
)
{
char
*
marker
=
"?>"
;
// FIXME -- lame and brittle way of doing this. use regex or better.
char
*
position
=
strstr
(
message
->
body
,
marker
);
if
(
!
position
)
{
...
...
@@ -577,12 +577,12 @@ static mrcp_status_t synth_speak(mrcp_client_context_t *context, openmrcp_sessio
text2speak
=
switch_core_sprintf
(
tts_session
->
pool
,
"%s%s%s"
,
xml_head
,
text
,
xml_tail
);
mrcp_message
=
mrcp_client_context_message_get
(
context
,
tts_session
->
client_session
,
tts_session
->
control_channel
,
SYNTHESIZER_SPEAK
);
if
(
!
mrcp_message
)
{
if
(
!
mrcp_message
)
{
goto
end
;
}
generic_header
=
mrcp_generic_header_prepare
(
mrcp_message
);
if
(
!
generic_header
)
{
if
(
!
generic_header
)
{
goto
end
;
}
...
...
@@ -601,7 +601,7 @@ static mrcp_status_t synth_speak(mrcp_client_context_t *context, openmrcp_sessio
static
mrcp_status_t
synth_stop
(
mrcp_client_context_t
*
context
,
openmrcp_session_t
*
tts_session
)
{
mrcp_message_t
*
mrcp_message
=
mrcp_client_context_message_get
(
context
,
tts_session
->
client_session
,
tts_session
->
control_channel
,
SYNTHESIZER_STOP
);
if
(
!
mrcp_message
)
{
if
(
!
mrcp_message
)
{
return
MRCP_STATUS_FAILURE
;
}
...
...
@@ -642,11 +642,11 @@ static switch_status_t openmrcp_tts_open(switch_speech_handle_t *sh, const char
}
switch_mutex_lock
(
tts_session
->
flag_mutex
);
mrcp_client_context_channel_add
(
tts_session
->
profile
->
mrcp_context
,
tts_session
->
client_session
,
tts_channel
,
NULL
);
if
(
switch_thread_cond_timedwait
(
tts_session
->
wait_object
,
tts_session
->
flag_mutex
,
5000
*
1000
)
!=
APR_SUCCESS
)
{
if
(
switch_thread_cond_timedwait
(
tts_session
->
wait_object
,
tts_session
->
flag_mutex
,
5000
*
1000
)
!=
APR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"No response from client stack
\n
"
);
}
switch_mutex_unlock
(
tts_session
->
flag_mutex
);
if
(
!
tts_session
->
control_channel
)
{
if
(
!
tts_session
->
control_channel
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"No synthesizer channel available
\n
"
);
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -673,7 +673,7 @@ static switch_status_t openmrcp_feed_tts(switch_speech_handle_t *sh, char *text,
openmrcp_session_t
*
tts_session
=
(
openmrcp_session_t
*
)
sh
->
private_info
;
mrcp_client_context_t
*
context
=
tts_session
->
profile
->
mrcp_context
;
if
(
!
tts_session
->
control_channel
)
{
if
(
!
tts_session
->
control_channel
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"no synthesizer channel too feed tts
\n
"
);
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -719,13 +719,13 @@ static switch_status_t openmrcp_read_tts(switch_speech_handle_t *sh, void *data,
}
audio_source
=
mrcp_client_audio_source_get
(
tts_session
->
audio_channel
);
if
(
!
audio_source
)
{
if
(
!
audio_source
)
{
return
SWITCH_STATUS_BREAK
;
}
if
(
!
switch_test_flag
(
tts_session
,
FLAG_FEED_STARTED
))
{
switch_set_flag
(
tts_session
,
FLAG_FEED_STARTED
);
// shouldn't this use set_flag_locked? -tl
if
(
audio_source
->
method_set
->
open
)
{
if
(
audio_source
->
method_set
->
open
)
{
audio_source
->
method_set
->
open
(
audio_source
);
}
}
...
...
@@ -736,7 +736,7 @@ static switch_status_t openmrcp_read_tts(switch_speech_handle_t *sh, void *data,
while
(
return_len
<
*
datalen
)
{
media_frame
.
codec_frame
.
buffer
=
(
char
*
)
data
+
return_len
;
audio_source
->
method_set
->
read_frame
(
audio_source
,
&
media_frame
);
if
(
media_frame
.
type
!=
MEDIA_FRAME_TYPE_AUDIO
)
{
if
(
media_frame
.
type
!=
MEDIA_FRAME_TYPE_AUDIO
)
{
memset
(
media_frame
.
codec_frame
.
buffer
,
0
,
media_frame
.
codec_frame
.
size
);
}
return_len
+=
media_frame
.
codec_frame
.
size
;
...
...
@@ -808,7 +808,7 @@ static switch_status_t do_config()
mrcp_profile
->
mrcp_client
=
NULL
;
mrcp_profile
->
mrcp_context
=
NULL
;
mrcp_profile
->
name
=
"noname"
;
if
(
profile_name
)
{
if
(
profile_name
)
{
mrcp_profile
->
name
=
switch_core_strdup
(
openmrcp_module
.
pool
,
profile_name
);
}
...
...
@@ -838,7 +838,7 @@ static switch_status_t do_config()
/* add profile */
if
(
!
switch_core_hash_find
(
openmrcp_module
.
profile_hash
,
mrcp_profile
->
name
))
{
if
(
openmrcp_profile_run
(
mrcp_profile
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
openmrcp_profile_run
(
mrcp_profile
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_core_hash_insert
(
openmrcp_module
.
profile_hash
,
mrcp_profile
->
name
,
mrcp_profile
);
}
}
...
...
@@ -880,7 +880,7 @@ static switch_status_t openmrcp_profile_run(openmrcp_profile_t *profile)
// create client context, which must be passed to client engine
mrcp_context
=
mrcp_client_context_create
(
&
openmrcp_module
,
mrcp_event_handler
);
if
(
!
mrcp_context
)
{
if
(
!
mrcp_context
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"mrcp_client_context creation failed
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
...
...
@@ -889,7 +889,7 @@ static switch_status_t openmrcp_profile_run(openmrcp_profile_t *profile)
// this basically starts a thread that pulls events from the event queue
// and handles them
mrcp_client
=
openmrcp_client_start
(
profile
->
mrcp_options
,
mrcp_context
);
if
(
!
mrcp_client
)
{
if
(
!
mrcp_client
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"openmrcp_client_start FAILED
\n
"
);
mrcp_client_context_destroy
(
mrcp_context
);
return
SWITCH_STATUS_GENERR
;
...
...
src/mod/endpoints/mod_wanpipe/mod_wanpipe.c
浏览文件 @
13186317
...
...
@@ -809,7 +809,7 @@ static switch_status_t wanpipe_read_frame(switch_core_session_t *session, switch
teletone_dtmf_detect
(
&
tech_pvt
->
dtmf_detect
,
tech_pvt
->
read_frame
.
data
,
tech_pvt
->
read_frame
.
samples
);
teletone_dtmf_get
(
&
tech_pvt
->
dtmf_detect
,
digit_str
,
sizeof
(
digit_str
));
if
(
digit_str
[
0
])
{
if
(
digit_str
[
0
])
{
char
*
p
=
digit_str
;
switch_dtmf_t
dtmf
=
{
0
,
globals
.
dtmf_on
};
while
(
p
&&
*
p
)
{
...
...
@@ -1141,7 +1141,7 @@ static switch_call_cause_t wanpipe_outgoing_channel(switch_core_session_t *sessi
if
(
is_raw
)
{
int
chan
,
span
;
if
(
sangoma_span_chan_fromif
(
bchan
,
&
span
,
&
chan
))
{
if
(
sangoma_span_chan_fromif
(
bchan
,
&
span
,
&
chan
))
{
if
(
!
(
tech_pvt
->
wpsock
=
wp_open
(
span
,
chan
)))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Can't open fd for s%dc%d! [%s]
\n
"
,
span
,
chan
,
strerror
(
errno
));
switch_core_session_destroy
(
new_session
);
...
...
@@ -1744,7 +1744,7 @@ static int waitfor_socket(int fd, int timeout, int flags)
res
=
poll
(
pfds
,
1
,
timeout
);
if
(
res
>
0
)
{
if
(
pfds
[
0
].
revents
&
POLLIN
)
{
if
(
pfds
[
0
].
revents
&
POLLIN
)
{
res
=
1
;
}
else
if
((
pfds
[
0
].
revents
&
POLLERR
))
{
res
=
-
1
;
...
...
@@ -2314,7 +2314,7 @@ static switch_status_t config_wanpipe(int reload)
continue
;
}
if
(
!
sangoma_span_chan_fromif
(
c_dev
,
&
span
,
&
chan
))
{
if
(
!
sangoma_span_chan_fromif
(
c_dev
,
&
span
,
&
chan
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Invalid device name '%s'
\n
"
,
c_dev
);
continue
;
}
...
...
src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c
浏览文件 @
13186317
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论