allow -1 as silence generation divisor to specify only zeroes silence

This commit is contained in:
System Administrator
2011-05-25 23:16:24 -04:00
parent 267d9cbc3a
commit 294a57fbcb
4 changed files with 19 additions and 4 deletions
+6
View File
@@ -62,6 +62,12 @@ SWITCH_BEGIN_EXTERN_C struct switch_unicast_conninfo {
};
typedef struct switch_unicast_conninfo switch_unicast_conninfo_t;
#define SWITCH_IVR_VERIFY_SILENCE_DIVISOR(divisor) \
do { \
if ((divisor) <= 0 && (divisor) != -1) { \
divisor = 400; \
} \
} while(0);
/**
* @defgroup switch_ivr IVR Library