adios to exosip

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2900 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-09-30 19:16:40 +00:00
parent 00fa0c6fab
commit 9f044c701d
6 changed files with 0 additions and 4125 deletions

View File

@ -1,29 +0,0 @@
CFLAGS += -I.
LDFLAGS += -leXosip2
OBJS=osip_rfc3264.o
ifeq ($(OSARCH),Darwin)
LINKER=$(CC)
else
LINKER=$(CC)
endif
all: depends $(OBJS) $(MODNAME).$(DYNAMIC_LIB_EXTEN)
depends:
#MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install jrtplib --prefix=$(PREFIX) --disable-gst
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libosip2-2.2.3.tar.gz --prefix=$(PREFIX)
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install libeXosip2-2.2.3.tar.gz --disable-josua --prefix=$(PREFIX)
%.o: %.c
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
$(LINKER) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(OBJS) $(MODNAME).o $(LDFLAGS)
clean:
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
install:
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod

File diff suppressed because it is too large Load Diff

View File

@ -1,244 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="mod_exosip"
ProjectGUID="{45DF84ED-D24A-4FF6-B5B0-0A9A5FDB9552}"
RootNamespace="mod_exosip"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalOptions="/D _CRT_SECURE_NO_DEPRECATE"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\include&quot;;&quot;$(InputDir)..\..\..\..\libs\include&quot;;&quot;$(InputDir)..\..\..\..\libs\libeXosip2-2.2.2\include&quot;;&quot;$(InputDir)..\..\..\..\libs\libosip2-2.2.2\include&quot;;&quot;$(InputDir)..\..\..\..\libs\libosip2-2.2.2\src\osipparser2&quot;;."
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;_CRT_SECURE_NO_DEPRECATE"
GeneratePreprocessedFile="0"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/NODEFAULTLIB:LIBCMT"
AdditionalDependencies="Ws2_32.lib Iphlpapi.lib libcpmt.lib"
ShowProgress="0"
OutputFile="$(SolutionDir)$(OutDir)/mod/$(InputName).dll"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\libeXosip2\platform\vsnet\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\osip\platform\vsnet\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\w32\vsnet\$(OutDir)&quot;"
IgnoreAllDefaultLibraries="false"
IgnoreDefaultLibraryNames=""
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)$(TargetName).pdb"
SubSystem="2"
ImportLibrary="$(OutDir)/mod_exosip.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
CommandLine=""
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="&quot;$(InputDir)..\..\..\include&quot;;&quot;$(InputDir)..\..\..\..\libs\include&quot;;&quot;$(InputDir)..\..\..\..\libs\libeXosip2-2.2.2\include&quot;;&quot;$(InputDir)..\..\..\..\libs\libosip2-2.2.2\include&quot;;&quot;$(InputDir)..\..\..\..\libs\libosip2-2.2.2\src\osipparser2&quot;;."
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS;_CRT_SECURE_NO_DEPRECATE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="Ws2_32.lib Iphlpapi.lib libcpmt.lib"
OutputFile="$(SolutionDir)$(OutDir)/mod/$(InputName).dll"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;$(InputDir)..\..\..\..\libs\libeXosip2\platform\vsnet\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\libs\osip\platform\vsnet\$(OutDir)&quot;;&quot;$(InputDir)..\..\..\..\w32\vsnet\$(OutDir)&quot;"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)$(TargetName).pdb"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/mod_exosip.lib"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\mod_exosip.c"
>
</File>
<File
RelativePath=".\osip_rfc3264.c"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
WarningLevel="3"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
WarningLevel="3"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\..\..\..\libs\osip\src\osipparser2\osip_rfc3264i.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

File diff suppressed because it is too large Load Diff

View File

@ -1,309 +0,0 @@
/*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001,2002,2003,2004 Aymeric MOIZARD jack@atosc.org
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __SDP_RFC3264_H__
#define __SDP_RFC3264_H__
#include <osipparser2/osip_list.h>
#include <osipparser2/sdp_message.h>
/**
* @file osip_rfc3264.h
* @brief oSIP sdp negotiation facility.
*/
/**
* @defgroup oSIP_rfc3264 oSIP sdp negotiation facility.
* @ingroup osip2_sdp
* @{
*/
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Structure to hold support for codecs.
* @struct osip_rfc3264
*/
struct osip_rfc3264;
/**
* Maximum number of supported audio payload.
* @def MAX_AUDIO_CODECS
*/
#define MAX_AUDIO_CODECS 100
/**
* Maximum number of supported video payload.
* @def MAX_VIDEO_CODECS
*/
#define MAX_VIDEO_CODECS 100
/**
* Maximum number of supported t38 config.
* @def MAX_T38_CODECS
*/
#define MAX_T38_CODECS 2
/**
* Maximum number of supported application config.
* @def MAX_APP_CODECS
*/
#define MAX_APP_CODECS 100
/**
* Initialize negotiation facility..
* @param config The element to work on.
*/
int osip_rfc3264_init (struct osip_rfc3264 **config);
/**
* Free negotiation facility.
* @param config The element to work on.
*/
void osip_rfc3264_free (struct osip_rfc3264 *config);
/**
* Test if a media exist in the configuration.
* @param config The element to work on.
* @param pos The index of the media element.
*/
int osip_rfc3264_endof_media (struct osip_rfc3264 *config, int pos);
/**
* Get a media from the configuration.
* @param config The element to work on.
* @param pos The index of the media element to get.
*/
sdp_media_t *osip_rfc3264_get (struct osip_rfc3264 *config, int pos);
/**
* Remove a media from the configuration.
* @param config The element to work on.
* @param pos The index of the media element to remove.
*/
int osip_rfc3264_remove (struct osip_rfc3264 *config, int pos);
/**
* Remove all medias from the configuration.
* @param config The element to work on.
*/
int osip_rfc3264_reset_media (struct osip_rfc3264 *config);
/**
* Add a media in the configuration.
* @param config The element to work on.
* @param med The media element to add.
* @param pos The index of the media element to add.
*/
int osip_rfc3264_add_audio_media (struct osip_rfc3264 *config,
sdp_media_t * med, int pos);
/**
* Remove a media in the configuration.
* @param config The element to work on.
* @param pos The index of the media element to remove.
*/
int osip_rfc3264_del_audio_media (struct osip_rfc3264 *config, int pos);
/**
* Add a media (for T.38) in the configuration.
* @param config The element to work on.
* @param med The media element to add.
* @param pos The index of the media element to add.
*/
int osip_rfc3264_add_t38_media (struct osip_rfc3264 *config,
sdp_media_t * med, int pos);
/**
* Remove a media (for T.38) in the configuration.
* @param config The element to work on.
* @param pos The index of the media element to remove.
*/
int osip_rfc3264_del_t38_media (struct osip_rfc3264 *config, int pos);
/**
* Add a media (for video) in the configuration.
* @param config The element to work on.
* @param med The media element to add.
* @param pos The index of the media element to add.
*/
int osip_rfc3264_add_video_media (struct osip_rfc3264 *config,
sdp_media_t * med, int pos);
/**
* Remove a media in the configuration.
* @param config The element to work on.
* @param pos The index of the media element to remove.
*/
int osip_rfc3264_del_video_media (struct osip_rfc3264 *config, int pos);
/**
* Search for support of a special codec.
* @param config The element to work on.
*/
sdp_media_t *osip_rfc3264_find_audio (struct osip_rfc3264 *config,
char *payload, char *rtpmap);
/**
* Search for support of a special codec.
* @param config The element to work on.
* @param payload The payload to find.
* @param rtpmap The rtpmap for the payload.
*/
sdp_media_t *osip_rfc3264_find_video (struct osip_rfc3264 *config,
char *payload, char *rtpmap);
/**
* Search for support of a special codec.
* @param config The element to work on.
* @param payload The payload to find.
*/
sdp_media_t *osip_rfc3264_find_t38 (struct osip_rfc3264 *config, char *payload);
/**
* Search for support of a special codec.
* @param config The element to work on.
* @param payload The payload to find.
*/
sdp_media_t *osip_rfc3264_find_app (struct osip_rfc3264 *config, char *payload);
/**
* Compare remote sdp packet against local supported media.
* Only one media line is checked.
*
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param audio_tab The local list of media supported by both side.
* @param video_tab The local list of media supported by both side.
* @param t38_tab The local list of media supported by both side.
* @param app_tab The local list of media supported by both side.
* @param pos_media The position of the media line to match.
*/
int osip_rfc3264_match (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
sdp_media_t * audio_tab[],
sdp_media_t * video_tab[],
sdp_media_t * t38_tab[],
sdp_media_t * app_tab[], int pos_media);
/**
* Compare remote sdp packet against local supported media for audio.
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param remote_med The remote Media SDP line.
* @param audio_tab The local list of media supported by both side.
*/
int osip_rfc3264_match_audio (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
sdp_media_t * remote_med,
sdp_media_t * audio_tab[]);
/**
* Compare remote sdp packet against local supported media for video.
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param remote_med The remote Media SDP line.
* @param video_tab The local list of media supported by both side.
*/
int osip_rfc3264_match_video (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
sdp_media_t * remote_med,
sdp_media_t * video_tab[]);
/**
* Compare remote sdp packet against local supported media for t38.
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param remote_med The remote Media SDP line.
* @param t38_tab The local list of media supported by both side.
*/
int osip_rfc3264_match_t38 (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
sdp_media_t * remote_med, sdp_media_t * t38_tab[]);
/**
* Compare remote sdp packet against local supported media for application.
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param remote_med The remote Media SDP line.
* @param app_tab The local list of media supported by both side.
*/
int osip_rfc3264_match_app (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
sdp_media_t * remote_med, sdp_media_t * app_tab[]);
/**
* Prepare an uncomplete answer.
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param local_sdp The local SDP packet to prepare.
* @param length The local SDP packet's length.
*/
int osip_rfc3264_prepare_answer (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
char *local_sdp, int length);
/**
* Agree to support a specific codec.
* This method should be called for each codec returned by
* osip_rfc3264_match(...) that the calle agree to support.
*
* @param config The element to work on.
* @param remote_sdp The remote SDP packet.
* @param local_sdp The local SDP packet to complete.
* @param med One of the media returned by osip_rfc3264_match.
* @param mline The position of the media line to complete.
*/
int
osip_rfc3264_complete_answer (struct osip_rfc3264 *config,
sdp_message_t * remote_sdp,
sdp_message_t * local_sdp,
sdp_media_t * med, int mline);
/**
* Agree to support a specific codec.
* This method should be called for each codec returned by
* osip_rfc3264_match(...)
*
* @param config The element to work on.
* @param med One of the media returned by osip_rfc3264_match
* @param remote_sdp The remote SDP packet.
* @param local_sdp The local SDP packet to prepare.
*/
int osip_rfc3264_accept_codec (struct osip_rfc3264 *config,
sdp_media_t * med,
sdp_message_t * remote_sdp,
sdp_message_t * local_sdp);
/**
* List supported codecs. (for debugging purpose only)
*
* @param config The element to work on.
*/
int __osip_rfc3264_print_codecs (struct osip_rfc3264 *config);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,41 +0,0 @@
/*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001,2002,2003,2004,2005 Aymeric MOIZARD jack@atosc.org
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __SDP_RFC3264I_H__
#define __SDP_RFC3264I_H__
#include <osipparser2/osip_list.h>
#include <osipparser2/sdp_message.h>
#include <osip_rfc3264.h>
#ifndef DOXYGEN
typedef struct osip_rfc3264 osip_rfc3264_t;
struct osip_rfc3264
{
sdp_media_t *audio_medias[MAX_AUDIO_CODECS];
sdp_media_t *video_medias[MAX_VIDEO_CODECS];
sdp_media_t *t38_medias[MAX_T38_CODECS];
sdp_media_t *app_medias[MAX_APP_CODECS];
};
#endif
#endif