diff -wruN ../orig-bayonne-1.2.11/configure.in ./configure.in --- ../orig-bayonne-1.2.11/configure.in 2003-11-25 22:25:44.000000000 +0100 +++ ./configure.in 2004-08-31 12:50:01.000000000 +0200 @@ -264,7 +264,9 @@ if test $ost_cv_openh323 = true ; then OH323_DRIVER=oh323 else OH323_DRIVER="" ; fi ; AC_SUBST(OH323_DRIVER) -if test $ost_cv_capi20_driver = true ; then CAPI20_DRIVER=capi20 +if test $ost_cv_capi20_driver = true ; then + CAPI20_DRIVER=capi20 + CS_TEST_ALERT else CAPI20_DRIVER="" ; fi ; AC_SUBST(CAPI20_DRIVER) if test $ost_cv_lib_fox = true diff -wruN ../orig-bayonne-1.2.11/drivers/capi20/idle.cpp ./drivers/capi20/idle.cpp --- ../orig-bayonne-1.2.11/drivers/capi20/idle.cpp 2003-04-09 16:13:35.000000000 +0200 +++ ./drivers/capi20/idle.cpp 2004-08-31 14:24:51.958940042 +0200 @@ -152,7 +152,11 @@ (unsigned char *)"", (unsigned char *)"", (unsigned char *)"", - (unsigned char *)""); + (unsigned char *)"" +#ifdef HAVE_ALERT_SENDING_COMPLETE + ,NULL +#endif + ); if (err != CapiNoError) { slog(Slog::levelError) << "CAPI: ALERT_REQ err = " << err << endl; diff -wruN ../orig-bayonne-1.2.11/m4/ost_capi.m4 ./m4/ost_capi.m4 --- ../orig-bayonne-1.2.11/m4/ost_capi.m4 2003-06-10 18:48:24.000000000 +0200 +++ ./m4/ost_capi.m4 2004-08-31 12:51:06.000000000 +0200 @@ -33,4 +33,18 @@ ]) - +# +# old capiutils.h missed the sending_complete parameter +# +# +AC_DEFUN(CS_TEST_ALERT, + [AC_MSG_CHECKING([for capi20 ALERT with sending complete]) + AC_TRY_COMPILE([#include ], + [_cmsg cm; ALERT_REQ(&cm, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);], + [ + AC_DEFINE([HAVE_ALERT_SENDING_COMPLETE],1,[we have SENDING_COMPLETE in ALERT_REQ]) + AC_MSG_RESULT([yes]) + ], + AC_MSG_RESULT([no]) + ) +]) dnl CS_TEST_ALERT diff -wruN ../orig-bayonne-1.2.11/server/ivrconfig.h.in ./server/ivrconfig.h.in --- ../orig-bayonne-1.2.11/server/ivrconfig.h.in 2003-11-06 23:42:38.000000000 +0100 +++ ./server/ivrconfig.h.in 2004-08-31 13:30:30.828657618 +0200 @@ -1,5 +1,8 @@ /* server/ivrconfig.h.in. Generated from configure.in by autoheader. */ +/* we have SENDING_COMPLETE in ALERT_REQ */ +#undef HAVE_ALERT_SENDING_COMPLETE + /* aculab control driver */ #undef HAVE_ACULAB_MVCLDRVR_H