Ciao,
first of all, i should say thanks to Giovanni for sending me the celliax kit very fastly so i can start to evaluate this (hopefully) great product.
I would like to know how chan_celliax could be implemented on a new installation as I'd prefer not to use the asterisk version shipped out with the live cd, but the 1.4.4 i'm currently using. Can you give me some instructions about compiling chan_celliax from source with that version of asterisk?
Grazie
Michele
chan_celliax.c is compatible
chan_celliax.c is compatible with asterisk 1.4.4 (you just have to #define ASTERISK_VERSION_1_4 in chan_celliax.c).
You have to put the chan_celliax* files into the channels directory and modify the Makefiles.
Sorry, I'm in a hurry now, gotta go, I'll write more with details tomorrow ;-(
Ciao
Giovanni
I tried to do it by myself,
I tried to do it by myself, but i think that's there's something wrong with celliax sources themselves...
I fetched the files from the svn repository and copied chan_celliax* in /usr/src/asterisk-1.4.4/channels. I run 'make menuselect' and selected celliax from the available channel drivers menu. Since i don't need skype (and neither X11) i modified chan_celliax.c as follows:
---- line 365-376 ----------------
asound
#define CELLIAX_ALSA
#undef CELLIAX_WINMM
#define ASTERISK_VERSION_1_4
#undef CELLIAX_SKYPE
#undef WANT_SKYPE_X11
#define CELLIAX_DIR
/*** MODULEINFO
***/
/* INCLUDES */
-------- EOF --------------------
Plese note that i removed the statement for X11 and the Skype defines.
I don't know if it was the right manner to do it.. but i thought it was the fastest one :)
Anyway, when i run 'make channels' i get this error:
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
[CC] chan_celliax.c -> chan_celliax.o
chan_celliax.c: In function `celliax_new':
chan_celliax.c:1630: error: too few arguments to function `ast_channel_alloc'
chan_celliax.c:1662: warning: passing arg 1 of `memcpy' discards qualifiers from pointer target type
chan_celliax.c:1662: warning: passing arg 1 of `strncpy' discards qualifiers from pointer target type
chan_celliax.c:1662: warning: passing arg 1 of `strncpy' discards qualifiers from pointer target type
chan_celliax.c: In function `celliax_dir_play_mailbox_owner':
chan_celliax.c:7927: warning: implicit declaration of function `ast_say_character_str'
chan_celliax.c:7927: error: `AST_DIGIT_ANY' undeclared (first use in this function)
chan_celliax.c:7927: error: (Each undeclared identifier is reported only once
chan_celliax.c:7927: error: for each function it appears in.)
chan_celliax.c:7931: warning: implicit declaration of function `ast_streamfile'
chan_celliax.c:7934: warning: implicit declaration of function `ast_waitstream'
chan_celliax.c:7939: warning: implicit declaration of function `ast_stopstream'
chan_celliax.c: In function `celliax_dir_exec':
chan_celliax.c:8293: error: `AST_DIGIT_ANY' undeclared (first use in this function)
chan_celliax.c: In function `console_celliax_dir_import':
chan_celliax.c:8885: error: structure has no member named `skype_thread'
chan_celliax.c:8888: error: structure has no member named `skype_friends'
chan_celliax.c:8890: warning: implicit declaration of function `celliax_skype_write'
chan_celliax.c:8895: error: structure has no member named `skype_friends'
chan_celliax.c:8907: error: structure has no member named `skype_thread'
chan_celliax.c:8910: error: structure has no member named `skype_friends'
chan_celliax.c:8915: error: structure has no member named `skype_friends'
chan_celliax.c:8930: error: structure has no member named `skype_displayname'
chan_celliax.c:8934: error: structure has no member named `skype_displayname'
chan_celliax.c:8942: error: structure has no member named `skype_displayname'
chan_celliax.c:8948: error: structure has no member named `skype_displayname'
chan_celliax.c:9023: error: structure has no member named `skype_displayname'
chan_celliax.c:9025: error: structure has no member named `skype_fullname'
chan_celliax.c:9029: error: structure has no member named `skype_fullname'
chan_celliax.c:9037: error: structure has no member named `skype_fullname'
chan_celliax.c:9041: error: structure has no member named `skype_fullname'
chan_celliax.c:9137: error: structure has no member named `skype_fullname'
chan_celliax.c:9143: error: structure has no member named `skype_friends'
chan_celliax.c: At top level:
chan_celliax.c:637: warning: `celliax_dir_app' defined but not used
chan_celliax.c:639: warning: `celliax_dir_synopsis' defined but not used
chan_celliax.c:641: warning: `celliax_dir_descrip' defined but not used
chan_celliax.c:8219: warning: `celliax_dir_exec' defined but not used
make[1]: *** [chan_celliax.o] Error 1
make: *** [channels] Error 2
Please let me know about this issue.
Ah.. just another question: what's the difference between chan_celliax and chan_celliax_spandsp ? I'm asking this, because the *spandsp one is the only which compiles without any error.
Grazie,
Michele
oooops, forgot to reply this
oooops, forgot to reply this morning.
Just began to work on it, more soon ;-)
Anyway, I'm renaming chan_celliax_spandsp.* to celliax_spandsp.* because they are needed parts of chan_celliax (with the old name the make menuconfig think they are a channel driver in themselves).
Also, you got those warnings because the newly added celliax_dir* stuff was not abiding the CELLIAX_SKYPE defines.
In a while it will all be fixed, and we can start looking for bugs ;-)
fixed in svn, do an svn
fixed in svn, do an svn update, ***a make clean***, then follow the README.
from the README:
==============================================================
asterisk 1.4
==============================================================
*** compilation problems? check that only one
of CELLIAX_ALSA or CELLIAX_WINMM is #defined
in celliax_stuff/chan_celliax.c, the right one
for your platform ***
To obtain a working installation with asterisk-1.4.4 (or later, hopefully),
works only in linux:
in celliax_stuff/chan_celliax.c, #undef the CELLIAX_SKYPE and WANT_SKYPE_X11 lines and #define the ASTERISK_VERSION_1_4 line
in celliax_stuff/chan_celliax.c, delete the <depend>x11</depend> line
tar xzf asterisk-1.4.4.tgz
make clean
copy from the celliax_stuff directory the files chan_celliax.c celliax_spandsp.c celliax_spandsp.h to the channels/ directory of the asterisk source
insert the line (is all in one line, the line break comes from the webform):
$(if $(filter chan_celliax,$(EMBEDDED_MODS)),modules.link,chan_celliax.so): celliax_spandsp.o
in the file channels/Makefile into the asterisk source directory, just before the chan_alsa line
from the asterisk source dir do:
./config
make menuselect (and choose to include chan_celliax from the channel drivers menu)
make install
cd ../celliax_stuff/newconfigs
cp * /etc/asterisk/
asterisk -c
BTW to add back the skype stuff, you have to #define the CELLIAX_SKYPE and WANT_SKYPE_X11 lines, and link chan_celliax.c with the libX11 lib too
this will soon be added to the make menuconfig machinery :-)
All OK.. sources now compile
All OK.. sources now compile without problems..
Well done.
Michele
added a couple files,
added another couple of files, re-read the new README ;-)
changes are:
copy from the celliax_stuff directory the files chan_celliax.c celliax_spandsp.c celliax_spandsp.h celliax_libcsv.h celliax_libcsv.c to the channels/ directory of the asterisk source
insert the line (all in one line, without breaks):
$(if $(filter chan_celliax,$(EMBEDDED_MODS)),modules.link,chan_celliax.so): celliax_spandsp.o celliax_libcsv.o
in the file channels/Makefile into the asterisk source directory, just before the chan_alsa line
Hello I cant compile now
Hello
I cant compile now celliax in Asterisk-1.4.4
I believe that the Readme is not clear for me.
I modified the Makefile (in asterisk/channels), and the chann_celiax.c but only problems.
What must I do with the chann_celiax.c? Can you send me a right archiv?
Thanks
Leonardo
PD: I have not a international credit card to buy the adapters.. how can I send you the money to send me Celliax Hardware Adapter?
another question: where can I download the iso with ftp or http?
greats
Leonardo
Tests: when I copy the files
Tests:
when I copy the files into channels directory, and then # make menuselect
In the channels menu, I see:
XXX chan_celiax
The message is:
Celliax, Audio-Serial Driver Depends on: asound(E)
If I remove in chan_celliax.c
asound
these lines:
/*** MODULEINFO
***/
I can select (when I do make menuselect) the chan_celliax), but then I have a lot of errors.
ciao, probably you do not
ciao, probably you do not have all the asterisk required libraries installed. Please, try to install asterisk without celliax.
When you have succeded, just install the alsa development libraries and celliax will install.
Please write here again with all the questions you may have.
Giovanni
Hi, Giovanni Well I have
Hi, Giovanni
Well I have just compiled.
But now I use a fresh installation on debian etch, asterisk 1-4.4
After (when I have errors I try to compile with trixbox, but I think that I need any library to do.. )
I notify you when I compile in trixbox successfully.
regards
Leonardo
I compile succesfully in
I compile succesfully in debian etch, when my chan_celliax.c show this:
asound
(lines 365 to 376)
/* rewriting begin */
#define ASTERISK_VERSION_1_4
#define CELLIAX_SKYPE
#define WANT_SKYPE_X11
#define CELLIAX_ALSA
#undef CELLIAX_WINMM
#define CELLIAX_DIR
#define CELLIAX_LIBCSV
/*** MODULEINFO
***/
/* INCLUDES */
bueno! ok!but I see you
bueno! ok!
but I see you have older sources... try:
svn checkout http://www.celliax.org:8081/svn/celliax/trunk celliax
How to install Celliax in
How to install Celliax in Trixbox 2.2: http://www.celliax.org/node/313
Asterisk 1.4 FreeBSD 6.3 chan_celliax
Cannot gmake from build
Resultes:
fbsd# gmake
cc -c -DASTERISK_VERSION_1_4 -g -ggdb -Wall -D_GNU_SOURCE -Wno-missing-prototypes -Wno-missing-declarations -fomit-frame-pointer -D_REENTRANT -Wall -I/usr/local/include -o chan_celliax.o chan_celliax.c
chan_celliax.c:641: error: syntax error before "format"
chan_celliax.c:641: warning: type defaults to `int' in declaration of `format'
chan_celliax.c:641: error: `SND_PCM_FORMAT_S16_LE' undeclared here (not in a function)
chan_celliax.c:641: warning: data definition has no type or storage class
chan_celliax.c:1139: error: syntax error before "snd_pcm_t"
chan_celliax.c:1311: error: unknown field `alsac' specified in initializer
chan_celliax.c:1311: warning: initialization makes integer from pointer without a cast
& ETC
+++++++++++++
linux-alsalib installed
all changes by you in chan_celliax.c & Makefile doesn't help
Any suggessions ?
Regards