diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-25 17:11:40 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-25 17:11:40 +0000 |
commit | fa2c4751b57c7df00e3a34fe1f9fe60966698c53 (patch) | |
tree | 7068d280fb91d1d961a958114c455bbcfe3d4ab5 /channels | |
parent | 43ef3246830bce0fe439f2bf997ab6696602a639 (diff) |
fixes build issue with zaptel
(closes issue #17394)
Reported by: aragon
Patches:
half_buffer_fix.diff uploaded by dvossel (license 671)
Tested by: aragon
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@265613 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 835df5b87..bef5f6dd8 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3468,8 +3468,10 @@ static int parse_buffers_policy(const char *parse, int *num_buffers, int *policy *policy = DAHDI_POLICY_WHEN_FULL; } else if (!strcasecmp(policy_str, "immediate")) { *policy = DAHDI_POLICY_IMMEDIATE; +#ifdef DAHDI_POLICY_HALF_FULL } else if (!strcasecmp(policy_str, "half")) { *policy = DAHDI_POLICY_HALF_FULL; +#endif } else { ast_log(LOG_WARNING, "Invalid policy name given '%s'.\n", policy_str); return -1; |