[asterisk-users] UniMRCP and Asterisk 14
Richard Kenner
kenner at gnat.com
Mon Mar 27 09:20:50 CDT 2017
> I can't speak for the MRCP guys, but from a difference perspective,
> swapping MRCP from Asterisk 13 to Asterisk 14 shouldn't be too
> difficult. Most of the changes between the two shouldn't affect most
> people's use cases, including projects such as MRCP. I'd definitely
> check with their discussion forums though, since it seems that they
> don't monitor the asterisk-users mailing lists.
I got it working. It indeed wasn't much:
*** ./app-unimrcp/Makefile.in.orig 2016-07-29 19:18:09.000000000 -0400
--- ./app-unimrcp/Makefile.in 2017-03-26 10:43:52.000000000 -0400
***************
*** 132,136 ****
CC = @CC@
CCDEPMODE = @CCDEPMODE@
! CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
--- 132,136 ----
CC = @CC@
CCDEPMODE = @CCDEPMODE@
! CFLAGS = @CFLAGS@ -DAST_MODULE_SELF_SYM=__internal_app_swift
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
*** ./app-unimrcp/app_unimrcp.c.orig 2014-07-10 17:04:03.000000000 -0400
--- ./app-unimrcp/app_unimrcp.c 2017-03-26 10:49:12.000000000 -0400
***************
*** 57,61 ****
#include "ast_compat_defs.h"
! #if AST_VERSION_AT_LEAST(1,4,0)
#define AST_COMPAT_STATIC static
ASTERISK_FILE_VERSION(__FILE__, "$Revision: $")
--- 57,64 ----
#include "ast_compat_defs.h"
! #if AST_VERSION_AT_LEAST(14,0,0)
! ASTERISK_REGISTER_FILE()
! #define AST_COMPAT_STATIC static
! #elif AST_VERSION_AT_LEAST(1,4,0)
#define AST_COMPAT_STATIC static
ASTERISK_FILE_VERSION(__FILE__, "$Revision: $")
*** ./res-speech-unimrcp/Makefile.in.orig 2016-07-29 19:18:09.000000000 -0400
--- ./res-speech-unimrcp/Makefile.in 2017-03-26 10:43:08.000000000 -0400
***************
*** 130,134 ****
CC = @CC@
CCDEPMODE = @CCDEPMODE@
! CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
--- 130,134 ----
CC = @CC@
CCDEPMODE = @CCDEPMODE@
! CFLAGS = @CFLAGS@ -DAST_MODULE_SELF_SYM=__internal_res_speech_unimrcp
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
*** ./res-speech-unimrcp/res_speech_unimrcp.c.orig 2014-12-10 22:37:36.000000000 -0500
--- ./res-speech-unimrcp/res_speech_unimrcp.c 2017-03-26 11:31:10.000000000 -0400
***************
*** 29,33 ****
--- 29,41 ----
#define AST_MODULE "res_speech_unimrcp"
+ #if AST_VERSION_AT_LEAST(14,0,0)
+ ASTERISK_REGISTER_FILE()
+ #elif AST_VERSION_AT_LEAST(1,4,0)
+ #define AST_COMPAT_STATIC static
ASTERISK_FILE_VERSION(__FILE__, "$Revision: $")
+ #else /* 1.2 */
+ #define AST_MODULE_LOAD_DECLINE -1
+ #define AST_COMPAT_STATIC
+ #endif
#include <asterisk/module.h>
More information about the asterisk-users
mailing list