[asterisk-commits] dvossel: branch 1.4 r265613 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 25 12:11:42 CDT 2010


Author: dvossel
Date: Tue May 25 12:11:40 2010
New Revision: 265613

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=265613
Log:
fixes build issue with zaptel

(closes issue #17394)
Reported by: aragon
Patches:
      half_buffer_fix.diff uploaded by dvossel (license 671)
Tested by: aragon

Modified:
    branches/1.4/channels/chan_dahdi.c

Modified: branches/1.4/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_dahdi.c?view=diff&rev=265613&r1=265612&r2=265613
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Tue May 25 12:11:40 2010
@@ -3468,8 +3468,10 @@
 		*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;




More information about the asterisk-commits mailing list