mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
update windows build.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@161 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
/* disable warning for zero length array in a struct */
|
||||
/* this will cause errors on c99 and ansi compliant compilers and will need to be fixed in the wanpipe header files */
|
||||
#pragma warning(disable:4706)
|
||||
#pragma comment(lib, "Winmm")
|
||||
#endif
|
||||
|
||||
#define ZAP_ENUM_NAMES(_NAME, _STRINGS) static char * _NAME [] = { _STRINGS , NULL };
|
||||
|
@@ -9,7 +9,7 @@ static void *test_call(zap_thread_t *me, void *obj)
|
||||
zap_size_t len;
|
||||
|
||||
|
||||
sleep(10);
|
||||
zap_sleep(10 * 1000);
|
||||
|
||||
zap_log(ZAP_LOG_DEBUG, "answer call and start echo test\n");
|
||||
|
||||
@@ -38,6 +38,7 @@ static void *test_call(zap_thread_t *me, void *obj)
|
||||
|
||||
zap_log(ZAP_LOG_DEBUG, "call over\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ZIO_SIGNAL_CB_FUNCTION(on_signal)
|
||||
@@ -78,7 +79,7 @@ int main(int argc, char *argv[])
|
||||
zap_analog_start(span);
|
||||
|
||||
while(zap_test_flag(span->analog_data, ZAP_ANALOG_RUNNING)) {
|
||||
sleep(1);
|
||||
zap_sleep(1 * 1000);
|
||||
}
|
||||
|
||||
zap_global_destroy();
|
||||
|
@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
while(zap_test_flag(span->isdn_data, ZAP_ISDN_RUNNING)) {
|
||||
sleep(1);
|
||||
zap_sleep(1 * 1000);
|
||||
}
|
||||
|
||||
done:
|
||||
|
@@ -88,7 +88,7 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
|
||||
zap_size_t len, rlen;
|
||||
zap_tone_type_t tt = ZAP_TONE_DTMF;
|
||||
char dtmf[128];
|
||||
int dtmf_offset = 0;
|
||||
zap_size_t dtmf_offset = 0;
|
||||
zap_analog_data_t *data = chan->span->analog_data;
|
||||
zap_channel_t *closed_chan;
|
||||
uint32_t state_counter = 0, elapsed = 0, interval = 0, last_digit = 0, indicate = 0;
|
||||
@@ -97,6 +97,8 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
|
||||
|
||||
zap_log(ZAP_LOG_DEBUG, "ANALOG CHANNEL thread starting.\n");
|
||||
|
||||
ts.buffer = NULL;
|
||||
|
||||
if (zap_channel_open_chan(chan) != ZAP_SUCCESS) {
|
||||
goto done;
|
||||
}
|
||||
|
Reference in New Issue
Block a user