Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
553255c6
提交
553255c6
authored
11月 19, 2010
作者:
David Yat Sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed some windows compile warnings from merge
上级
15d02eb9
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
108 行增加
和
915 行删除
+108
-915
callcenter.conf.xml
conf/autoload_configs/callcenter.conf.xml
+0
-1
erlang_event.conf.xml
conf/autoload_configs/erlang_event.conf.xml
+0
-9
modules.conf.xml
conf/autoload_configs/modules.conf.xml
+0
-96
switch.conf.xml
conf/autoload_configs/switch.conf.xml
+0
-6
voicemail.conf.xml
conf/autoload_configs/voicemail.conf.xml
+3
-4
default.xml
conf/dialplan/default.xml
+85
-760
internal.xml
conf/sip_profiles/internal.xml
+0
-20
internal.xml
conf/skinny_profiles/internal.xml
+1
-1
vars.xml
conf/vars.xml
+1
-1
ftmod_sangoma_isdn.h
...freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h
+5
-3
ftmod_sangoma_isdn_stack_cntrl.c
...ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_cntrl.c
+0
-1
ftmod_sangoma_isdn_support.c
...src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c
+13
-13
没有找到文件。
conf/autoload_configs/callcenter.conf.xml
浏览文件 @
553255c6
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
<param
name=
"time-base-score"
value=
"system"
/>
<param
name=
"time-base-score"
value=
"system"
/>
<param
name=
"max-wait-time"
value=
"0"
/>
<param
name=
"max-wait-time"
value=
"0"
/>
<param
name=
"max-wait-time-with-no-agent"
value=
"0"
/>
<param
name=
"max-wait-time-with-no-agent"
value=
"0"
/>
<param
name=
"max-wait-time-with-no-agent-time-reached"
value=
"5"
/>
<param
name=
"tier-rules-apply"
value=
"false"
/>
<param
name=
"tier-rules-apply"
value=
"false"
/>
<param
name=
"tier-rule-wait-second"
value=
"300"
/>
<param
name=
"tier-rule-wait-second"
value=
"300"
/>
<param
name=
"tier-rule-wait-multiply-level"
value=
"true"
/>
<param
name=
"tier-rule-wait-multiply-level"
value=
"true"
/>
...
...
conf/autoload_configs/erlang_event.conf.xml
浏览文件 @
553255c6
...
@@ -2,16 +2,7 @@
...
@@ -2,16 +2,7 @@
<settings>
<settings>
<param
name=
"listen-ip"
value=
"0.0.0.0"
/>
<param
name=
"listen-ip"
value=
"0.0.0.0"
/>
<param
name=
"listen-port"
value=
"8031"
/>
<param
name=
"listen-port"
value=
"8031"
/>
<!-- Specify the first part of the node name
(the host part after the @ will be autodetected)
OR pass a complete nodename to avoid autodetection
eg. freeswitch@example or freeswitch@example.com.
If you pass a complete node name, the 'shortname' parameter has no effect. -->
<param
name=
"nodename"
value=
"freeswitch"
/>
<!-- Specify this OR 'cookie-file' or $HOME/.erlang.cookie will be read -->
<param
name=
"cookie"
value=
"ClueCon"
/>
<param
name=
"cookie"
value=
"ClueCon"
/>
<!-- Read a cookie from an arbitary erlang cookie file instead -->
<!--<param name="cookie-file" value="/tmp/erlang.cookie"/>-->
<param
name=
"shortname"
value=
"true"
/>
<param
name=
"shortname"
value=
"true"
/>
<!-- in additon to cookie, optionally restrict by ACL -->
<!-- in additon to cookie, optionally restrict by ACL -->
<!--<param name="apply-inbound-acl" value="lan"/>-->
<!--<param name="apply-inbound-acl" value="lan"/>-->
...
...
conf/autoload_configs/modules.conf.xml
浏览文件 @
553255c6
<configuration
name=
"modules.conf"
description=
"Modules"
>
<configuration
name=
"modules.conf"
description=
"Modules"
>
<modules>
<modules>
<!-- Loggers (I'd load these first) -->
<load
module=
"mod_console"
/>
<load
module=
"mod_console"
/>
<load
module=
"mod_logfile"
/>
<load
module=
"mod_logfile"
/>
<!-- <load module="mod_syslog"/> -->
<!--<load module="mod_yaml"/>-->
<!-- Multi-Faceted -->
<!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
<load
module=
"mod_enum"
/>
<!-- XML Interfaces -->
<!-- <load module="mod_xml_rpc"/> -->
<!-- <load module="mod_xml_curl"/> -->
<!-- <load module="mod_xml_cdr"/> -->
<!-- Event Handlers -->
<load
module=
"mod_cdr_csv"
/>
<!-- <load module="mod_event_multicast"/> -->
<load
module=
"mod_event_socket"
/>
<load
module=
"mod_event_socket"
/>
<!-- <load module="mod_zeroconf"/> -->
<!-- <load module="mod_erlang_event"/> -->
<!-- Directory Interfaces -->
<!-- <load module="mod_ldap"/> -->
<!-- Endpoints -->
<!-- <load module="mod_dingaling"/> -->
<!-- <load module="mod_portaudio"/> -->
<!-- <load module="mod_alsa"/> -->
<load
module=
"mod_sofia"
/>
<load
module=
"mod_sofia"
/>
<load
module=
"mod_loopback"
/>
<!-- <load module="mod_woomera"/> -->
<!-- <load module="mod_freetdm"/> -->
<!-- <load module="mod_openzap"/> -->
<!-- <load module="mod_unicall"/> -->
<!-- <load module="mod_skinny"/> -->
<!-- Applications -->
<load
module=
"mod_commands"
/>
<load
module=
"mod_commands"
/>
<load
module=
"mod_conference"
/>
<load
module=
"mod_db"
/>
<load
module=
"mod_dptools"
/>
<load
module=
"mod_dptools"
/>
<load
module=
"mod_expr"
/>
<load
module=
"mod_expr"
/>
<load
module=
"mod_fifo"
/>
<load
module=
"mod_hash"
/>
<load
module=
"mod_voicemail"
/>
<!--<load module="mod_directory"/>-->
<!--<load module="mod_lcr"/>-->
<load
module=
"mod_esf"
/>
<load
module=
"mod_fsv"
/>
<load
module=
"mod_cluechoo"
/>
<load
module=
"mod_valet_parking"
/>
<!--<load module="mod_spy"/>-->
<!-- SNOM Module -->
<!--<load module="mod_snom"/>-->
<!-- Dialplan Interfaces -->
<!-- <load module="mod_dialplan_directory"/> -->
<load
module=
"mod_dialplan_xml"
/>
<load
module=
"mod_dialplan_xml"
/>
<load
module=
"mod_dialplan_asterisk"
/>
<!-- Codec Interfaces -->
<load
module=
"mod_spandsp"
/>
<load
module=
"mod_g723_1"
/>
<load
module=
"mod_g729"
/>
<load
module=
"mod_amr"
/>
<load
module=
"mod_ilbc"
/>
<load
module=
"mod_speex"
/>
<load
module=
"mod_h26x"
/>
<load
module=
"mod_siren"
/>
<!--<load module="mod_celt"/>-->
<!-- File Format Interfaces -->
<load
module=
"mod_sndfile"
/>
<load
module=
"mod_sndfile"
/>
<load
module=
"mod_native_file"
/>
<load
module=
"mod_native_file"
/>
<!--For icecast/mp3 streams/files-->
<!--<load module="mod_shout"/>-->
<!--For local streams (play all the files in a directory)-->
<load
module=
"mod_local_stream"
/>
<load
module=
"mod_tone_stream"
/>
<load
module=
"mod_file_string"
/>
<!-- Timers -->
<!-- Languages -->
<load
module=
"mod_spidermonkey"
/>
<!-- <load module="mod_perl"/> -->
<!-- <load module="mod_python"/> -->
<!-- <load module="mod_java"/> -->
<load
module=
"mod_lua"
/>
<!-- ASR /TTS -->
<!-- <load module="mod_flite"/> -->
<!-- <load module="mod_pocketsphinx"/> -->
<!-- <load module="mod_cepstral"/> -->
<!-- <load module="mod_tts_commandline"/> -->
<!-- <load module="mod_rss"/> -->
<!-- Say -->
<load
module=
"mod_say_en"
/>
<load
module=
"mod_say_en"
/>
<load
module=
"mod_say_ru"
/>
<!-- <load module="mod_say_zh"/> -->
<!-- Third party modules -->
<!--<load module="mod_nibblebill"/>-->
</modules>
</modules>
</configuration>
</configuration>
conf/autoload_configs/switch.conf.xml
浏览文件 @
553255c6
...
@@ -15,11 +15,6 @@
...
@@ -15,11 +15,6 @@
<key
name=
"12"
value=
"version"
/>
<key
name=
"12"
value=
"version"
/>
</cli-keybindings>
</cli-keybindings>
<default-ptimes>
<!-- set this to overide the 20ms assumption of various codecs in the sdp with no ptime defined -->
<!--<codec name="G729" ptime="40"/>-->
</default-ptimes>
<settings>
<settings>
<!--Colorize the Console -->
<!--Colorize the Console -->
<param
name=
"colorize-console"
value=
"true"
/>
<param
name=
"colorize-console"
value=
"true"
/>
...
@@ -86,7 +81,6 @@
...
@@ -86,7 +81,6 @@
<!-- <param name="core-db-dsn" value="dsn:username:password" /> -->
<!-- <param name="core-db-dsn" value="dsn:username:password" /> -->
<!-- The system will create all the db schemas automatically, set this to false to avoid this behaviour-->
<!-- The system will create all the db schemas automatically, set this to false to avoid this behaviour-->
<!--<param name="auto-create-schemas" value="true"/>-->
<!--<param name="auto-create-schemas" value="true"/>-->
<!-- <param name="core-dbtype" value="MSSQL"/> -->
</settings>
</settings>
</configuration>
</configuration>
...
...
conf/autoload_configs/voicemail.conf.xml
浏览文件 @
553255c6
...
@@ -33,10 +33,9 @@
...
@@ -33,10 +33,9 @@
<param
name=
"ff-key"
value=
"6"
/>
<param
name=
"ff-key"
value=
"6"
/>
<param
name=
"rew-key"
value=
"4"
/>
<param
name=
"rew-key"
value=
"4"
/>
<param
name=
"skip-greet-key"
value=
"#"
/>
<param
name=
"skip-greet-key"
value=
"#"
/>
<param
name=
"previous-message-key"
value=
"1"
/>
-->
<!--<param name="previous-message-key" value=""/>-->
<param
name=
"next-message-key"
value=
"3"
/>
<!--<param name="next-message-key" value=""/>-->
<param
name=
"skip-info-key"
value=
"*"
/>
<!--<param name="skip-info-key" value=""/>-->
<param
name=
"repeat-message-key"
value=
"0"
/>
<param
name=
"record-silence-threshold"
value=
"200"
/>
<param
name=
"record-silence-threshold"
value=
"200"
/>
<param
name=
"record-silence-hits"
value=
"2"
/>
<param
name=
"record-silence-hits"
value=
"2"
/>
<param
name=
"web-template-file"
value=
"web-vm.tpl"
/>
<param
name=
"web-template-file"
value=
"web-vm.tpl"
/>
...
...
conf/dialplan/default.xml
浏览文件 @
553255c6
差异被折叠。
点击展开。
conf/sip_profiles/internal.xml
浏览文件 @
553255c6
...
@@ -42,26 +42,6 @@
...
@@ -42,26 +42,6 @@
<!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. -->
<!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. -->
<!-- <param name="shutdown-on-fail" value="true"/> -->
<!-- <param name="shutdown-on-fail" value="true"/> -->
<param
name=
"sip-trace"
value=
"no"
/>
<param
name=
"sip-trace"
value=
"no"
/>
<!--
Sometimes, in extremely rare edge cases, the Sofia SIP stack may stop
responding. These options allow you to enable and control a watchdog
on the Sofia SIP stack so that if it stops responding for the
specified number of milliseconds, it will cause FreeSWITCH to shut
down immediately. This is useful if you run in an HA environment and
need to ensure automated recovery from such a condition. Note that if
your server is idle a lot, the watchdog may fire due to not receiving
any SIP messages. Thus, if you expect your system to be idle, you
should leave the watchdog disabled. It can be toggled on and off
through the FreeSWITCH CLI either on an individual profile basis or
globally for all profiles. So, if you run in an HA environment with a
master and slave, you should use the CLI to make sure the watchdog is
only enabled on the master.
-->
<param
name=
"watchdog-enabled"
value=
"no"
/>
<param
name=
"watchdog-step-timeout"
value=
"30000"
/>
<param
name=
"watchdog-event-timeout"
value=
"30000"
/>
<param
name=
"log-auth-failures"
value=
"true"
/>
<param
name=
"log-auth-failures"
value=
"true"
/>
<param
name=
"forward-unsolicited-mwi-notify"
value=
"false"
/>
<param
name=
"forward-unsolicited-mwi-notify"
value=
"false"
/>
...
...
conf/skinny_profiles/internal.xml
浏览文件 @
553255c6
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<soft-key-set-sets>
<soft-key-set-sets>
<soft-key-set-set
name=
"default"
>
<soft-key-set-set
name=
"default"
>
<soft-key-set
name=
"KeySetOnHook"
value=
"SoftkeyNewcall,SoftkeyRedial"
/>
<soft-key-set
name=
"KeySetOnHook"
value=
"SoftkeyNewcall,SoftkeyRedial"
/>
<soft-key-set
name=
"KeySetOffHook"
value=
",Softkey
Redia
l,SoftkeyEndcall"
/>
<soft-key-set
name=
"KeySetOffHook"
value=
",Softkey
Newcal
l,SoftkeyEndcall"
/>
<soft-key-set
name=
"KeySetDigitsAfterDialingFirstDigit"
value=
"SoftkeyBackspace,,SoftkeyEndcall"
/>
<soft-key-set
name=
"KeySetDigitsAfterDialingFirstDigit"
value=
"SoftkeyBackspace,,SoftkeyEndcall"
/>
<soft-key-set
name=
"KeySetConnected"
value=
"SoftkeyEndcall,SoftkeyHold,SoftkeyNewcall,SoftkeyTransfer"
/>
<soft-key-set
name=
"KeySetConnected"
value=
"SoftkeyEndcall,SoftkeyHold,SoftkeyNewcall,SoftkeyTransfer"
/>
<soft-key-set
name=
"KeySetRingIn"
value=
"SoftkeyAnswer,SoftkeyEndcall,SoftkeyNewcall"
/>
<soft-key-set
name=
"KeySetRingIn"
value=
"SoftkeyAnswer,SoftkeyEndcall,SoftkeyNewcall"
/>
...
...
conf/vars.xml
浏览文件 @
553255c6
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
<!-- various debug and defaults -->
<!-- various debug and defaults -->
<X-PRE-PROCESS
cmd=
"set"
data=
"call_debug=false"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"call_debug=false"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"console_loglevel=
info
"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"console_loglevel=
debug
"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"default_areacode=918"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"default_areacode=918"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"default_country=US"
/>
<X-PRE-PROCESS
cmd=
"set"
data=
"default_country=US"
/>
...
...
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h
浏览文件 @
553255c6
...
@@ -270,9 +270,11 @@ extern ftdm_sngisdn_data_t g_sngisdn_data;
...
@@ -270,9 +270,11 @@ extern ftdm_sngisdn_data_t g_sngisdn_data;
ftdm_status_t
ftmod_isdn_parse_cfg
(
ftdm_conf_parameter_t
*
ftdm_parameters
,
ftdm_span_t
*
span
);
ftdm_status_t
ftmod_isdn_parse_cfg
(
ftdm_conf_parameter_t
*
ftdm_parameters
,
ftdm_span_t
*
span
);
/* Support functions */
/* Support functions */
FT_DECLARE
(
uint32_t
)
get_unique_suInstId
(
int16_t
cc_id
);
uint32_t
get_unique_suInstId
(
int16_t
cc_id
);
FT_DECLARE
(
void
)
clear_call_data
(
sngisdn_chan_data_t
*
sngisdn_info
);
void
clear_call_data
(
sngisdn_chan_data_t
*
sngisdn_info
);
FT_DECLARE
(
void
)
clear_call_glare_data
(
sngisdn_chan_data_t
*
sngisdn_info
);
void
clear_call_glare_data
(
sngisdn_chan_data_t
*
sngisdn_info
);
ftdm_status_t
sngisdn_set_avail_rate
(
ftdm_span_t
*
span
,
sngisdn_avail_t
avail
);
ftdm_status_t
sngisdn_activate_trace
(
ftdm_span_t
*
span
,
sngisdn_tracetype_t
trace_opt
);
void
stack_hdr_init
(
Header
*
hdr
);
void
stack_hdr_init
(
Header
*
hdr
);
...
...
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_cntrl.c
浏览文件 @
553255c6
...
@@ -41,7 +41,6 @@ ftdm_status_t sngisdn_activate_phy(ftdm_span_t *span);
...
@@ -41,7 +41,6 @@ ftdm_status_t sngisdn_activate_phy(ftdm_span_t *span);
ftdm_status_t
sngisdn_deactivate_phy
(
ftdm_span_t
*
span
);
ftdm_status_t
sngisdn_deactivate_phy
(
ftdm_span_t
*
span
);
ftdm_status_t
sngisdn_activate_cc
(
ftdm_span_t
*
span
);
ftdm_status_t
sngisdn_activate_cc
(
ftdm_span_t
*
span
);
ftdm_status_t
sngisdn_activate_trace
(
ftdm_span_t
*
span
,
sngisdn_tracetype_t
trace_opt
);
ftdm_status_t
sngisdn_cntrl_q931
(
ftdm_span_t
*
span
,
uint8_t
action
,
uint8_t
subaction
);
ftdm_status_t
sngisdn_cntrl_q931
(
ftdm_span_t
*
span
,
uint8_t
action
,
uint8_t
subaction
);
ftdm_status_t
sngisdn_cntrl_q921
(
ftdm_span_t
*
span
,
uint8_t
action
,
uint8_t
subaction
);
ftdm_status_t
sngisdn_cntrl_q921
(
ftdm_span_t
*
span
,
uint8_t
action
,
uint8_t
subaction
);
...
...
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c
浏览文件 @
553255c6
...
@@ -39,7 +39,7 @@ ftdm_status_t sngisdn_check_free_ids(void);
...
@@ -39,7 +39,7 @@ ftdm_status_t sngisdn_check_free_ids(void);
extern
ftdm_sngisdn_data_t
g_sngisdn_data
;
extern
ftdm_sngisdn_data_t
g_sngisdn_data
;
void
get_memory_info
(
void
);
void
get_memory_info
(
void
);
FT_DECLARE
(
void
)
clear_call_data
(
sngisdn_chan_data_t
*
sngisdn_info
)
void
clear_call_data
(
sngisdn_chan_data_t
*
sngisdn_info
)
{
{
uint32_t
cc_id
=
((
sngisdn_span_data_t
*
)
sngisdn_info
->
ftdmchan
->
span
->
signal_data
)
->
cc_id
;
uint32_t
cc_id
=
((
sngisdn_span_data_t
*
)
sngisdn_info
->
ftdmchan
->
span
->
signal_data
)
->
cc_id
;
...
@@ -56,7 +56,7 @@ FT_DECLARE(void) clear_call_data(sngisdn_chan_data_t *sngisdn_info)
...
@@ -56,7 +56,7 @@ FT_DECLARE(void) clear_call_data(sngisdn_chan_data_t *sngisdn_info)
return
;
return
;
}
}
FT_DECLARE
(
void
)
clear_call_glare_data
(
sngisdn_chan_data_t
*
sngisdn_info
)
void
clear_call_glare_data
(
sngisdn_chan_data_t
*
sngisdn_info
)
{
{
ftdm_log_chan
(
sngisdn_info
->
ftdmchan
,
FTDM_LOG_DEBUG
,
"Clearing glare data (suId:%d suInstId:%u spInstId:%u actv-suInstId:%u actv-spInstId:%u)
\n
"
,
ftdm_log_chan
(
sngisdn_info
->
ftdmchan
,
FTDM_LOG_DEBUG
,
"Clearing glare data (suId:%d suInstId:%u spInstId:%u actv-suInstId:%u actv-spInstId:%u)
\n
"
,
sngisdn_info
->
glare
.
suId
,
sngisdn_info
->
glare
.
suId
,
...
@@ -81,7 +81,7 @@ FT_DECLARE(void) clear_call_glare_data(sngisdn_chan_data_t *sngisdn_info)
...
@@ -81,7 +81,7 @@ FT_DECLARE(void) clear_call_glare_data(sngisdn_chan_data_t *sngisdn_info)
}
}
FT_DECLARE
(
uint32_t
)
get_unique_suInstId
(
int16_t
cc_id
)
uint32_t
get_unique_suInstId
(
int16_t
cc_id
)
{
{
uint32_t
suInstId
;
uint32_t
suInstId
;
ftdm_assert_return
((
cc_id
>
0
&&
cc_id
<=
MAX_VARIANTS
),
FTDM_FAIL
,
"Invalid cc_id
\n
"
);
ftdm_assert_return
((
cc_id
>
0
&&
cc_id
<=
MAX_VARIANTS
),
FTDM_FAIL
,
"Invalid cc_id
\n
"
);
...
@@ -103,7 +103,7 @@ FT_DECLARE(uint32_t) get_unique_suInstId(int16_t cc_id)
...
@@ -103,7 +103,7 @@ FT_DECLARE(uint32_t) get_unique_suInstId(int16_t cc_id)
return
0
;
return
0
;
}
}
FT_DECLARE
(
ftdm_status_t
)
get_ftdmchan_by_suInstId
(
int16_t
cc_id
,
uint32_t
suInstId
,
sngisdn_chan_data_t
**
sngisdn_data
)
ftdm_status_t
get_ftdmchan_by_suInstId
(
int16_t
cc_id
,
uint32_t
suInstId
,
sngisdn_chan_data_t
**
sngisdn_data
)
{
{
ftdm_assert_return
((
cc_id
>
0
&&
cc_id
<=
MAX_VARIANTS
),
FTDM_FAIL
,
"Invalid cc_id
\n
"
);
ftdm_assert_return
((
cc_id
>
0
&&
cc_id
<=
MAX_VARIANTS
),
FTDM_FAIL
,
"Invalid cc_id
\n
"
);
ftdm_assert_return
(
g_sngisdn_data
.
ccs
[
cc_id
].
activation_done
,
FTDM_FAIL
,
"Trying to find call on unconfigured CC
\n
"
);
ftdm_assert_return
(
g_sngisdn_data
.
ccs
[
cc_id
].
activation_done
,
FTDM_FAIL
,
"Trying to find call on unconfigured CC
\n
"
);
...
@@ -115,7 +115,7 @@ FT_DECLARE(ftdm_status_t) get_ftdmchan_by_suInstId(int16_t cc_id, uint32_t suIns
...
@@ -115,7 +115,7 @@ FT_DECLARE(ftdm_status_t) get_ftdmchan_by_suInstId(int16_t cc_id, uint32_t suIns
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
get_ftdmchan_by_spInstId
(
int16_t
cc_id
,
uint32_t
spInstId
,
sngisdn_chan_data_t
**
sngisdn_data
)
ftdm_status_t
get_ftdmchan_by_spInstId
(
int16_t
cc_id
,
uint32_t
spInstId
,
sngisdn_chan_data_t
**
sngisdn_data
)
{
{
ftdm_assert_return
((
cc_id
>
0
&&
cc_id
<=
MAX_VARIANTS
),
FTDM_FAIL
,
"Invalid cc_id
\n
"
);
ftdm_assert_return
((
cc_id
>
0
&&
cc_id
<=
MAX_VARIANTS
),
FTDM_FAIL
,
"Invalid cc_id
\n
"
);
ftdm_assert_return
(
g_sngisdn_data
.
ccs
[
cc_id
].
activation_done
,
FTDM_FAIL
,
"Trying to find call on unconfigured CC
\n
"
);
ftdm_assert_return
(
g_sngisdn_data
.
ccs
[
cc_id
].
activation_done
,
FTDM_FAIL
,
"Trying to find call on unconfigured CC
\n
"
);
...
@@ -147,7 +147,7 @@ ftdm_status_t sngisdn_set_avail_rate(ftdm_span_t *span, sngisdn_avail_t avail)
...
@@ -147,7 +147,7 @@ ftdm_status_t sngisdn_set_avail_rate(ftdm_span_t *span, sngisdn_avail_t avail)
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_calling_num_from_stack
(
ftdm_caller_data_t
*
ftdm
,
CgPtyNmb
*
cgPtyNmb
)
ftdm_status_t
cpy_calling_num_from_stack
(
ftdm_caller_data_t
*
ftdm
,
CgPtyNmb
*
cgPtyNmb
)
{
{
if
(
cgPtyNmb
->
eh
.
pres
!=
PRSNT_NODEF
)
{
if
(
cgPtyNmb
->
eh
.
pres
!=
PRSNT_NODEF
)
{
return
FTDM_FAIL
;
return
FTDM_FAIL
;
...
@@ -174,7 +174,7 @@ FT_DECLARE(ftdm_status_t) cpy_calling_num_from_stack(ftdm_caller_data_t *ftdm, C
...
@@ -174,7 +174,7 @@ FT_DECLARE(ftdm_status_t) cpy_calling_num_from_stack(ftdm_caller_data_t *ftdm, C
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_called_num_from_stack
(
ftdm_caller_data_t
*
ftdm
,
CdPtyNmb
*
cdPtyNmb
)
ftdm_status_t
cpy_called_num_from_stack
(
ftdm_caller_data_t
*
ftdm
,
CdPtyNmb
*
cdPtyNmb
)
{
{
if
(
cdPtyNmb
->
eh
.
pres
!=
PRSNT_NODEF
)
{
if
(
cdPtyNmb
->
eh
.
pres
!=
PRSNT_NODEF
)
{
return
FTDM_FAIL
;
return
FTDM_FAIL
;
...
@@ -196,7 +196,7 @@ FT_DECLARE(ftdm_status_t) cpy_called_num_from_stack(ftdm_caller_data_t *ftdm, Cd
...
@@ -196,7 +196,7 @@ FT_DECLARE(ftdm_status_t) cpy_called_num_from_stack(ftdm_caller_data_t *ftdm, Cd
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_redir_num_from_stack
(
ftdm_caller_data_t
*
ftdm
,
RedirNmb
*
redirNmb
)
ftdm_status_t
cpy_redir_num_from_stack
(
ftdm_caller_data_t
*
ftdm
,
RedirNmb
*
redirNmb
)
{
{
if
(
redirNmb
->
eh
.
pres
!=
PRSNT_NODEF
)
{
if
(
redirNmb
->
eh
.
pres
!=
PRSNT_NODEF
)
{
return
FTDM_FAIL
;
return
FTDM_FAIL
;
...
@@ -216,7 +216,7 @@ FT_DECLARE(ftdm_status_t) cpy_redir_num_from_stack(ftdm_caller_data_t *ftdm, Red
...
@@ -216,7 +216,7 @@ FT_DECLARE(ftdm_status_t) cpy_redir_num_from_stack(ftdm_caller_data_t *ftdm, Red
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_calling_name_from_stack
(
ftdm_caller_data_t
*
ftdm
,
Display
*
display
)
ftdm_status_t
cpy_calling_name_from_stack
(
ftdm_caller_data_t
*
ftdm
,
Display
*
display
)
{
{
if
(
display
->
eh
.
pres
!=
PRSNT_NODEF
)
{
if
(
display
->
eh
.
pres
!=
PRSNT_NODEF
)
{
return
FTDM_FAIL
;
return
FTDM_FAIL
;
...
@@ -229,7 +229,7 @@ FT_DECLARE(ftdm_status_t) cpy_calling_name_from_stack(ftdm_caller_data_t *ftdm,
...
@@ -229,7 +229,7 @@ FT_DECLARE(ftdm_status_t) cpy_calling_name_from_stack(ftdm_caller_data_t *ftdm,
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_calling_num_from_user
(
CgPtyNmb
*
cgPtyNmb
,
ftdm_caller_data_t
*
ftdm
)
ftdm_status_t
cpy_calling_num_from_user
(
CgPtyNmb
*
cgPtyNmb
,
ftdm_caller_data_t
*
ftdm
)
{
{
uint8_t
len
=
strlen
(
ftdm
->
cid_num
.
digits
);
uint8_t
len
=
strlen
(
ftdm
->
cid_num
.
digits
);
if
(
!
len
)
{
if
(
!
len
)
{
...
@@ -257,7 +257,7 @@ FT_DECLARE(ftdm_status_t) cpy_calling_num_from_user(CgPtyNmb *cgPtyNmb, ftdm_cal
...
@@ -257,7 +257,7 @@ FT_DECLARE(ftdm_status_t) cpy_calling_num_from_user(CgPtyNmb *cgPtyNmb, ftdm_cal
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_called_num_from_user
(
CdPtyNmb
*
cdPtyNmb
,
ftdm_caller_data_t
*
ftdm
)
ftdm_status_t
cpy_called_num_from_user
(
CdPtyNmb
*
cdPtyNmb
,
ftdm_caller_data_t
*
ftdm
)
{
{
uint8_t
len
=
strlen
(
ftdm
->
dnis
.
digits
);
uint8_t
len
=
strlen
(
ftdm
->
dnis
.
digits
);
if
(
!
len
)
{
if
(
!
len
)
{
...
@@ -287,7 +287,7 @@ FT_DECLARE(ftdm_status_t) cpy_called_num_from_user(CdPtyNmb *cdPtyNmb, ftdm_call
...
@@ -287,7 +287,7 @@ FT_DECLARE(ftdm_status_t) cpy_called_num_from_user(CdPtyNmb *cdPtyNmb, ftdm_call
return
FTDM_SUCCESS
;
return
FTDM_SUCCESS
;
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_redir_num_from_user
(
RedirNmb
*
redirNmb
,
ftdm_caller_data_t
*
ftdm
)
ftdm_status_t
cpy_redir_num_from_user
(
RedirNmb
*
redirNmb
,
ftdm_caller_data_t
*
ftdm
)
{
{
uint8_t
len
=
strlen
(
ftdm
->
rdnis
.
digits
);
uint8_t
len
=
strlen
(
ftdm
->
rdnis
.
digits
);
if
(
!
len
)
{
if
(
!
len
)
{
...
@@ -319,7 +319,7 @@ FT_DECLARE(ftdm_status_t) cpy_redir_num_from_user(RedirNmb *redirNmb, ftdm_calle
...
@@ -319,7 +319,7 @@ FT_DECLARE(ftdm_status_t) cpy_redir_num_from_user(RedirNmb *redirNmb, ftdm_calle
}
}
FT_DECLARE
(
ftdm_status_t
)
cpy_calling_name_from_user
(
ConEvnt
*
conEvnt
,
ftdm_channel_t
*
ftdmchan
)
ftm_status_t
cpy_calling_name_from_user
(
ConEvnt
*
conEvnt
,
ftdm_channel_t
*
ftdmchan
)
{
{
uint8_t
len
;
uint8_t
len
;
ftdm_caller_data_t
*
ftdm
=
&
ftdmchan
->
caller_data
;
ftdm_caller_data_t
*
ftdm
=
&
ftdmchan
->
caller_data
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论