freetdm: added wait_dialtone_timeout parameter for ftmod_analog

if this parameter is set to 0 ftmod_analog will not wait
	 for dial tone before dialing out the requested number.
	 Anything bigger than 0 is the units in milliseconds to
	 wait for dialtone before aborting the call.
This commit is contained in:
Moises Silva
2010-11-20 18:18:37 -05:00
parent 5973679e35
commit a9a31041d4
3 changed files with 51 additions and 23 deletions

View File

@@ -417,7 +417,7 @@ FT_DECLARE(ftdm_status_t) ftdm_interrupt_destroy(ftdm_interrupt_t **ininterrupt)
FT_DECLARE(ftdm_status_t) ftdm_interrupt_multiple_wait(ftdm_interrupt_t *interrupts[], ftdm_size_t size, int ms)
{
int numdevices = 0;
unsigned i;
unsigned i = 0;
#if defined(__WINDOWS__)
DWORD res = 0;
@@ -496,6 +496,8 @@ pollagain:
}
}
#else
/* for MacOS compilation, unused vars */
numdevices = i;
#endif
return FTDM_SUCCESS;
}