From b90aa23cbd411df706cf679d9a95de2e4b487e54 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 28 Apr 2015 11:59:15 -0500 Subject: [PATCH] FS-7488: [mod_managed] fix build error --- src/include/switch_utils.h | 2 +- src/mod/languages/mod_managed/freeswitch_wrap.cxx | 4 +--- src/mod/languages/mod_managed/mod_managed.cpp | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 395c1b5e16..120e319838 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -43,7 +43,7 @@ SWITCH_BEGIN_EXTERN_C -#define SWITCH_URL_UNSAFE "\r\n \"#%&+:;<=>?@[\\]^`{|}" +#define SWITCH_URL_UNSAFE "\r\n #%&+:;<=>?@[\\]^`{|}\"" /* https://code.google.com/p/stringencoders/wiki/PerformanceAscii diff --git a/src/mod/languages/mod_managed/freeswitch_wrap.cxx b/src/mod/languages/mod_managed/freeswitch_wrap.cxx index 2f848eae91..2bc1b2e868 100644 --- a/src/mod/languages/mod_managed/freeswitch_wrap.cxx +++ b/src/mod/languages/mod_managed/freeswitch_wrap.cxx @@ -17201,9 +17201,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_SWITCH_URL_UNSAFE_get() { char * jresult ; char *result = 0 ; - result = (char *)("\r\n \"#%&+:;<=>?@[\\]^`{ - | -}"); +result = (char *)("\r\n #%&+:;<=>?@[\\]^`{|}\""); jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } diff --git a/src/mod/languages/mod_managed/mod_managed.cpp b/src/mod/languages/mod_managed/mod_managed.cpp index 6831aec930..bc627483f4 100644 --- a/src/mod/languages/mod_managed/mod_managed.cpp +++ b/src/mod/languages/mod_managed/mod_managed.cpp @@ -100,7 +100,7 @@ SWITCH_MOD_DECLARE_NONSTD(void) InitManagedSession(ManagedSession *session, inpu if (!session) { return; } - session->setDTMFCallback(NULL, ""); + session->setDTMFCallback(NULL, (char *)""); session->setHangupHook(NULL); session->dtmfDelegate = dtmfDelegate; session->hangupDelegate = hangupDelegate;