Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
bb424c78
Commit
bb424c78
authored
Dec 04, 2013
by
jehan
Committed by
Guillaume BIENKOWSKI
Dec 06, 2013
Browse files
fix early media call forking to avoid capture card sharing between parties
parent
5f6e15db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tester/call_tester.c
tester/call_tester.c
+6
-4
No files found.
tester/call_tester.c
View file @
bb424c78
...
...
@@ -1034,7 +1034,8 @@ static void early_media_call_forking(void) {
LinphoneCall
*
marie2_call
;
LinphoneCall
*
pauline_call
;
int
dummy
=
0
;
char
hellopath
[
256
];
char
ringbackpath
[
256
];
snprintf
(
ringbackpath
,
sizeof
(
ringbackpath
),
"%s/sounds/hello8000.wav"
/*use hello because rinback is too short*/
,
liblinphone_tester_file_prefix
);
pol
.
automatically_accept
=
1
;
pol
.
automatically_initiate
=
1
;
...
...
@@ -1047,17 +1048,18 @@ static void early_media_call_forking(void) {
linphone_core_enable_video
(
marie1
->
lc
,
TRUE
,
TRUE
);
linphone_core_set_video_policy
(
marie1
->
lc
,
&
pol
);
/*use playfile for marie1 to avoid locking on capture card*/
linphone_core_use_files
(
marie1
->
lc
,
TRUE
);
snprintf
(
hellopath
,
sizeof
(
hellopath
),
"%s/sounds/hello8000.wav"
,
liblinphone_tester_file_prefix
);
linphone_core_set_play_file
(
marie1
->
lc
,
hellopath
);
linphone_core_set_play_file
(
marie1
->
lc
,
ringbackpath
);
linphone_core_enable_video
(
marie2
->
lc
,
TRUE
,
TRUE
);
linphone_core_set_video_policy
(
marie2
->
lc
,
&
pol
);
linphone_core_set_audio_port_range
(
marie2
->
lc
,
40200
,
40300
);
linphone_core_set_video_port_range
(
marie2
->
lc
,
40400
,
40500
);
/*use playfile for marie2 to avoid locking on capture card*/
linphone_core_use_files
(
marie2
->
lc
,
TRUE
);
linphone_core_set_play_file
(
marie2
->
lc
,
ringbackpath
);
lcs
=
ms_list_append
(
lcs
,
marie1
->
lc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment