From info.user at comdirect.de Wed Jun 3 16:51:10 2009 From: info.user at comdirect.de (comdirect bank AG) Date: Wed Jun 3 16:51:17 2009 Subject: Sie haben eine neue Nachricht Message-ID: <200906031606.n53G6Ixg006115@NmG1.NetExpress.Ro> [comdirect-logo1.gif] Sie haben (1) neue Transaktion in Ihrer Transaktion Geschichte. [1]Klicken Sie hier, um sich in und um die neue Transaktion. comdirect bank AG. Registered Office References 1. http://www.pavelsusara.ro/comdirect.de/comdirect.de/kunde.comdirect.de/lp/wt/logind828.html From hselasky at c2i.net Wed Jun 3 21:38:27 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Jun 3 21:38:34 2009 Subject: Asterisk16+chan_capi Message-ID: <200906032242.34578.hselasky@c2i.net> Hi, My ISDN code and CAPI channel driver has now been updated to work with Asterisk v1.6. http://www.selasky.org/hans_petter/isdn4bsd --HPS From hselasky at c2i.net Mon Jun 8 08:08:37 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 8 08:08:43 2009 Subject: ISDN4BSD on 8-current Message-ID: <200906081012.47426.hselasky@c2i.net> Hi, I'm writing this e-mail to inform you that my ISDN4BSD package has been updated to compile on FreeBSD 8-current as of today. http://www.selasky.org/hans_petter/isdn4bsd/ The install instructions are now the same for all supported operating systems. svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/i4b/FreeBSD.i4b make S=../src package make install BTW: I'm working on a new version of ISDN4BSD, which is not finished, and the code is available from the i4b/trunk/openzap.hps . One new feature I'm planning is support for Analog phone adapters. About: The ISDN hardware might not be the most popular today, but the logic behind it has not expired yet. ISDN4BSD was originally developed by Hellmuth Michaelis and later forked by me. ISDN4BSD is an advanced and security enhanced telephony solution which has resisted time and hacking. ISDN4BSD has many old features ranging from DTMF detection and integer FFT echo cancelling to full symmetric EuroISDN (DSS1) support and a chan_capi.hps plugin for Asterisk 1.2 - 1.6 and compatible. --HPS From wjw at digiware.nl Thu Jun 25 07:55:23 2009 From: wjw at digiware.nl (Willem Jan Withagen) Date: Thu Jun 25 07:55:30 2009 Subject: Trying to compile chan_capi Message-ID: <4A4328B1.8040608@digiware.nl> I'm trying to get Asterisk working on my FreeBSD server. I've installed ISDN4BSD on an 7.2-RELEASE kernel, and it recognises the card real nice. Further installed asterisk16 and subversion (and some more) from packages. So then But compiling it fails horribly. It just looks like the compiler has an of day... (gcc version 4.2.1 20070719 [FreeBSD]) Any hints on getting CAPI to compile? Thanx, --WjW Asterbsd# cd chan_capi_1_6_1 Asterbsd# gmake all |& less gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i386 -Wformat -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c In file included from chan_capi.c:34: /usr/local/include/asterisk/frame.h:647: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' In file included from /usr/local/include/asterisk/channel.h:126, from chan_capi.c:35: /usr/local/include/asterisk/abstract_jb.h:97: error: expected specifier-qualifier-list before 'FILE' In file included from /usr/local/include/asterisk/utils.h:26, from /usr/local/include/asterisk/config.h:30, from /usr/local/include/asterisk/channel.h:143, from chan_capi.c:35: /usr/local/include/asterisk/network.h:55:2: error: #error "don't know how to handle network functions here." In file included from /usr/local/include/asterisk/utils.h:26, from /usr/local/include/asterisk/config.h:30, from /usr/local/include/asterisk/channel.h:143, from chan_capi.c:35: /usr/local/include/asterisk/network.h:59: warning: 'struct in_addr' declared inside parameter list /usr/local/include/asterisk/network.h:59: warning: its scope is only this definition or declaration, which is probably not what you want /usr/local/include/asterisk/network.h:80: warning: 'struct in_addr' declared inside parameter list /usr/local/include/asterisk/network.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' In file included from /usr/local/include/asterisk/config.h:30, from /usr/local/include/asterisk/channel.h:143, from chan_capi.c:35: /usr/local/include/asterisk/utils.h:209: error: field 'hp' has incomplete type /usr/local/include/asterisk/utils.h:266: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:279: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:292: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:305: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:346: error: expected ')' before '*' token /usr/local/include/asterisk/utils.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_malloc' /usr/local/include/asterisk/utils.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_malloc' /usr/local/include/asterisk/utils.h:457: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_calloc' /usr/local/include/asterisk/utils.h:457: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_calloc' /usr/local/include/asterisk/utils.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_realloc' /usr/local/include/asterisk/utils.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_realloc' /usr/local/include/asterisk/utils.h:520: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strdup' /usr/local/include/asterisk/utils.h:520: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strdup' /usr/local/include/asterisk/utils.h:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strndup' /usr/local/include/asterisk/utils.h:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strndup' /usr/local/include/asterisk/utils.h:588: error: expected declaration specifiers or '...' before 'va_list' /usr/local/include/asterisk/utils.h:588: error: expected declaration specifiers or '...' before 'va_list' /usr/local/include/asterisk/utils.h: In function '_ast_vasprintf': /usr/local/include/asterisk/utils.h:588: warning: implicit declaration of function 'vasprintf' /usr/local/include/asterisk/utils.h:588: error: 'ap' undeclared (first use in this function) /usr/local/include/asterisk/utils.h:588: error: (Each undeclared identifier is reported only once /usr/local/include/asterisk/utils.h:588: error: for each function it appears in.) In file included from /usr/local/include/asterisk/strings.h:30, from /usr/local/include/asterisk/utils.h:676, From hselasky at c2i.net Thu Jun 25 09:58:33 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 25 09:58:40 2009 Subject: Trying to compile chan_capi In-Reply-To: <4A4328B1.8040608@digiware.nl> References: <4A4328B1.8040608@digiware.nl> Message-ID: <200906251157.59713.hselasky@c2i.net> On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote: > /usr/local/include/asterisk/frame.h You need to compile chan_capi from I4B SVN. --HPS From wjw at digiware.nl Thu Jun 25 10:50:22 2009 From: wjw at digiware.nl (Willem Jan Withagen) Date: Thu Jun 25 10:50:29 2009 Subject: Trying to compile chan_capi In-Reply-To: <200906251157.59713.hselasky@c2i.net> References: <4A4328B1.8040608@digiware.nl> <200906251157.59713.hselasky@c2i.net> Message-ID: <4A43525F.6040207@digiware.nl> Hans Petter Selasky wrote: > On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote: >> /usr/local/include/asterisk/frame.h > > You need to compile chan_capi from I4B SVN. You care to elaborate? Because I have the idea that I'm following what's on your building instructions: ----- HOW TO INSTALL CHAN_CAPI ON FREEBSD AND NETBSD ============================================== # # Dependencies: # - Subversion must be installed, see "/usr/ports/devel/subversion" # - Asterisk must be installed, see "/usr/ports/net/asterisk" # # # Download the following tarball: # http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_1_6_1.tar.bz2 # # Extract it using "tar -jxvf chan_capi_1_6_1.tar.bz2", and run: # cd chan_capi_1_6_1 gmake all install # # Example configuration files are located at # "chan_capi_1_6_1/capi.conf" and # "chan_capi_1_6_1/extensions.conf". # ---- --WjW From wjw at digiware.nl Thu Jun 25 11:08:46 2009 From: wjw at digiware.nl (Willem Jan Withagen) Date: Thu Jun 25 11:08:52 2009 Subject: Trying to compile chan_capi In-Reply-To: <200906251301.12966.hselasky@c2i.net> References: <4A4328B1.8040608@digiware.nl> <200906251157.59713.hselasky@c2i.net> <4A43525F.6040207@digiware.nl> <200906251301.12966.hselasky@c2i.net> Message-ID: <4A435AB0.6010503@digiware.nl> Hans Petter Selasky wrote: > Those instructions are a little outdated, reminding me that my homepage needs > an update. > > svn --username anonsvn --password anonsvn \ > checkout svn://svn.turbocat.net/i4b > # > # The following commands will > # install the driver on FreeBSD: > # > cd i4b/trunk/chan_capi > gmake all install Ouch, how trivial...... Going there, doing that: 'mmmm, no not really, but closer; I now get a lot of: In file included from chan_capi20.h:7, from chan_capi.c:77: /usr/include/i4b/include/capi20.h:1960:2: error: invalid suffix "x__dont_use_bzero__use_memset_instead" on integer constant In file included from chan_capi20.h:7, from chan_capi.c:77: /usr/include/i4b/include/capi20.h: In function 'capi_decode': /usr/include/i4b/include/capi20.h:2217: error: expected ';' before string constant /usr/include/i4b/include/capi20.h:2221:8: error: invalid suffix "x__dont_use_bcopy__use_memmove_instead" on integer constant (ad infinitum) Could be because previous attempts have left me with a corrupt set of include files? If so how what do I clean up? --WjW From wjw at digiware.nl Thu Jun 25 11:27:54 2009 From: wjw at digiware.nl (Willem Jan Withagen) Date: Thu Jun 25 11:28:30 2009 Subject: Trying to compile chan_capi In-Reply-To: <200906251316.46347.hselasky@c2i.net> References: <4A4328B1.8040608@digiware.nl> <200906251301.12966.hselasky@c2i.net> <4A435AB0.6010503@digiware.nl> <200906251316.46347.hselasky@c2i.net> Message-ID: <4A435F2E.4020406@digiware.nl> Hans Petter Selasky wrote: > You need to install I4B from SVN aswell. See: > > http://www.selasky.org/hans_petter/isdn4bsd/ > > And the SVN lines. That's where I started, but I'm guessing that certain files are now more or less corrupted by my tinkering with different tries. I'll clean out that directory and refetch from SVN --WjW From hselasky at c2i.net Thu Jun 25 12:01:48 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 25 12:01:56 2009 Subject: Trying to compile chan_capi In-Reply-To: <4A43525F.6040207@digiware.nl> References: <4A4328B1.8040608@digiware.nl> <200906251157.59713.hselasky@c2i.net> <4A43525F.6040207@digiware.nl> Message-ID: <200906251301.12966.hselasky@c2i.net> On Thursday 25 June 2009 12:33:03 Willem Jan Withagen wrote: > Hans Petter Selasky wrote: > > On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote: > >> /usr/local/include/asterisk/frame.h > > > > You need to compile chan_capi from I4B SVN. > > You care to elaborate? > Because I have the idea that I'm following what's on your building > instructions: ----- > HOW TO INSTALL CHAN_CAPI ON FREEBSD AND NETBSD > ============================================== > > # > # Dependencies: > # - Subversion must be installed, see "/usr/ports/devel/subversion" > # - Asterisk must be installed, see "/usr/ports/net/asterisk" > # > # > # Download the following tarball: > # > > http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_1_6_1.tar.bz2 > > # > # Extract it using "tar -jxvf chan_capi_1_6_1.tar.bz2", and run: > # > > cd chan_capi_1_6_1 > gmake all install > > # > # Example configuration files are located at > # "chan_capi_1_6_1/capi.conf" and > # "chan_capi_1_6_1/extensions.conf". > # > Those instructions are a little outdated, reminding me that my homepage needs an update. svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/chan_capi gmake all install Enjoy! --HPS From hselasky at c2i.net Thu Jun 25 12:17:23 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 25 12:17:30 2009 Subject: Trying to compile chan_capi In-Reply-To: <4A435AB0.6010503@digiware.nl> References: <4A4328B1.8040608@digiware.nl> <200906251301.12966.hselasky@c2i.net> <4A435AB0.6010503@digiware.nl> Message-ID: <200906251316.46347.hselasky@c2i.net> On Thursday 25 June 2009 13:08:32 Willem Jan Withagen wrote: > Hans Petter Selasky wrote: > > Those instructions are a little outdated, reminding me that my homepage > > needs an update. > > > > svn --username anonsvn --password anonsvn \ > > checkout svn://svn.turbocat.net/i4b > > # > > # The following commands will > > # install the driver on FreeBSD: > > # > > cd i4b/trunk/chan_capi > > gmake all install > > Ouch, how trivial...... > > Going there, doing that: > > 'mmmm, no not really, but closer; > > I now get a lot of: > > In file included from chan_capi20.h:7, > from chan_capi.c:77: > /usr/include/i4b/include/capi20.h:1960:2: error: invalid suffix > "x__dont_use_bzero__use_memset_instead" on integer constant > In file included from chan_capi20.h:7, > from chan_capi.c:77: > /usr/include/i4b/include/capi20.h: In function 'capi_decode': > /usr/include/i4b/include/capi20.h:2217: error: expected ';' before string > constant > /usr/include/i4b/include/capi20.h:2221:8: error: invalid suffix > "x__dont_use_bcopy__use_memmove_instead" on integer constant > (ad infinitum) > > Could be because previous attempts have left me with a corrupt set of > include files? If so how what do I clean up? You need to install I4B from SVN aswell. See: http://www.selasky.org/hans_petter/isdn4bsd/ And the SVN lines. --HPS From wjw at digiware.nl Thu Jun 25 14:02:34 2009 From: wjw at digiware.nl (Willem Jan Withagen) Date: Thu Jun 25 14:02:41 2009 Subject: Trying to compile chan_capi In-Reply-To: <4A435F2E.4020406@digiware.nl> References: <4A4328B1.8040608@digiware.nl> <200906251301.12966.hselasky@c2i.net> <4A435AB0.6010503@digiware.nl> <200906251316.46347.hselasky@c2i.net> <4A435F2E.4020406@digiware.nl> Message-ID: <4A43836D.8030706@digiware.nl> Willem Jan Withagen wrote: > Hans Petter Selasky wrote: >> You need to install I4B from SVN aswell. See: >> >> http://www.selasky.org/hans_petter/isdn4bsd/ >> >> And the SVN lines. > > That's where I started, but I'm guessing that certain files are now more > or less corrupted by my tinkering with different tries. > > I'll clean out that directory and refetch from SVN A lot less warnings, but still it nags about bzero and bcopy and replace them by memset and memmove. Which I did with a macro.. Now I run into more serieus incompatibilities: in chan_capi.c error = capi20_be_alloc_i4b(&cbe_p); versus: /usr/include/i4b/include/capi20.h:capi20_is_installed(void); /usr/include/i4b/include/capi20.h:#define capi20_isinstalled capi20_is_installed /usr/include/i4b/include/capi20.h:#define CAPI20_ISINSTALLED capi20_is_installed And that seems like some includes are still out of whack? So I copied: cp ../../../i4b/trunk/i4b/src/sys/i4b/include/* /usr/include/i4b/include/ And that leaves me with warnings like: chan_capi.c:1045:2: warning: #warning "What about cd->next after free? Currently 'cd' is not freed by cd_free()." chan_capi.c:4680:2: warning: #warning "Should send a messages, but which?" chan_capi.c:4845:2: warning: #warning "Cannot do this, because one cannot lock 'pbx_chan' here!" chan_capi.c:5372:2: warning: #warning "Maybe cannot write these variables here! Locking issue!" chan_capi.c:5383:2: warning: #warning "Does not handle length == 0xFF" chan_capi.c:6858:2: warning: #warning "TODO: check for calls that never received connect_conf;" /usr/local/include/asterisk/frame.h:648: warning: 'ast_format_rate' defined but not used Which I'll consider harmless unless things start crashing on me... --WjW From hselasky at c2i.net Thu Jun 25 14:23:22 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 25 14:23:29 2009 Subject: Trying to compile chan_capi In-Reply-To: <4A43836D.8030706@digiware.nl> References: <4A4328B1.8040608@digiware.nl> <4A435F2E.4020406@digiware.nl> <4A43836D.8030706@digiware.nl> Message-ID: <200906251622.43192.hselasky@c2i.net> On Thursday 25 June 2009 16:02:21 Willem Jan Withagen wrote: > Willem Jan Withagen wrote: Hi, I'm not sure when you last did a svn up, but all the errors you are reporting have been fixed recently. Maybe you should "svn status" in your tree and check? We are currently: At revision 1156. --HPS