Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch-contrib
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch-contrib
Commits
7cfe2d4d
提交
7cfe2d4d
authored
2月 04, 2012
作者:
Mitch Capper
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add right click option for contact lookups to call from a specific account.
codec isac support.
上级
ee7fb354
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
51 行增加
和
13 行删除
+51
-13
Broker.cs
mitchcapper/FSClient/Broker.cs
+9
-6
freeswitch.xml
mitchcapper/FSClient/External Items/conf/freeswitch.xml
+1
-0
link.pl
mitchcapper/FSClient/External Items/link.pl
+1
-1
SimpleContactPluginBase.cs
mitchcapper/FSClient/SimpleContactPluginBase.cs
+39
-5
Sofia.cs
mitchcapper/FSClient/Sofia.cs
+1
-1
没有找到文件。
mitchcapper/FSClient/Broker.cs
浏览文件 @
7cfe2d4d
...
...
@@ -284,20 +284,23 @@ namespace FSClient {
return
;
MainWindowRemoveFocus
(
true
);
Account
call_acct
=
Account
.
default_account
;
if
(
str
.
StartsWith
(
"#"
)
&&
str
.
Length
>
2
)
{
String
acct_num
=
str
.
Substring
(
1
,
1
);
str
=
str
.
Substring
(
2
);
Account
acct
=
(
from
a
in
Account
.
accounts
where
a
.
guid
==
acct_num
select
a
).
SingleOrDefault
();
if
(
acct
!=
null
)
{
acct
.
CreateCall
(
str
);
call_acct
=
(
from
a
in
Account
.
accounts
where
a
.
guid
==
acct_num
select
a
).
SingleOrDefault
();
if
(
call_acct
==
null
)
return
;
}
}
if
(
Account
.
default_account
==
null
)
{
if
(
call_acct
==
null
&&
Account
.
default_account
==
null
)
{
MessageBox
.
Show
(
"no default account, make sure you have added one or more accounts (right click in the account area to add) and they are enabled (checked)"
);
return
;
}
Account
.
default_account
.
CreateCall
(
str
);
DialString
(
call_acct
,
str
);
}
public
void
DialString
(
Account
account
,
String
str
){
account
.
CreateCall
(
str
);
}
public
void
TalkPressed
()
{
if
(
Call
.
active_call
!=
null
)
{
...
...
mitchcapper/FSClient/External Items/conf/freeswitch.xml
浏览文件 @
7cfe2d4d
...
...
@@ -47,6 +47,7 @@
<load
module=
"mod_dialplan_xml"
/>
<load
module=
"mod_spandsp"
/>
<load
module=
"mod_ilbc"
/>
<load
module=
"mod_isac"
/>
<load
module=
"mod_speex"
/>
<load
module=
"mod_siren"
/>
<load
module=
"mod_bv"
/>
...
...
mitchcapper/FSClient/External Items/link.pl
浏览文件 @
7cfe2d4d
...
...
@@ -11,7 +11,7 @@ my $VERBOSE_SYS_RES = 0;
die
"Build directory does not exist: $FS_BUILD_PATH"
if
(
!
-
e
$FS_BUILD_PATH
);
die
"Working directory does not exist: $WORKING_DIR"
if
(
!
-
e
$WORKING_DIR
);
my
@MAIN_FILES
=
qw/FreeSwitch.dll libapr.dll libaprutil.dll libbroadvoice.dll libspandsp.dll libteletone.dll mod_managed.dll pthread.dll libeay32.dll ssleay32.dll FreeSWITCH.Managed.dll/
;
my
@modules
=
qw/mod_celt mod_commands mod_console mod_dialplan_xml mod_dptools mod_event_socket mod_ilbc mod_local_stream mod_logfile mod_loopback mod_PortAudio mod_siren mod_sndfile mod_sofia mod_speex mod_tone_stream mod_h26x mod_silk
mod_spandsp mod_bv
/
;
my
@modules
=
qw/mod_celt mod_commands mod_console mod_dialplan_xml mod_dptools mod_event_socket mod_ilbc mod_local_stream mod_logfile mod_loopback mod_PortAudio mod_siren mod_sndfile mod_sofia mod_speex mod_tone_stream mod_h26x mod_silk
mod_spandsp mod_bv mod_iSAC
/
;
my
$link_cmd
=
$USE_LN
?
"ln -s -a"
:
"copy"
;
...
...
mitchcapper/FSClient/SimpleContactPluginBase.cs
浏览文件 @
7cfe2d4d
...
...
@@ -65,10 +65,38 @@ namespace FSClient
item
=
new
MenuItem
();
item
.
Click
+=
contact_call_click
;
item
.
Header
=
"Call"
;
items
.
Add
(
item
);
item
=
new
MenuItem
();
item
.
Header
=
"Call On Account"
;
item
.
SubmenuOpened
+=
call_on_account_item_SubmenuOpened
;
MenuItem
item2
=
new
MenuItem
{
Header
=
"Call On Default Account"
,
IsEnabled
=
false
};
item2
.
Click
+=
contact_call_click
;
item
.
Items
.
Add
(
item2
);
items
.
Add
(
item
);
return
items
;
}
void
call_on_account_item_SubmenuOpened
(
object
sender
,
RoutedEventArgs
e
)
{
MenuItem
item
=
sender
as
MenuItem
;
if
(
item
==
null
||
item
.
Items
.
Count
==
0
)
return
;
MenuItem
first
=
item
.
Items
[
0
]
as
MenuItem
;
if
(
first
==
null
)
return
;
item
.
Items
.
Clear
();
item
.
Items
.
Add
(
first
);
foreach
(
var
acct
in
Account
.
accounts
){
MenuItem
new_item
=
new
MenuItem
();
new_item
.
Header
=
acct
.
ToString
();
new_item
.
Click
+=
contact_call_click
;
item
.
Items
.
Add
(
new_item
);
}
first
.
Visibility
=
item
.
Items
.
Count
>
1
?
Visibility
.
Collapsed
:
Visibility
.
Visible
;
}
private
void
delete_item_click
(
object
sender
,
RoutedEventArgs
e
){
MenuItem
item
=
sender
as
MenuItem
;
if
(
item
==
null
)
...
...
@@ -90,8 +118,13 @@ namespace FSClient
SearchAutoCompleteEntry
entry
=
item
.
DataContext
as
SearchAutoCompleteEntry
??
search_box
.
SelectedItem
as
SearchAutoCompleteEntry
;
if
(
entry
==
null
)
return
;
Broker
.
get_instance
().
DialString
(
entry
.
number
);
return
;
Account
acct
=
item
.
Tag
as
Account
;
if
(
acct
!=
null
)
Broker
.
get_instance
().
DialString
(
acct
,
entry
.
number
);
else
Broker
.
get_instance
().
DialString
(
entry
.
number
);
}
protected
void
item_Click
(
object
sender
,
RoutedEventArgs
e
)
...
...
@@ -182,8 +215,7 @@ namespace FSClient
protected
OurAutoCompleteBox
search_box
;
private
TextBox
real_search_box
;
public
override
bool
HandleSearchBox
(
OurAutoCompleteBox
box
)
{
search_box
=
box
;
search_box
=
box
;
real_search_box
=
search_box
.
GetActualTextbox
();
real_search_box
.
ContextMenu
=
new
ContextMenu
();
real_search_box
.
ContextMenuOpening
+=
search_box_ContextMenuOpening
;
...
...
@@ -197,7 +229,9 @@ namespace FSClient
if
(
number_to_alias
.
Count
>
0
)
refresh_search_box
();
return
true
;
}
}
protected
void
call_current_contact
(){
SearchAutoCompleteEntry
entry
=
search_box
.
SelectedItem
as
SearchAutoCompleteEntry
;
if
(
entry
!=
null
)
...
...
mitchcapper/FSClient/Sofia.cs
浏览文件 @
7cfe2d4d
...
...
@@ -29,7 +29,7 @@ namespace FSClient {
public
static
Field
[]
fields
=
{
/*Default*/
new
Field
(
Field
.
FIELD_TYPE
.
MultiItem
,
"Codec Preferences"
,
"codec-prefs"
,
"codec-prefs"
,
"CELT@48000h@10i,PCMU,PCMA,GSM"
,
""
,
"CELT@32000h"
,
"CELT@48000h@10i"
,
"PCMA"
,
"PCMU"
,
"GSM"
,
"G722"
,
"G7221@16000h"
,
"G7221@32000h"
,
"AAL2-G726-16"
,
"AAL2-G726-24"
,
"AAL2-G726-32"
,
"AAL2-G726-40"
,
"BV16"
,
"BV32"
,
"DVI4@16000h@40i"
,
"DVI4@8000h@20i"
,
"G726-16"
,
"G726-24"
,
"G726-32"
,
"G726-40"
,
"L16"
,
"LPC"
,
"iLBC@30i"
,
"speex@16000h@20i"
,
"speex@32000h@20i"
,
"speex@8000h@20i"
,
"G729"
),
new
Field
(
Field
.
FIELD_TYPE
.
MultiItem
,
"Codec Preferences"
,
"codec-prefs"
,
"codec-prefs"
,
"CELT@48000h@10i,PCMU,PCMA,GSM"
,
""
,
"CELT@32000h"
,
"CELT@48000h@10i"
,
"PCMA"
,
"PCMU"
,
"GSM"
,
"G722"
,
"G7221@16000h"
,
"G7221@32000h"
,
"AAL2-G726-16"
,
"AAL2-G726-24"
,
"AAL2-G726-32"
,
"AAL2-G726-40"
,
"BV16"
,
"BV32"
,
"DVI4@16000h@40i"
,
"DVI4@8000h@20i"
,
"G726-16"
,
"G726-24"
,
"G726-32"
,
"G726-40"
,
"L16"
,
"LPC"
,
"iLBC@30i"
,
"speex@16000h@20i"
,
"speex@32000h@20i"
,
"speex@8000h@20i"
,
"G729"
,
"isac"
),
new
Field
(
Field
.
FIELD_TYPE
.
Combo
,
"Inbound Codec Negotiation"
,
"inbound-codec-negotiation"
,
"inbound-codec-negotiation"
,
"generous"
,
""
,
"generous"
,
"greedy"
,
"scrooge"
),
new
Field
(
Field
.
FIELD_TYPE
.
String
,
"External RTP IP"
,
"ext-rtp-ip"
,
"ext-rtp-ip"
,
"auto-nat"
,
""
),
new
Field
(
Field
.
FIELD_TYPE
.
String
,
"External SIP IP"
,
"ext-sip-ip"
,
"ext-sip-ip"
,
"auto-nat"
,
""
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论