build sdp lib inline w/ core

This commit is contained in:
Anthony Minessale 2013-01-26 12:52:36 -06:00
parent 24868979f7
commit 9cc550ee18
3 changed files with 21 additions and 2 deletions

View File

@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = foreign
NAME = freeswitch NAME = freeswitch
AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(SWITCH_ANSI_CFLAGS) AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(SWITCH_ANSI_CFLAGS)
AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS) -Ilibs/sofia-sip/libsofia-sip-ua/sdp/sofia-sip -Ilibs/sofia-sip/libsofia-sip-ua/su AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS) -Ilibs/sofia-sip/libsofia-sip-ua/sdp -Ilibs/sofia-sip/libsofia-sip-ua/su
AM_LDFLAGS = $(SWITCH_AM_LDFLAGS) AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
DEFAULT_SOUNDS=en-us-callie-8000 DEFAULT_SOUNDS=en-us-callie-8000
@ -242,6 +242,7 @@ libfreeswitch_la_SOURCES = \
src/switch_core_port_allocator.c \ src/switch_core_port_allocator.c \
src/switch_core.c \ src/switch_core.c \
src/switch_core_media.c \ src/switch_core_media.c \
src/switch_sdp.c \
src/switch_scheduler.c \ src/switch_scheduler.c \
src/switch_core_db.c \ src/switch_core_db.c \
src/switch_dso.c \ src/switch_dso.c \

View File

@ -39,7 +39,7 @@
#include "private/switch_core_pvt.h" #include "private/switch_core_pvt.h"
#include <switch_curl.h> #include <switch_curl.h>
#include <errno.h> #include <errno.h>
#include <sdp.h> #include <sofia-sip/sdp.h>
#include <sofia-sip/su.h> #include <sofia-sip/su.h>
SWITCH_DECLARE(switch_t38_options_t *) switch_core_media_process_udptl(switch_core_session_t *session, sdp_session_t *sdp, sdp_media_t *m); SWITCH_DECLARE(switch_t38_options_t *) switch_core_media_process_udptl(switch_core_session_t *session, sdp_session_t *sdp, sdp_media_t *m);

18
src/switch_sdp.c Normal file
View File

@ -0,0 +1,18 @@
#include <sofia-sip/sdp.h>
sdp_connection_t *sdp_media_connections(sdp_media_t const *m)
{
if (m) {
if (m->m_connections)
return m->m_connections;
if (m->m_session)
return m->m_session->sdp_connection;
}
return NULL;
}
#include <su_alloc.c>
#include <su_errno.c>
#include <su_string.c>
#include <sdp_parse.c>