From c3c8622e4f55b7a3f1c6f7283e9187004c6b9bdf Mon Sep 17 00:00:00 2001 From: Arsen Chaloyan Date: Wed, 20 Jan 2016 19:15:02 -0800 Subject: [PATCH] Allow NTATAG_TIMER_C be specified in the scope of app_unimrcp module via mrcp.conf. Example: sip-timer-c = 1000 Note: requires UniMRCP 1.3.0 at r41 and higher. --- app-unimrcp/ast_unimrcp_framework.c | 7 +++++++ conf/mrcp.conf | 1 + 2 files changed, 8 insertions(+) diff --git a/app-unimrcp/ast_unimrcp_framework.c b/app-unimrcp/ast_unimrcp_framework.c index b04c378..6ecfd02 100644 --- a/app-unimrcp/ast_unimrcp_framework.c +++ b/app-unimrcp/ast_unimrcp_framework.c @@ -38,6 +38,7 @@ #include "asterisk/config.h" /* UniMRCP includes. */ +#include "uni_revision.h" #include "ast_unimrcp_framework.h" #define DEFAULT_UNIMRCP_MAX_CONNECTION_COUNT 120 @@ -426,6 +427,12 @@ static int process_mrcpv2_config(mrcp_sofia_client_config_t *config, mrcp_sig_se config->sip_t4 = atol(val); else if(strcasecmp(param, "sip-t1x64") == 0) config->sip_t1x64 = atol(val); +#ifdef UNI_FULL_VERSION_AT_LEAST +#if UNI_FULL_VERSION_AT_LEAST(1,3,0,41) + else if(strcasecmp(param, "sip-timer-c") == 0) + config->sip_timer_c = atol(val); +#endif +#endif else mine = 0; diff --git a/conf/mrcp.conf b/conf/mrcp.conf index 7400b7b..254dc89 100644 --- a/conf/mrcp.conf +++ b/conf/mrcp.conf @@ -82,6 +82,7 @@ sip-transport = udp ; sip-t2 = 4000 ; sip-t4 = 4000 ; sip-t1x64 = 32000 +; sip-timer-c = 185000 ; === RTP factory === ; rtp-ip = 0.0.0.0