Skip to content

Commit

Permalink
Allow NTATAG_TIMER_C be specified in the scope of app_unimrcp module …
Browse files Browse the repository at this point in the history
…via mrcp.conf.

Example:
   sip-timer-c = 1000

Note:
   requires UniMRCP 1.3.0 at r41 and higher.
  • Loading branch information
achaloyan committed Jan 21, 2016
1 parent 7814f4e commit c3c8622
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app-unimrcp/ast_unimrcp_framework.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions conf/mrcp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3c8622

Please sign in to comment.