mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
fold version macros into runtime functions to avoid cascade rebuilds when modifying the core
This commit is contained in:
@@ -76,7 +76,6 @@
|
||||
#define GSMOPEN_ALSA
|
||||
#endif // NO_ALSA
|
||||
#include <switch.h>
|
||||
#include <switch_version.h>
|
||||
#ifndef WIN32
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -132,7 +131,7 @@
|
||||
//#define SAMPLES_PER_FRAME SAMPLERATE_GSMOPEN/50
|
||||
|
||||
#ifndef GSMOPEN_SVN_VERSION
|
||||
#define GSMOPEN_SVN_VERSION SWITCH_VERSION_FULL
|
||||
#define GSMOPEN_SVN_VERSION switch_version_full()
|
||||
#endif /* GSMOPEN_SVN_VERSION */
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -66,7 +66,6 @@
|
||||
#define SAMPLERATE_GSMOPEN 8000
|
||||
|
||||
#include <switch.h>
|
||||
#include <switch_version.h>
|
||||
#ifndef WIN32
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -104,7 +103,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef GSMOPEN_SVN_VERSION
|
||||
#define GSMOPEN_SVN_VERSION SWITCH_VERSION_FULL
|
||||
#define GSMOPEN_SVN_VERSION switch_version_full()
|
||||
#endif /* GSMOPEN_SVN_VERSION */
|
||||
|
||||
#include "ctb-0.16/ctb.h"
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
|
||||
#define HAVE_APR
|
||||
#include <switch.h>
|
||||
#include <switch_version.h>
|
||||
#define MODNAME "mod_h323"
|
||||
#define OpalT38_IFP_COR GetOpalT38_IFP_COR()
|
||||
#define OpalT38_IFP_PRE GetOpalT38_IFP_PRE()
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#define _DEFS_H_
|
||||
|
||||
/* formatation macros */
|
||||
#include "switch_version.h"
|
||||
#include "revision.h"
|
||||
|
||||
#define KHOMP_LOG __FILE__, __SWITCH_FUNC__, __LINE__
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
|
||||
|
||||
#include <switch.h>
|
||||
#include <switch_version.h>
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/time.h>
|
||||
@@ -85,7 +84,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef SKYPOPEN_SVN_VERSION
|
||||
#define SKYPOPEN_SVN_VERSION SWITCH_VERSION_FULL
|
||||
#define SKYPOPEN_SVN_VERSION switch_version_full()
|
||||
#endif /* SKYPOPEN_SVN_VERSION */
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
#define SOFIA_QUEUE_SIZE 50000
|
||||
#define HAVE_APR
|
||||
#include <switch.h>
|
||||
#include <switch_version.h>
|
||||
#define SOFIA_NAT_SESSION_TIMEOUT 90
|
||||
#define SOFIA_MAX_ACL 100
|
||||
#ifdef _MSC_VER
|
||||
@@ -96,7 +95,6 @@ typedef struct private_object private_object_t;
|
||||
|
||||
#define MULTICAST_EVENT "multicast::event"
|
||||
#define SOFIA_REPLACES_HEADER "_sofia_replaces_"
|
||||
#define SOFIA_USER_AGENT "FreeSWITCH-mod_sofia/" SWITCH_VERSION_FULL
|
||||
#define SOFIA_CHAT_PROTO "sip"
|
||||
#define SOFIA_MULTIPART_PREFIX "sip_mp_"
|
||||
#define SOFIA_MULTIPART_PREFIX_T "~sip_mp_"
|
||||
|
||||
@@ -3742,7 +3742,8 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
||||
profile->auto_rtp_bugs = RTP_BUG_CISCO_SKIP_MARK_BIT_2833;// | RTP_BUG_SONUS_SEND_INVALID_TIMESTAMP_2833;
|
||||
|
||||
profile->pool = pool;
|
||||
profile->user_agent = SOFIA_USER_AGENT;
|
||||
|
||||
profile->user_agent = switch_core_sprintf(profile->pool, "FreeSWITCH-mod_sofia/%s", switch_version_full());
|
||||
|
||||
profile->name = switch_core_strdup(profile->pool, xprofilename);
|
||||
switch_snprintf(url, sizeof(url), "sofia_reg_%s", xprofilename);
|
||||
|
||||
Reference in New Issue
Block a user