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
external
sofia-sip
Commits
85acb072
Commit
85acb072
authored
Jun 15, 2006
by
Kai Vehmanen
Browse files
Modified soa to use the bnf host_is_local().
darcs-hash:20060615145720-7659e-b9dda181fe4239e7865986e5947b9545b0bf1504.gz
parent
efdbea72
Changes
2
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/soa/Makefile.am
View file @
85acb072
...
...
@@ -11,6 +11,7 @@
INCLUDES
=
-I
$(srcdir)
/../sdp
-I
../sdp
\
-I
$(srcdir)
/../sip
-I
../sip
\
-I
$(srcdir)
/../ipt
-I
../ipt
\
-I
$(srcdir)
/../ipt
-I
../bnf
\
-I
$(srcdir)
/../su
-I
../su
# ----------------------------------------------------------------------
...
...
@@ -40,6 +41,7 @@ LDADD = libsoa.la \
../sip/libsip.la
\
../sdp/libsdp.la
\
../ipt/libipt.la
\
../ipt/libbnf.la
\
../su/libsu.la
test_soa_LDFLAGS
=
-static
...
...
libsofia-sip-ua/soa/soa.c
View file @
85acb072
...
...
@@ -47,6 +47,7 @@
#include "sofia-sip/soa_session.h"
#include "sofia-sip/soa_add.h"
#include <sofia-sip/hostdomain.h>
#include <sofia-sip/su_tagarg.h>
#include <sofia-sip/su_localinfo.h>
#include <sofia-sip/su_uniqueid.h>
...
...
@@ -1716,12 +1717,9 @@ soa_init_sdp_origin(soa_session_t *ss, sdp_origin_t *o, char buffer[64])
if
(
!
c
->
c_nettype
||
!
c
->
c_address
||
strcmp
(
c
->
c_address
,
""
)
==
0
||
strcasecmp
(
c
->
c_address
,
"localhost"
)
==
0
||
strcasecmp
(
c
->
c_address
,
"localhost.localdomain"
)
==
0
||
strcmp
(
c
->
c_address
,
"0.0.0.0"
)
==
0
||
strcmp
(
c
->
c_address
,
"127.0.0.1"
)
==
0
||
strcmp
(
c
->
c_address
,
"::"
)
==
0
||
strcmp
(
c
->
c_address
,
"::1"
)
==
0
)
{
!
host_is_local
(
c
->
c_address
)
)
{
return
soa_init_sdp_connection
(
ss
,
c
,
buffer
);
}
...
...
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