Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
9733740c
提交
9733740c
authored
2月 15, 2013
作者:
Raymond Chandler
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of fs-git:freeswitch
上级
660fd495
1a3a11fa
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
36 行增加
和
24 行删除
+36
-24
phrase_en.xml
docs/phrase/phrase_en.xml
+3
-1
mod_httapi.c
src/mod/applications/mod_httapi/mod_httapi.c
+2
-0
mod_skypopen.c
src/mod/endpoints/mod_skypopen/mod_skypopen.c
+28
-22
switch_loadable_module.c
src/switch_loadable_module.c
+2
-0
switch_rtp.c
src/switch_rtp.c
+1
-1
没有找到文件。
docs/phrase/phrase_en.xml
浏览文件 @
9733740c
...
@@ -624,8 +624,10 @@
...
@@ -624,8 +624,10 @@
<prompt
phrase=
"Nothing."
filename=
"ivr-nothing.wav"
/>
<prompt
phrase=
"Nothing."
filename=
"ivr-nothing.wav"
/>
<prompt
phrase=
"To skip..."
filename=
"ivr-to_skip.wav"
/>
<prompt
phrase=
"To skip..."
filename=
"ivr-to_skip.wav"
/>
<!-- The following phrases still need to be recorded -->
<!-- The following phrases still need to be recorded -->
<prompt
phrase=
"Please hold while we conn
ce
t you to a live operator."
filename=
"ivr_connect_live_operator.wav"
/>
<prompt
phrase=
"Please hold while we conn
ec
t you to a live operator."
filename=
"ivr_connect_live_operator.wav"
/>
<prompt
phrase=
"Please hold while we connect you to an actual human being."
filename=
"ivr-connect_actual_human_being.wav"
/>
<prompt
phrase=
"Please hold while we connect you to an actual human being."
filename=
"ivr-connect_actual_human_being.wav"
/>
<prompt
phrase=
"The system is going down for maintenance."
filename=
"ivr-system_down_for_maintenance.wav"
/>
<prompt
phrase=
"The system will be back up in approximately..."
filename=
"ivr-system_back_up_in_approximately.wav"
/>
<prompt
phrase=
""
filename=
""
/>
<prompt
phrase=
""
filename=
""
/>
</ivr>
</ivr>
...
...
src/mod/applications/mod_httapi/mod_httapi.c
浏览文件 @
9733740c
...
@@ -1607,6 +1607,8 @@ static switch_status_t httapi_sync(client_t *client)
...
@@ -1607,6 +1607,8 @@ static switch_status_t httapi_sync(client_t *client)
if
(
client
->
profile
->
cookie_file
)
{
if
(
client
->
profile
->
cookie_file
)
{
switch_curl_easy_setopt
(
curl_handle
,
CURLOPT_COOKIEJAR
,
client
->
profile
->
cookie_file
);
switch_curl_easy_setopt
(
curl_handle
,
CURLOPT_COOKIEJAR
,
client
->
profile
->
cookie_file
);
switch_curl_easy_setopt
(
curl_handle
,
CURLOPT_COOKIEFILE
,
client
->
profile
->
cookie_file
);
switch_curl_easy_setopt
(
curl_handle
,
CURLOPT_COOKIEFILE
,
client
->
profile
->
cookie_file
);
}
else
{
switch_curl_easy_setopt
(
curl_handle
,
CURLOPT_COOKIE
,
""
);
}
}
if
(
client
->
profile
->
bind_local
)
{
if
(
client
->
profile
->
bind_local
)
{
...
...
src/mod/endpoints/mod_skypopen/mod_skypopen.c
浏览文件 @
9733740c
...
@@ -2029,34 +2029,40 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_skypopen_load)
...
@@ -2029,34 +2029,40 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_skypopen_load)
#endif
#endif
running
=
1
;
running
=
1
;
load_config
(
FULL_RELOAD
);
*
module_interface
=
switch_loadable_module_create_module_interface
(
pool
,
modname
);
if
(
load_config
(
FULL_RELOAD
)
==
SWITCH_STATUS_SUCCESS
)
{
skypopen_endpoint_interface
=
switch_loadable_module_create_interface
(
*
module_interface
,
SWITCH_ENDPOINT_INTERFACE
);
skypopen_endpoint_interface
->
interface_name
=
"skypopen"
;
skypopen_endpoint_interface
->
io_routines
=
&
skypopen_io_routines
;
skypopen_endpoint_interface
->
state_handler
=
&
skypopen_state_handlers
;
if
(
running
)
{
*
module_interface
=
switch_loadable_module_create_module_interface
(
pool
,
modname
);
skypopen_endpoint_interface
=
switch_loadable_module_create_interface
(
*
module_interface
,
SWITCH_ENDPOINT_INTERFACE
);
skypopen_endpoint_interface
->
interface_name
=
"skypopen"
;
skypopen_endpoint_interface
->
io_routines
=
&
skypopen_io_routines
;
skypopen_endpoint_interface
->
state_handler
=
&
skypopen_state_handlers
;
SWITCH_ADD_API
(
commands_api_interface
,
"sk"
,
"Skypopen console commands"
,
sk_function
,
SK_SYNTAX
);
if
(
running
)
{
SWITCH_ADD_API
(
commands_api_interface
,
"skypopen"
,
"Skypopen interface commands"
,
skypopen_function
,
SKYPOPEN_SYNTAX
);
SWITCH_ADD_API
(
commands_api_interface
,
"skypopen_chat"
,
"Skypopen_chat interface remote_skypename TEXT"
,
skypopen_chat_function
,
SKYPOPEN_CHAT_SYNTAX
);
SWITCH_ADD_CHAT
(
chat_interface
,
SKYPE_CHAT_PROTO
,
chat_send
);
if
(
switch_event_reserve_subclass
(
MY_EVENT_INCOMING_CHATMESSAGE
)
!=
SWITCH_STATUS_SUCCESS
)
{
SWITCH_ADD_API
(
commands_api_interface
,
"sk"
,
"Skypopen console commands"
,
sk_function
,
SK_SYNTAX
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Couldn't register subclass!
\n
"
);
SWITCH_ADD_API
(
commands_api_interface
,
"skypopen"
,
"Skypopen interface commands"
,
skypopen_function
,
SKYPOPEN_SYNTAX
);
return
SWITCH_STATUS_FALSE
;
SWITCH_ADD_API
(
commands_api_interface
,
"skypopen_chat"
,
"Skypopen_chat interface remote_skypename TEXT"
,
skypopen_chat_function
,
}
SKYPOPEN_CHAT_SYNTAX
);
SWITCH_ADD_CHAT
(
chat_interface
,
SKYPE_CHAT_PROTO
,
chat_send
);
if
(
switch_event_reserve_subclass
(
MY_EVENT_INCOMING_RAW
)
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_event_reserve_subclass
(
MY_EVENT_INCOMING_CHATMESSAGE
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Couldn't register subclass!
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Couldn't register subclass!
\n
"
);
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
}
}
/* indicate that the module should continue to be loaded */
if
(
switch_event_reserve_subclass
(
MY_EVENT_INCOMING_RAW
)
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_SUCCESS
;
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Couldn't register subclass!
\n
"
);
return
SWITCH_STATUS_FALSE
;
}
/* indicate that the module should continue to be loaded */
return
SWITCH_STATUS_SUCCESS
;
}
}
else
{
running
=
0
;
switch_sleep
(
1000000
);
//1 full second
return
SWITCH_STATUS_FALSE
;
}
}
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
}
}
...
...
src/switch_loadable_module.c
浏览文件 @
9733740c
...
@@ -316,6 +316,8 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable
...
@@ -316,6 +316,8 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable
for
(
ptr
=
new_module
->
module_interface
->
file_interface
;
ptr
;
ptr
=
ptr
->
next
)
{
for
(
ptr
=
new_module
->
module_interface
->
file_interface
;
ptr
;
ptr
=
ptr
->
next
)
{
if
(
!
ptr
->
interface_name
)
{
if
(
!
ptr
->
interface_name
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failed to load file interface from %s due to no interface name.
\n
"
,
key
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failed to load file interface from %s due to no interface name.
\n
"
,
key
);
}
else
if
(
!
ptr
->
extens
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Failed to load file interface from %s due to no file extensions.
\n
"
,
key
);
}
else
{
}
else
{
int
i
;
int
i
;
for
(
i
=
0
;
ptr
->
extens
[
i
];
i
++
)
{
for
(
i
=
0
;
ptr
->
extens
[
i
];
i
++
)
{
...
...
src/switch_rtp.c
浏览文件 @
9733740c
...
@@ -384,7 +384,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
...
@@ -384,7 +384,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"DTMF payload offset by 4 bytes.
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"DTMF payload offset by 4 bytes.
\n
"
);
}
}
if
(
!
(
packet
[
0
]
||
packet
[
1
]
||
packet
[
2
]
||
packet
[
3
]))
{
if
(
!
(
packet
[
0
]
||
packet
[
1
]
||
packet
[
2
]
||
packet
[
3
])
&&
rtp_session
->
dtmf_data
.
in_digit_ts
)
{
switch_core_session_t
*
session
=
switch_core_memory_pool_get_data
(
rtp_session
->
pool
,
"__session"
);
switch_core_session_t
*
session
=
switch_core_memory_pool_get_data
(
rtp_session
->
pool
,
"__session"
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"Failed DTMF payload check.
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"Failed DTMF payload check.
\n
"
);
rtp_session
->
dtmf_data
.
last_digit
=
0
;
rtp_session
->
dtmf_data
.
last_digit
=
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论