opensips/opensips.patch.rtpproxy

Sat, 24 Mar 2012 21:40:49 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 24 Mar 2012 21:40:49 +0100
changeset 414
fd611cde817f
child 547
1c75a8bb0fec
permissions
-rw-r--r--

Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.

     1 Index: main.c
     2 diff -Nau main.c.orig main.c
     3 --- main.c.orig	2008-06-17 05:19:48 +0200
     4 +++ main.c	2008-08-09 11:58:55 +0200
     5 @@ -86,7 +86,11 @@
     6  	bindhost = NULL;
     8      if ((n = resolve(ia, pf, bindhost, servname, AI_PASSIVE)) != 0)
     9 +#if defined(__sun__)
    10 +	errx(1, "setbindhost");
    11 +#else
    12  	errx(1, "setbindhost: %s", gai_strerror(n));
    13 +#endif
    14  }
    16  static void
    17 Index: rtpp_command.c
    18 diff -Nau rtpp_command.c.orig rtpp_command.c
    19 --- rtpp_command.c.orig	2009-03-25 02:53:17.397562078 +0100
    20 +++ rtpp_command.c	2009-03-25 02:52:59.126654989 +0100
    21 @@ -72,6 +72,36 @@
    22  static void handle_query(struct cfg *, int, struct sockaddr_storage *,
    23    socklen_t, char *, struct rtpp_session *, int);
    25 +#if defined(__sun__)
    26 +static char
    27 +*strsep(char **stringp, const char *delim)
    28 +{
    29 +	char *s;
    30 +	const char *spanp;
    31 +	int c, sc;
    32 +	char *tok;
    33 +
    34 +	if ((s = *stringp) == NULL)
    35 +		return NULL;
    36 +	for (tok = s;;) {
    37 +		c = *s++;
    38 +		spanp = delim;
    39 +		do {
    40 +			if ((sc = *spanp++) == c) {
    41 +				if (c == 0)
    42 +					s = NULL;
    43 +				else
    44 +					s[-1] = 0;
    45 +				*stringp = s;
    46 +				return tok;
    47 +			}
    48 +		} while (sc != 0);
    49 +	}
    50 +	/* NOTREACHED */
    51 +    return NULL;
    52 +}
    53 +
    54 +#endif
    55  static int
    56  create_twinlistener(struct cfg *cf, struct sockaddr *ia, int port, int *fds)
    57  {

mercurial