Merge branch 'master' of ssh://git.freeswitch.org/freeswitch
This commit is contained in:
commit
dc2a28c27c
|
@ -657,7 +657,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
||||||
status = ftdm_channel_wait(tech_pvt->ftdmchan, &wflags, chunk);
|
status = ftdm_channel_wait(tech_pvt->ftdmchan, &wflags, chunk);
|
||||||
|
|
||||||
if (status == FTDM_FAIL) {
|
if (status == FTDM_FAIL) {
|
||||||
ftdm_log(FTDM_LOG_WARNING, "failed to wait for I/O\n");
|
ftdm_log(FTDM_LOG_ERROR, "Failed to wait for I/O\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -867,7 +867,7 @@ static FIO_WAIT_FUNCTION(zt_wait)
|
||||||
{
|
{
|
||||||
int32_t inflags = 0;
|
int32_t inflags = 0;
|
||||||
int result;
|
int result;
|
||||||
struct pollfd pfds[1];
|
struct pollfd pfds[1];
|
||||||
|
|
||||||
if (*flags & FTDM_READ) {
|
if (*flags & FTDM_READ) {
|
||||||
inflags |= POLLIN;
|
inflags |= POLLIN;
|
||||||
|
@ -882,13 +882,14 @@ static FIO_WAIT_FUNCTION(zt_wait)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
memset(&pfds[0], 0, sizeof(pfds[0]));
|
memset(&pfds[0], 0, sizeof(pfds[0]));
|
||||||
pfds[0].fd = ftdmchan->sockfd;
|
pfds[0].fd = ftdmchan->sockfd;
|
||||||
pfds[0].events = inflags;
|
pfds[0].events = inflags;
|
||||||
result = poll(pfds, 1, to);
|
result = poll(pfds, 1, to);
|
||||||
*flags = 0;
|
*flags = 0;
|
||||||
|
|
||||||
if (pfds[0].revents & POLLERR) {
|
if (pfds[0].revents & POLLERR) {
|
||||||
|
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "DAHDI device got POLLERR\n");
|
||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -900,6 +901,7 @@ static FIO_WAIT_FUNCTION(zt_wait)
|
||||||
|
|
||||||
if (result < 0){
|
if (result < 0){
|
||||||
snprintf(ftdmchan->last_error, sizeof(ftdmchan->last_error), "Poll failed");
|
snprintf(ftdmchan->last_error, sizeof(ftdmchan->last_error), "Poll failed");
|
||||||
|
ftdm_log_chan(ftdmchan, FTDM_LOG_ERROR, "Failed to poll DAHDI device: %s\n", strerror(errno));
|
||||||
return FTDM_FAIL;
|
return FTDM_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,12 @@ if not exist "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\e_os.h" xcopy "$
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
<Command>copy /Y "$(ProjectDir)opensslconf.h" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\opensslconf.h"</Command>
|
<Command>copy /Y "$(ProjectDir)opensslconf.h" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\opensslconf.h"
|
||||||
|
copy /Y "$(ProjectDir)applink.c" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\applink.c"
|
||||||
|
copy /Y "$(ProjectDir)buildinf.h" "$(ProjectDir)..\..\openssl-1.0.0a\crypto\buildinf.h"
|
||||||
|
copy /Y "$(ProjectDir)libeay32.def" "$(ProjectDir)..\..\openssl-1.0.0a\libeay32.def"
|
||||||
|
if not exist "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\e_os.h" xcopy "$(ProjectDir)\include\*.*" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\" /C /Y /S
|
||||||
|
</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
<Midl>
|
<Midl>
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
@ -146,7 +151,12 @@ if not exist "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\e_os.h" xcopy "$
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
<Command>copy /Y "$(ProjectDir)opensslconf.h" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\opensslconf.h"</Command>
|
<Command>copy /Y "$(ProjectDir)opensslconf.h" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\opensslconf.h"
|
||||||
|
copy /Y "$(ProjectDir)applink.c" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\applink.c"
|
||||||
|
copy /Y "$(ProjectDir)buildinf.h" "$(ProjectDir)..\..\openssl-1.0.0a\crypto\buildinf.h"
|
||||||
|
copy /Y "$(ProjectDir)libeay32.def" "$(ProjectDir)..\..\openssl-1.0.0a\libeay32.def"
|
||||||
|
if not exist "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\e_os.h" xcopy "$(ProjectDir)\include\*.*" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\" /C /Y /S
|
||||||
|
</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<AdditionalOptions>/Gs0 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Gs0 %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
@ -175,7 +185,12 @@ if not exist "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\e_os.h" xcopy "$
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<PreBuildEvent>
|
<PreBuildEvent>
|
||||||
<Command>copy /Y "$(ProjectDir)opensslconf.h" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\opensslconf.h"</Command>
|
<Command>copy /Y "$(ProjectDir)opensslconf.h" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\opensslconf.h"
|
||||||
|
copy /Y "$(ProjectDir)applink.c" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\applink.c"
|
||||||
|
copy /Y "$(ProjectDir)buildinf.h" "$(ProjectDir)..\..\openssl-1.0.0a\crypto\buildinf.h"
|
||||||
|
copy /Y "$(ProjectDir)libeay32.def" "$(ProjectDir)..\..\openssl-1.0.0a\libeay32.def"
|
||||||
|
if not exist "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\e_os.h" xcopy "$(ProjectDir)\include\*.*" "$(ProjectDir)..\..\openssl-1.0.0a\include\openssl\" /C /Y /S
|
||||||
|
</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
<Midl>
|
<Midl>
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
|
Loading…
Reference in New Issue