Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f1b2733c
提交
f1b2733c
authored
11月 13, 2015
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update new pass
上级
f3afab2f
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
46 行增加
和
46 行删除
+46
-46
package.json
html5/verto/verto_communicator/package.json
+1
-1
config.json
html5/verto/verto_communicator/src/config.json
+1
-2
config.json.sample
html5/verto/verto_communicator/src/config.json.sample
+1
-2
modal_settings.html
...verto/verto_communicator/src/partials/modal_settings.html
+2
-2
splash_screen.js
...communicator/src/storageService/services/splash_screen.js
+1
-1
MenuController.js
...icator/src/vertoControllers/controllers/MenuController.js
+14
-7
configService.js
...o_communicator/src/vertoService/services/configService.js
+0
-6
vertoService.js
...to_communicator/src/vertoService/services/vertoService.js
+7
-1
conference_member.c
src/mod/applications/mod_conference/conference_member.c
+7
-16
mod_verto.c
src/mod/endpoints/mod_verto/mod_verto.c
+12
-8
没有找到文件。
html5/verto/verto_communicator/package.json
浏览文件 @
f1b2733c
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"grunt-contrib-copy"
:
"^0.7.0"
,
"grunt-contrib-copy"
:
"^0.7.0"
,
"grunt-contrib-cssmin"
:
"^0.12.0"
,
"grunt-contrib-cssmin"
:
"^0.12.0"
,
"grunt-contrib-htmlmin"
:
"^0.4.0"
,
"grunt-contrib-htmlmin"
:
"^0.4.0"
,
"grunt-contrib-imagemin"
:
"^
0.9.2
"
,
"grunt-contrib-imagemin"
:
"^
1.0.0
"
,
"grunt-contrib-jshint"
:
"^0.11.0"
,
"grunt-contrib-jshint"
:
"^0.11.0"
,
"grunt-contrib-uglify"
:
"^0.7.0"
,
"grunt-contrib-uglify"
:
"^0.7.0"
,
"grunt-contrib-watch"
:
"latest"
,
"grunt-contrib-watch"
:
"latest"
,
...
...
html5/verto/verto_communicator/src/config.json
浏览文件 @
f1b2733c
{
{
"login"
:
"1008"
,
"login"
:
"1008"
,
"password"
:
"1234"
,
"password"
:
"1234"
"dedEncWatermark"
:
3072
}
}
html5/verto/verto_communicator/src/config.json.sample
浏览文件 @
f1b2733c
...
@@ -9,6 +9,5 @@
...
@@ -9,6 +9,5 @@
"autologin": "true",
"autologin": "true",
"autocall": "3500",
"autocall": "3500",
"googlelogin": "true",
"googlelogin": "true",
"wsURL": "wss://gamma.tollfreegateway.com/wss2",
"wsURL": "wss://gamma.tollfreegateway.com/wss2"
"dedEncWatermark": 3072
}
}
html5/verto/verto_communicator/src/partials/modal_settings.html
浏览文件 @
f1b2733c
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Video settings:
</label>
<label>
Video settings:
</label>
<br><br>
<
!-- <a class="btn btn-primary" href="" ng-click="testSpeed()">Check Speed</a> -->
<
a
class=
"btn btn-primary"
href=
""
ng-click=
"testSpeed()"
>
Check Speed
</a>
<span
ng-bind=
"speedMsg"
></span>
<span
ng-bind=
"speedMsg"
></span>
<input
type=
"hidden"
name=
"use_dedenc"
ng-value=
"mydata.useDedenc"
ng-model=
"mydata.useDedenc"
>
<input
type=
"hidden"
name=
"use_dedenc"
ng-value=
"mydata.useDedenc"
ng-model=
"mydata.useDedenc"
>
...
...
html5/verto/verto_communicator/src/storageService/services/splash_screen.js
浏览文件 @
f1b2733c
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
'message'
:
'Check Connection Speed.'
'message'
:
'Check Connection Speed.'
};
};
if
(
storage
.
data
.
autoBand
&&
verto
.
instance
)
{
if
(
storage
.
data
.
autoBand
&&
verto
.
data
.
instance
)
{
verto
.
testSpeed
(
cb
);
verto
.
testSpeed
(
cb
);
}
else
{
}
else
{
resolve
(
result
);
resolve
(
result
);
...
...
html5/verto/verto_communicator/src/vertoControllers/controllers/MenuController.js
浏览文件 @
f1b2733c
...
@@ -10,19 +10,26 @@
...
@@ -10,19 +10,26 @@
$scope
.
storage
=
storage
;
$scope
.
storage
=
storage
;
$rootScope
.
$on
(
'testSpeed'
,
function
(
e
,
data
)
{
$rootScope
.
$on
(
'testSpeed'
,
function
(
e
,
data
)
{
var
dedEncWatermark
=
storage
.
data
.
dedEncWatermark
;
var
vidQual
=
storage
.
data
.
vidQual
;
var
vidQual
=
storage
.
data
.
vidQual
;
var
bwp
=
4
;
$scope
.
bandDown
=
data
.
downKPS
;
$scope
.
bandDown
=
data
.
downKPS
;
$scope
.
bandUp
=
data
.
upKPS
;
$scope
.
bandUp
=
data
.
upKPS
;
$scope
.
dedEnc
=
storage
.
data
.
useDedenc
;
$scope
.
iconClass
=
'mdi-device-signal-wifi-3-bar'
;
if
(
data
.
downKPS
<
2000
)
{
bwp
--
;
}
if
(
data
.
upKPS
<
2000
)
{
bwp
--
;
}
$scope
.
iconClass
=
'mdi-device-signal-wifi-4-bar'
;
if
(
$scope
.
bandDown
<
dedEncWatermark
)
{
if
(
bwp
<
4
)
{
$scope
.
iconClass
=
'mdi-device-signal-wifi-1-bar dedenc
'
;
$scope
.
iconClass
=
'mdi-device-signal-wifi-3-bar
'
;
}
else
if
(
$scope
.
bandDown
>=
2
*
dedEncWatermark
)
{
}
else
if
(
bwp
<
2
)
{
$scope
.
iconClass
=
'mdi-device-signal-wifi-4-bar
'
;
$scope
.
iconClass
=
'mdi-device-signal-wifi-1-bar dedenc
'
;
}
}
verto
.
videoQuality
.
forEach
(
function
(
vid
)
{
verto
.
videoQuality
.
forEach
(
function
(
vid
)
{
...
...
html5/verto/verto_communicator/src/vertoService/services/configService.js
浏览文件 @
f1b2733c
...
@@ -41,12 +41,6 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
...
@@ -41,12 +41,6 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
verto
.
data
.
googleclientid
=
data
.
googleclientid
;
verto
.
data
.
googleclientid
=
data
.
googleclientid
;
}
}
if
(
data
.
dedEncWatermark
)
{
storage
.
data
.
dedEncWatermark
=
data
.
dedEncWatermark
;
}
else
{
storage
.
data
.
dedEncWatermark
=
3072
;
}
angular
.
extend
(
verto
.
data
,
data
);
angular
.
extend
(
verto
.
data
,
data
);
/**
/**
...
...
html5/verto/verto_communicator/src/vertoService/services/vertoService.js
浏览文件 @
f1b2733c
...
@@ -76,6 +76,12 @@ var bandwidth = [{
...
@@ -76,6 +76,12 @@ var bandwidth = [{
},
{
},
{
id
:
'2048'
,
id
:
'2048'
,
label
:
'2mb'
label
:
'2mb'
},
{
id
:
'3196'
,
label
:
'3mb'
},
{
id
:
'4192'
,
label
:
'4mb'
},
{
},
{
id
:
'5120'
,
id
:
'5120'
,
label
:
'5mb'
label
:
'5mb'
...
@@ -812,7 +818,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
...
@@ -812,7 +818,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
if
(
storage
.
data
.
autoBand
)
{
if
(
storage
.
data
.
autoBand
)
{
storage
.
data
.
incomingBandwidth
=
downBand
;
storage
.
data
.
incomingBandwidth
=
downBand
;
storage
.
data
.
outgoingBandwidth
=
upBand
;
storage
.
data
.
outgoingBandwidth
=
upBand
;
storage
.
data
.
useDedenc
=
downBand
<=
storage
.
data
.
dedEncWatermark
;
storage
.
data
.
useDedenc
=
false
;
storage
.
data
.
vidQual
=
'hd'
;
storage
.
data
.
vidQual
=
'hd'
;
if
(
upBand
<
512
)
{
if
(
upBand
<
512
)
{
...
...
src/mod/applications/mod_conference/conference_member.c
浏览文件 @
f1b2733c
...
@@ -768,27 +768,18 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
...
@@ -768,27 +768,18 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
}
}
if
((
var
=
switch_channel_get_variable
(
member
->
channel
,
"rtp_video_max_bandwidth_in"
)))
{
if
((
var
=
switch_channel_get_variable
(
member
->
channel
,
"rtp_video_max_bandwidth_in"
)))
{
int
tmp
=
atoi
(
var
);
member
->
max_bw_in
=
switch_parse_bandwidth_string
(
var
);
if
(
tmp
>
0
)
{
member
->
max_bw_in
=
tmp
;
}
printf
(
"FORCE MAX %d
\n
"
,
member
->
max_bw_in
);
}
}
if
((
var
=
switch_channel_get_variable
(
member
->
channel
,
"rtp_video_max_bandwidth_out"
)))
{
if
((
var
=
switch_channel_get_variable
(
member
->
channel
,
"rtp_video_max_bandwidth_out"
)))
{
int
tmp
=
atoi
(
var
);
member
->
max_bw_out
=
switch_parse_bandwidth_string
(
var
);;
if
(
tmp
>
0
)
{
member
->
max_bw_out
=
tmp
;
if
(
member
->
max_bw_out
<
conference
->
video_codec_settings
.
video
.
bandwidth
)
{
conference_utils_member_set_flag_locked
(
member
,
MFLAG_NO_MINIMIZE_ENCODING
);
if
(
member
->
max_bw_out
<
conference
->
video_codec_settings
.
video
.
bandwidth
)
{
switch_core_media_set_outgoing_bitrate
(
member
->
session
,
SWITCH_MEDIA_TYPE_VIDEO
,
member
->
max_bw_out
);
printf
(
"DED ENCODER for %d
\n
"
,
member
->
max_bw_out
);
conference_utils_member_set_flag_locked
(
member
,
MFLAG_NO_MINIMIZE_ENCODING
);
switch_core_media_set_outgoing_bitrate
(
member
->
session
,
SWITCH_MEDIA_TYPE_VIDEO
,
member
->
max_bw_out
);
}
}
}
}
}
switch_channel_set_variable_printf
(
channel
,
"conference_member_id"
,
"%d"
,
member
->
id
);
switch_channel_set_variable_printf
(
channel
,
"conference_member_id"
,
"%d"
,
member
->
id
);
switch_channel_set_variable_printf
(
channel
,
"conference_moderator"
,
"%s"
,
conference_utils_member_test_flag
(
member
,
MFLAG_MOD
)
?
"true"
:
"false"
);
switch_channel_set_variable_printf
(
channel
,
"conference_moderator"
,
"%s"
,
conference_utils_member_test_flag
(
member
,
MFLAG_MOD
)
?
"true"
:
"false"
);
switch_channel_set_variable_printf
(
channel
,
"conference_ghost"
,
"%s"
,
conference_utils_member_test_flag
(
member
,
MFLAG_GHOST
)
?
"true"
:
"false"
);
switch_channel_set_variable_printf
(
channel
,
"conference_ghost"
,
"%s"
,
conference_utils_member_test_flag
(
member
,
MFLAG_GHOST
)
?
"true"
:
"false"
);
...
...
src/mod/endpoints/mod_verto/mod_verto.c
浏览文件 @
f1b2733c
...
@@ -3335,7 +3335,7 @@ static switch_bool_t verto__info_func(const char *method, cJSON *params, jsock_t
...
@@ -3335,7 +3335,7 @@ static switch_bool_t verto__info_func(const char *method, cJSON *params, jsock_t
static
switch_bool_t
verto__invite_func
(
const
char
*
method
,
cJSON
*
params
,
jsock_t
*
jsock
,
cJSON
**
response
)
static
switch_bool_t
verto__invite_func
(
const
char
*
method
,
cJSON
*
params
,
jsock_t
*
jsock
,
cJSON
**
response
)
{
{
cJSON
*
obj
=
cJSON_CreateObject
(),
*
screenShare
=
NULL
,
*
dedEnc
=
NULL
,
*
mirrorInput
,
*
json_ptr
=
NULL
;
cJSON
*
obj
=
cJSON_CreateObject
(),
*
screenShare
=
NULL
,
*
dedEnc
=
NULL
,
*
mirrorInput
,
*
json_ptr
=
NULL
,
*
bandwidth
=
NULL
;
switch_core_session_t
*
session
=
NULL
;
switch_core_session_t
*
session
=
NULL
;
switch_channel_t
*
channel
;
switch_channel_t
*
channel
;
switch_event_t
*
var_event
;
switch_event_t
*
var_event
;
...
@@ -3345,7 +3345,7 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
...
@@ -3345,7 +3345,7 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
cJSON
*
dialog
;
cJSON
*
dialog
;
verto_pvt_t
*
tech_pvt
;
verto_pvt_t
*
tech_pvt
;
char
name
[
512
];
char
name
[
512
];
const
char
*
var
,
*
destination_number
,
*
call_id
=
NULL
,
*
sdp
=
NULL
,
*
bandwidth
=
NULL
,
const
char
*
var
,
*
destination_number
,
*
call_id
=
NULL
,
*
sdp
=
NULL
,
*
caller_id_name
=
NULL
,
*
caller_id_number
=
NULL
,
*
remote_caller_id_name
=
NULL
,
*
remote_caller_id_number
=
NULL
,
*
context
=
NULL
;
*
caller_id_name
=
NULL
,
*
caller_id_number
=
NULL
,
*
remote_caller_id_name
=
NULL
,
*
remote_caller_id_number
=
NULL
,
*
context
=
NULL
;
switch_event_header_t
*
hp
;
switch_event_header_t
*
hp
;
...
@@ -3417,15 +3417,19 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
...
@@ -3417,15 +3417,19 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
switch_channel_set_flag
(
channel
,
CF_VIDEO_MIRROR_INPUT
);
switch_channel_set_flag
(
channel
,
CF_VIDEO_MIRROR_INPUT
);
}
}
if
((
bandwidth
=
cJSON_GetObjectCstr
(
dialog
,
"outgoingBandwidth"
)))
{
if
((
bandwidth
=
cJSON_GetObjectItem
(
dialog
,
"outgoingBandwidth"
)))
{
if
(
strcasecmp
(
bandwidth
,
"default"
))
{
if
(
!
zstr
(
bandwidth
->
valuestring
)
&&
strcasecmp
(
bandwidth
->
valuestring
,
"default"
))
{
switch_channel_set_variable
(
channel
,
"rtp_video_max_bandwidth_in"
,
bandwidth
);
switch_channel_set_variable
(
channel
,
"rtp_video_max_bandwidth_in"
,
bandwidth
->
valuestring
);
}
else
if
(
bandwidth
->
valueint
)
{
switch_channel_set_variable_printf
(
channel
,
"rtp_video_max_bandwidth_in"
,
"%d"
,
bandwidth
->
valueint
);
}
}
}
}
if
((
bandwidth
=
cJSON_GetObjectCstr
(
dialog
,
"incomingBandwidth"
)))
{
if
((
bandwidth
=
cJSON_GetObjectItem
(
dialog
,
"incomingBandwidth"
)))
{
if
(
strcasecmp
(
bandwidth
,
"default"
))
{
if
(
!
zstr
(
bandwidth
->
valuestring
)
&&
strcasecmp
(
bandwidth
->
valuestring
,
"default"
))
{
switch_channel_set_variable
(
channel
,
"rtp_video_max_bandwidth_out"
,
bandwidth
);
switch_channel_set_variable
(
channel
,
"rtp_video_max_bandwidth_out"
,
bandwidth
->
valuestring
);
}
else
if
(
bandwidth
->
valueint
)
{
switch_channel_set_variable_printf
(
channel
,
"rtp_video_max_bandwidth_out"
,
"%d"
,
bandwidth
->
valueint
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论