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
04a7e61e
Commit
04a7e61e
authored
Apr 29, 2010
by
Simon Morlat
Browse files
- change stun policy regarding symmetric firewalls
- fix crash when received= but no rport=
parent
737997cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
configure.in
configure.in
+1
-1
coreapi/misc.c
coreapi/misc.c
+4
-0
coreapi/sal_eXosip2.c
coreapi/sal_eXosip2.c
+9
-3
mediastreamer2
mediastreamer2
+1
-1
No files found.
configure.in
View file @
04a7e61e
dnl Process this file with autoconf to produce a configure script.
AC_INIT([linphone],[3.2.99.
4
],[linphone-developers@nongnu.org])
AC_INIT([linphone],[3.2.99.
5
],[linphone-developers@nongnu.org])
AC_CANONICAL_SYSTEM
dnl Source packaging numbers
...
...
coreapi/misc.c
View file @
04a7e61e
...
...
@@ -548,8 +548,10 @@ void linphone_core_run_stun_tests(LinphoneCore *lc, LinphoneCall *call){
}
else
{
if
(
!
cone_audio
)
{
ms_warning
(
"NAT is symmetric for audio port"
);
/*
ac->addr[0]='\0';
ac->port=0;
*/
}
}
if
(
sock2
>=
0
){
...
...
@@ -558,8 +560,10 @@ void linphone_core_run_stun_tests(LinphoneCore *lc, LinphoneCall *call){
}
else
{
if
(
!
cone_video
)
{
ms_warning
(
"NAT is symmetric for video port."
);
/*
vc->addr[0]='\0';
vc->port=0;
*/
}
}
}
...
...
coreapi/sal_eXosip2.c
View file @
04a7e61e
...
...
@@ -361,10 +361,15 @@ MSList *sal_get_pending_auths(Sal *sal){
static
int
extract_received_rport
(
osip_message_t
*
msg
,
const
char
**
received
,
int
*
rportval
){
osip_via_t
*
via
=
NULL
;
osip_generic_param_t
*
param
=
NULL
;
const
char
*
rport
;
const
char
*
rport
=
NULL
;
*
rportval
=
5060
;
*
received
=
NULL
;
osip_message_get_via
(
msg
,
0
,
&
via
);
if
(
!
via
)
return
-
1
;
if
(
via
->
port
&&
via
->
port
[
0
]
!=
'\0'
)
*
rportval
=
atoi
(
via
->
port
);
osip_via_param_get_byname
(
via
,
"rport"
,
&
param
);
if
(
param
)
{
rport
=
param
->
gvalue
;
...
...
@@ -375,7 +380,8 @@ static int extract_received_rport(osip_message_t *msg, const char **received, in
param
=
NULL
;
osip_via_param_get_byname
(
via
,
"received"
,
&
param
);
if
(
param
)
*
received
=
param
->
gvalue
;
else
return
-
1
;
if
(
rport
==
NULL
&&
*
received
==
NULL
)
return
-
1
;
return
0
;
}
...
...
mediastreamer2
@
b437bd3b
Subproject commit
166db20a49a308e161d7b5c74fdc5aff000db9a2
Subproject commit
b437bd3bcac6ce8f09218168ae75cc11e9a9255e
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