How to install Celliax in Trixbox 2.2.X (2.2.3 2.2.4 and following)

Lot of questions have been made in the forums about how to integrate Celliax into Trixbox (www.trixbox.org) so it can manage gsm cellphones.

So, let's roll.

What follows is the description of how I made it, starting from a freshly installed Trixbox 2.2.4.

It is assumed that the Trixbox installation has gone well, that the Trixbox machine has a soundcard supported by Linux, and that the Trixbox machine is connected to the Internet.

You can type the following commands from the Trixbox keyboard, but it will be easier to use another computer connected to the Trixbox machine via ssh (so you can cut and paste the commands into the terminal :) ).

Connect as root in ssh to your Trixbox (substitute the IP address of Trixbox)
-from a Linux terminal: ssh root@192.168.1.15
-from a Windows terminal use putty

Enter the root password you choose during Trixbox installation.

Once connected to the Trixbox, do:

[root@asterisk1 ~]# yum -y update

This command will update the entire Operating System and Trixbox installation. It will take a lot of time (downloading and installing lot of packages), but it is better to do it now, so we'll have the most current (security and bug fix) stuff installed. It updated and installed lots os packages for me, made lots of transactions (whathever they are) and it took 30 minutes to do it all. It will probably update more packages at the time you read this. Phew!

[root@asterisk1 ~]# yum -y install alsa-lib-devel xorg-x11-devel
[root@asterisk1 ~]# ldconfig

Those commands install the needed development files for ALSA and X11 (only development files, it do not install X11 itself, we don't need it). Those two packages are very small and install in a breeze. We run ldconfig just to be sure they are correctly installed.

[root@asterisk1 ~]# amportal stop
[root@asterisk1 ~]# mkdir alsarpm
[root@asterisk1 ~]# cd alsarpm
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libasound2-1.0.13-32.el4.at.i386.rpm
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-utils-1.0.13-22.el4.at.i386.rpm
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-x86_64/atrpms/stable/alsa-lib-devel-1.0.13-32.el4.at.i386.rpm
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-lib-1.0.13-32.el4.at.i386.rpm
[root@asterisk1 alsarpm]# rpm -U --nosignature *

Those commands update the ***very*** old ALSA version with a recent one.

[root@asterisk1 alsarpm]# reboot

Just to be on the safe side, we reboot the Trixbox machine. So, we will connect via ssh to it again before to enter the following commands.

[root@asterisk1 ~]# yum -y install asterisk-devel
This command install the Asterisk include files that we will need to compile the chan_celliax channel driver.

[root@asterisk1 ~]# cd /usr/src

We moved into the /usr/src directory...

[root@asterisk1 src]# wget -c http://www.celliax.org/celliax_stuff.tgz

...and we grab the sources for chan_celliax and related utilities

[root@asterisk1 src]# tar xzf celliax_stuff.tgz
We uncompressed the celliax sources

[root@asterisk1 src]# cd celliax_stuff/build
We move into the channel driver build directory of Celliax...

[root@asterisk1 build]# nano Makefile
We edit the Makefile, setting the Asterisk version to the 1.2 series (used by Trixbox). All the rest of the Makefile can stay as it is.
After editing, the following Makefile lines must look like that:
============
#ASTERISK VERSION 1.4.XX
#Uncomment the following line if you are compiling for Asterisk 1.4 series
#Comment out if you are compiling for Asterisk 1.2 series
#CFLAGS+=-DASTERISK_VERSION_1_4

#ASTERISK VERSION 1.2.XX
#Uncomment the following line if you are compiling for Asterisk 1.2 series
#Comment out if you are compiling for Asterisk 1.4 series
CFLAGS+=-DASTERISK_VERSION_1_2
============

[root@asterisk1 build]# make

...and we build it.

[root@asterisk1 build]# cp chan_celliax.so /usr/lib/asterisk/modules/

We copied the chan_celliax.so (the file that Asterisk needs for Celliax features) into the Trixbox's Asterisk's modules' directory

[root@asterisk1 build]# cp ../newconfigs/celliax.conf /etc/asterisk/

We copied the config file for Celliax into the Trixbox's Asterisk's config files directory

We almost finish!

[root@asterisk1 build]# alsamixer -V all -c 0
We set the mixer volumes of the first soundcard for celliax usage: unmute and up the volume of the Main and Pcm columns. Mute the Mic column. Up the volume of the Capture column. (You mute a column by pressing "m" on it, unmute pressing "m" again). If you want to set another soundcard, use alsamixer -V all -c 1 etc.

Now, the last touch: we need to give Asterisk the permissions needed to use the soundcard and the serial devices used by chan_celliax.

The best way (at date) is to modify the script that starts Asterisk and freepbx. This script is: /usr/sbin/amportal in older versions, but in newer versions is /var/lib/asterisk/bin/freepbx_engine.

**In case of /usr/sbin/amportal:

Use your preferred text editor (nano is an easy editor):

[root@asterisk1 build]# nano /usr/sbin/amportal

Locate the part of the file that reads like this (without the =====):

=====
chown_asterisk() {
echo SETTING FILE PERMISSIONS
chown -R asterisk:asterisk $ASTRUNDIR
chown -R asterisk:asterisk /etc/asterisk
=====

and insert the four lines, so it looks like this:

=====
chown_asterisk() {
echo SETTING FILE PERMISSIONS
chown -R asterisk:asterisk /dev/snd*
chown -R asterisk:asterisk /dev/ttyACM*
chown -R asterisk:asterisk /dev/ttyUSB*
chown -R asterisk:asterisk /dev/ttyS*
chown -R asterisk:asterisk $ASTRUNDIR
chown -R asterisk:asterisk /etc/asterisk
=====

** In case of /var/lib/asterisk/bin/freepbx_engine
Look for the lines:

===========
chown_asterisk() {
echo SETTING FILE PERMISSIONS

chown -R asterisk:asterisk $ASTRUNDIR
chown -R asterisk:asterisk /etc/asterisk
chmod -R g+w /etc/asterisk
===========

and make it :

===========

chown_asterisk() {
echo SETTING FILE PERMISSIONS

chown -R asterisk:asterisk /dev/snd*
chown -R asterisk:asterisk /dev/ttyACM*
chown -R asterisk:asterisk /dev/ttyUSB*
chown -R asterisk:asterisk /dev/ttyS*
chown -R asterisk:asterisk $ASTRUNDIR
chown -R asterisk:asterisk /etc/asterisk
chmod -R g+w /etc/asterisk
============

If you are using the nano editor, pressing the Control and the X key at the same time (Ctrl-x) will give you the possibility to save the edited file and exit from nano.

Also, you have to tell Trixbox to restore the ALSA mixer settings at boot. So, you have to add this line to /etc/rc.local :

/sbin/alsactl restore

before the line that starts amportal.

[root@asterisk1 build]# nano /etc/rc.local

It may be very useful to have Asterisk debug messages into the Asterisk console (the one you join with "asterisk -r" from the Trixbox command line). If you would like to have it, use the editor to remove the ";" character from the beginning of the line:
;console => notice,warning,error,debug
in the /etc/asterisk/logger.conf file, so it reads like:
console => notice,warning,error,debug

[root@asterisk1 build]# nano /etc/asterisk/logger.conf

Now we need to build the celliax_config interface engine:
[root@asterisk1 build]# cd ../dialog-1.0-20060221/
[root@asterisk1 dialog-1.0-20060221]# ./configure
[root@asterisk1 dialog-1.0-20060221]# make
[root@asterisk1 dialog-1.0-20060221]# cp dialog /usr/bin/

We have changed to the celliax_stuff/dialog directory, launched the configure command that prepares the dialog sources for compilation, compiled it, and copied in its final place.

End! That's it! Finish!

***PLEASE REMEMBER*** always to connect the Celliax's cellphone to the Trixbox machine (through the cellphone USB datacable) ***before*** to boot it, or the permissions on the serial device will be wrong, and celliax will not works with the cellphone.

You can now configure chan_celliax and then (connect the cellphone through the datacable to the Trixbox machine and) reboot to a working Celliax enabled Trixbox!

[root@asterisk1 dialog-1.0-20060221]# /usr/src/celliax_stuff/sh/celliax_config
You can always in the future use the /usr/src/celliax_stuff/sh/celliax_config to change the chan_celliax configuration, or you can edit the /etc/asterisk/celliax.conf by hand (nano /etc/asterisk/celliax.conf).

***PLEASE NOTE*** be sure that the context line in celliax.conf is:
context=from-trunk

[root@asterisk1 dialog-1.0-20060221]# reboot

Many thanks to Greekman for the beautyful "Celliax with FreePBX on Opensuse installation" forum post (now is an How To page), that was very helpful in writing this one and that contains lots of more infos on how to setup freepbx and use it with Celliax.

So, for starting your configuration in Trixbox (that use freepbx as interface), go read "How to install Celliax with freePBX in Opensuse" at: http://www.celliax.org/node/314 ;-)

Please let us know if this How To Trixbox works for you, and any problem you may encounter.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

thank you for this howto

Hello. Thank you for this howto. It was very usefull for me, when I was trying to install celliax in TrixBox2.2.4. And I finaly did it. But I don't have celliax hardware adapter yet (I'll make it soon. As it is shown on your picture, may be with some modifications). I set up outbound routes as it was said here "http://www.celliax.org/node/314". And I called from TrixBox cellular to another cellular.

I want now to use callback function in TrixBox for this cellular. Can you tell if it is possible to do (is there possibity to receive callerID from the cellular to TrixBox, so it could be used in Inbound Routes)?

Andrey
(intel P4-2,4GHz;768RAM;HFC-BRIcard;TrixBox2.2.4;Asterisk1.2.23)


I think yes

ciao Andrey,

I think that it is possible (or it is a bug).
Please let us know how it goes for you!

Giovanni


Close but not quite Trixbox -- Help with Elastix?

I have tried to install on an Elastix server which is running CentOS 5 & Asterisk 1.4.8. I have modified the Makefile but have encountered a few issues.

1. Trying to perform a "yum install asterisk-devel" results in a "Error: Missing Dependency: spandsp-devel is needed by package asterisk-devel" .
2. I have not found spandsp-devel for CentOS 5, yet.
3. When I perform a make, I get the following results:

chan_celliax.c:12916: error: dereferencing pointer to incomplete type
chan_celliax.c:12916: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:12921: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12923: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12925: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12928: error: dereferencing pointer to incomplete type
chan_celliax.c:12928: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:12929: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12930: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12931: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12932: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12935: error: dereferencing pointer to incomplete type
chan_celliax.c:12935: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:12936: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12937: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12938: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12939: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12940: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12941: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12942: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:12943: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13010: error: âstruct celliax_pvtâ has no member named âskypeâ
chan_celliax.c:13011: error: âLOG_WARNINGâ undeclared (first use in this functio n)
chan_celliax.c:13011: error: dereferencing pointer to incomplete type
chan_celliax.c:13011: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13014: error: âstruct celliax_pvtâ has no member named âskype_thr eadâ
chan_celliax.c:13017: error: âstruct celliax_pvtâ has no member named âskype_fri endsâ
chan_celliax.c:13024: error: âstruct celliax_pvtâ has no member named âskype_fri endsâ
chan_celliax.c:13036: error: âstruct celliax_pvtâ has no member named âskype_thr eadâ
chan_celliax.c:13039: error: âstruct celliax_pvtâ has no member named âskype_fri endsâ
chan_celliax.c:13044: error: âstruct celliax_pvtâ has no member named âskype_fri endsâ
chan_celliax.c:13059: error: âstruct celliax_pvtâ has no member named âskype_dis playnameâ
chan_celliax.c:13063: error: âstruct celliax_pvtâ has no member named âskype_dis playnameâ
chan_celliax.c:13071: error: âstruct celliax_pvtâ has no member named âskype_dis playnameâ
chan_celliax.c:13077: error: âstruct celliax_pvtâ has no member named âskype_dis playnameâ
chan_celliax.c:13128: error: âLOG_DEBUGâ undeclared (first use in this function)
chan_celliax.c:13128: error: dereferencing pointer to incomplete type
chan_celliax.c:13128: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13135: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13138: error: âstruct celliax_pvtâ has no member named âcelliax_d ir_entry_extension_prefixâ
chan_celliax.c:13141: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13144: error: âstruct celliax_pvtâ has no member named âcelliax_d ir_entry_extension_prefixâ
chan_celliax.c:13152: error: âstruct celliax_pvtâ has no member named âskype_dis playnameâ
chan_celliax.c:13154: error: âstruct celliax_pvtâ has no member named âskype_ful lnameâ
chan_celliax.c:13158: error: âstruct celliax_pvtâ has no member named âskype_ful lnameâ
chan_celliax.c:13166: error: âstruct celliax_pvtâ has no member named âskype_ful lnameâ
chan_celliax.c:13170: error: âstruct celliax_pvtâ has no member named âskype_ful lnameâ
chan_celliax.c:13221: error: dereferencing pointer to incomplete type
chan_celliax.c:13221: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13229: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13232: error: âstruct celliax_pvtâ has no member named âcelliax_d ir_entry_extension_prefixâ
chan_celliax.c:13235: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13238: error: âstruct celliax_pvtâ has no member named âcelliax_d ir_entry_extension_prefixâ
chan_celliax.c:13245: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13248: error: âstruct celliax_pvtâ has no member named âcelliax_d ir_entry_extension_prefixâ
chan_celliax.c:13251: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13254: error: âstruct celliax_pvtâ has no member named âcelliax_d ir_entry_extension_prefixâ
chan_celliax.c:13266: error: âstruct celliax_pvtâ has no member named âskype_ful lnameâ
chan_celliax.c:13272: error: âstruct celliax_pvtâ has no member named âskype_fri endsâ
chan_celliax.c:13288: error: dereferencing pointer to incomplete type
chan_celliax.c:13288: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13293: error: dereferencing pointer to incomplete type
chan_celliax.c:13293: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13296: error: âstruct celliax_pvtâ has no member named âphonebook _queryingâ
chan_celliax.c:13299: error: dereferencing pointer to incomplete type
chan_celliax.c:13299: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13301: error: âstruct celliax_pvtâ has no member named âphonebook _queryingâ
chan_celliax.c:13303: error: dereferencing pointer to incomplete type
chan_celliax.c:13303: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13306: error: âstruct celliax_pvtâ has no member named âphonebook _first_entryâ
chan_celliax.c:13307: error: âstruct celliax_pvtâ has no member named âphonebook _last_entryâ
chan_celliax.c:13308: error: âstruct celliax_pvtâ has no member named âphonebook _listingâ
chan_celliax.c:13311: error: dereferencing pointer to incomplete type
chan_celliax.c:13311: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13311: error: âstruct celliax_pvtâ has no member named âphonebook _first_entryâ
chan_celliax.c:13311: error: âstruct celliax_pvtâ has no member named âphonebook _last_entryâ
chan_celliax.c:13314: error: âstruct celliax_pvtâ has no member named âphonebook _listingâ
chan_celliax.c:13325: error: âLOG_ERRORâ undeclared (first use in this function)
chan_celliax.c:13325: error: dereferencing pointer to incomplete type
chan_celliax.c:13325: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13327: error: âRESULT_FAILUREâ undeclared (first use in this func tion)
chan_celliax.c:13330: error: âstruct celliax_pvtâ has no member named âphonebook _writing_fpâ
chan_celliax.c:13334: warning: control reaches end of non-void function
chan_celliax.c: In function âcelliax_sendsmsâ:
chan_celliax.c:13351: error: âLOG_NOTICEâ undeclared (first use in this function )
chan_celliax.c:13362: error: âLOG_ERRORâ undeclared (first use in this function)
chan_celliax.c:13387: error: âLOG_DEBUGâ undeclared (first use in this function)
chan_celliax.c:13387: error: dereferencing pointer to incomplete type
chan_celliax.c:13387: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13387: error: âiflockâ undeclared (first use in this function)
chan_celliax.c:13387: error: âmonlockâ undeclared (first use in this function)
chan_celliax.c:13387: error: âusecnt_lockâ undeclared (first use in this functio n)
chan_celliax.c:13387: error: âstruct celliax_pvtâ has no member named âcontrolde v_lockâ
chan_celliax.c:13387: error: âstruct celliax_pvtâ has no member named âfbus2_out going_list_lockâ
chan_celliax.c:13387: error: dereferencing pointer to incomplete type
chan_celliax.c:13387: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13387: error: âstruct celliax_pvtâ has no member named âcontrolde v_lockâ
chan_celliax.c:13387: error: âstruct celliax_pvtâ has no member named âfbus2_out going_list_lockâ
chan_celliax.c:13397: error: âoption_debugâ undeclared (first use in this functi on)
chan_celliax.c:13398: error: dereferencing pointer to incomplete type
chan_celliax.c:13398: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13428: error: dereferencing pointer to incomplete type
chan_celliax.c:13428: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13428: error: âstruct celliax_pvtâ has no member named âcontrolde v_lockâ
chan_celliax.c:13428: error: âstruct celliax_pvtâ has no member named âfbus2_out going_list_lockâ
chan_celliax.c:13428: error: dereferencing pointer to incomplete type
chan_celliax.c:13428: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13428: error: âstruct celliax_pvtâ has no member named âcontrolde v_lockâ
chan_celliax.c:13428: error: âstruct celliax_pvtâ has no member named âfbus2_out going_list_lockâ
chan_celliax.c:13433: error: âRESULT_FAILUREâ undeclared (first use in this func tion)
chan_celliax.c:13437: error: dereferencing pointer to incomplete type
chan_celliax.c:13437: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13448: error: dereferencing pointer to incomplete type
chan_celliax.c:13448: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13452: error: âstruct celliax_pvtâ has no member named âat_cmgwâ
chan_celliax.c:13457: error: dereferencing pointer to incomplete type
chan_celliax.c:13457: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13467: error: dereferencing pointer to incomplete type
chan_celliax.c:13467: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13470: error: âstruct celliax_pvtâ has no member named âat_cmgwâ
chan_celliax.c:13473: error: dereferencing pointer to incomplete type
chan_celliax.c:13473: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13479: error: âstruct celliax_pvtâ has no member named âat_cmgwâ
chan_celliax.c:13482: error: dereferencing pointer to incomplete type
chan_celliax.c:13482: error: âstruct celliax_pvtâ has no member named âskype_cal lflowâ
chan_celliax.c:13486: error: âstruct celliax_pvtâ has no member named âat_cmgwâ
chan_celliax.c:13490: error: âRESULT_SUCCESSâ undeclared (first use in this func tion)
chan_celliax.c:13491: warning: control reaches end of non-void function
chan_celliax.c: At top level:
chan_celliax.c:13500: error: expected â)â before string constant
make: *** [chan_celliax.o] Error 1

Can you provide some pointers?

Thx
C


try getting the include files from asterisk source

Hi Cowboy (what a nickname!!!)

you have not installed the asterisk include files (because of the missing dependency) so celliax do not find them (as you know).

You *may* have success if you download the asterisk-1.4 source from asterisk.org, unpack it, configure it, make it, *do not "make install"* just "make", then edit celliax_stuff/build/Makefile to point to the asterisk include files provided by the asterisk source and make it.

Probably there will be other issues then, but let's proceed one step a time :-)

Giovanni


Incoming calls doesn't work

Hello.
I installed celliax in TrixBox2.2.4. with isdn-hfc card.
I set up outbound and inbound routes as it was said here "http://www.celliax.org/node/314". And I called from TrixBox cellular(motorola C380) to another cellular and everything was fine I could talk with another cellular without any problems.

I tried to make an incoming call to my TrixBox cell. When I called TrixBox answered with "vm-goodbye" message and then it didn't hungup.
I tried to see what was happening with asterisk -r command. Here what I saw:

Oct 6 23:34:45 DEBUG[5539]: chan_celliax.c:1820 celliax_devicestate: -- Executing Playback("Celliax/nicephone", "vm-goodbye") in new stack
-- Executing Macro("Celliax/nicephone", "hangupcall") in new stack
-- Executing ResetCDR("Celliax/nicephone", "w") in new stack
Oct 6 23:34:46 DEBUG[6366]: cdr_addon_mysql.c:295 mysql_log: cdr_mysql: inserting a CDR record.
Oct 6 23:34:46 DEBUG[6366]: cdr_addon_mysql.c:311 mysql_log: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2007-10-06 23:34:45','','','s','default', 'Celliax/nicephone','','ResetCDR','w',1,1,'ANSWERED',3,'','asterisk-5485-1191692085.1')
Oct 6 23:34:46 DEBUG[6366]: app_macro.c:326 macro_exec: Executed application: ResetCDR
-- Executing NoCDR("Celliax/nicephone", "") in new stack
Oct 6 23:34:46 NOTICE[6366]: cdr.c:443 ast_cdr_free: CDR on channel 'Celliax/nicephone' not posted
Oct 6 23:34:46 NOTICE[6366]: cdr.c:445 ast_cdr_free: CDR on channel 'Celliax/nicephone' lacks end
Oct 6 23:34:46 DEBUG[6366]: app_macro.c:326 macro_exec: Executed application: NoCDR
Oct 6 23:34:46 DEBUG[6366]: pbx.c:1610 pbx_substitute_variables_helper_full: Expression result is '1'
-- Executing GotoIf("Celliax/nicephone", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
Oct 6 23:34:46 DEBUG[6366]: app_macro.c:326 macro_exec: Executed application: GotoIf
Oct 6 23:34:46 DEBUG[6366]: pbx.c:1610 pbx_substitute_variables_helper_full: Expression result is '1'
-- Executing GotoIf("Celliax/nicephone", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
Oct 6 23:34:46 DEBUG[6366]: app_macro.c:326 macro_exec: Executed application: GotoIf
-- Executing Wait("Celliax/nicephone", "5") in new stack

I want now to use callback function in TrixBox for this cellular(motorola C380 but it is recognized as "Motorola PCS E398 GSM Phone").
I would like to know what can I do make receive calls and how can I get callerID from this cellular


incoming trunk

You have to add a celliax incoming trunk via freePBX trixbox interface.

Let us know how it goes and if you find problems.

ciao for now,

Giovanni


FOP Flash Operator Panel Continuous Loop revision

Hi
My installation of 2.2.4 and CellIAX has a continuous loop on FOP. It keeps refreshing itself, as soon as it has finished it starts again doing its flashing of the icon colors etc. Has anyone else noticed this? Any ideas of the source of this?
Looking into this more I note I get:
[root@asterisk1 asterisk]# amportal stop

/usr/sbin/amportal: line 160: unexpected EOF while looking for matching ``'
/usr/sbin/amportal: line 217: syntax error: unexpected end of file
Does this make any sense Giovanni?


Let's see into

Need more informations and investigations.

I will look into this as soon as possible (I'll be back from holydays the 10th).

In the mailing list I think the same problem has been signaled...

ciao for now,

Giovanni


re Incoming trunk

Hello.
I wrote a question about incoming calls from celliax cellular phone. And you suggested to " add a celliax incoming trunk via freePBX trixbox interface". I cannot find anywhere how I to make it. May be you meant "Inbound Routes". I have "Default route(any DID/anyCID)". Can you tell, what should I do?
Andrey


trunk-route on trixbox

Ooops, maybe you're right, sorry. I will still be away from my office for another couple of days, then I'll check out this on Trixbox and I'll be muich more specific.
Giovanni


callback via celliax

hi

after I had tough time on buring ISO to CD, I got the liveCD installation running
very good experiment.

I am also user of callback in trixbox. let us discuss more on this issue.

I have seen the callerID in celliax *CLI> when I did liveCD installation as a test.
but I have to setup a Celliax channel in trixbox 1.2.3. ( sorry I am unable to upgrade it
to trixbox2.2.4). the use of this Celliax channle is to get the callerID when receiving
inbound calls.

I read your "How to " in trixbox 2.2.4 so you celliax will be a custom trunk
in freePBX, right? and there is no problem to get callerID delivered through
celliax trunk?

thanks
Yang


callback in Trixbox

Andrey

I am also user of callback in trixbox. let us discuss more on this issue.

Supposing we already setup a channel of Celliax in trixbox.

There are mainly two uses of Celliax channel :
1) use celliax to get callerID
that is my case. I have NOT yet worked it out. if you know some, please let me
know. usually callers just make call to celliax for few time ringing and hangup
without beging answered and callerID is displayed in Celliax channel.
Now I am using a SIP trunk to get callerID, but the SIP trunk is not reliable.

2) use celliax to make calls to callers
callers just answered the callback to get acess to PBX. In this case, celliax is a trunk
for outbounding calls. I have used Zaptel channel as trunk for outbound
calls. I guess Celliax channel is comparable to Zaptel.
in this case PBX will tell the channel the callerID, so you need some
scription for getting callerID first.
After callers enter the destination numbers, PBX will use second trunk
for outbound calls to the parties ( or callees). I am not sure if you
would need second celliax as trunk to call parties(or callees)

in my trixbox. I did it by TDM card with FXO +GSM gateway, very expensive
solution. We could work out a cheap soluction with use of celliax

3) or combined of above two uses.
use one celliax channel to get caller ID and use other celliax channel to
call caller back and/or call the parties.
please let me know more how do you use the celliax channel.

Y


custom trunk

hi Andrey

I suppose there is custom trunk setting in the FreePBX ---TRUNK
I am not sure yet. am also user of callback in trixbox. let us discuss more on this issue.

and I have interest in disccusing callback with you. pls see my post beneath
thanks
Yang


celliax context, was: Re: Incoming trunk

Andrey you right, you're ok as per routes and trunks.

You have to modify the context in celliax.conf to:
context=from-trunk


re:callback via celliax

@Yang (pragueman):
you wrote:
I read your "How to " in trixbox 2.2.4 so you celliax will be a custom trunk
in freePBX, right? and there is no problem to get callerID delivered through
celliax trunk?

answers:
yes, yes ;-)


callback from trixbox is working for me

Hi all,
in trixbox 2.2.4 (but I expect the same on other versions) I have:

1) setup a custom trunk celliax
2) setup an outbound route through celliax
3) setup a callback with destination the phone directory or an extension
4) setup an inbound route (any/any) with destination the callback
5) made sure that the context in celliax.conf is context=from-trunk

So, if I call celliax from someother cell|phone, celliax hangup without answering, then it call me back and it connect me to the callback destination (the directory or the extension)


same problem

Hey Giovanni!
I have the same problem that Cowboy had, but unfortunatly im a newbie, and dont know, how to do the things that you mentioned to Cowboy. Could you tell me exactly what, and HOW to do? Thanks!
Lali


newbie installation

As a newbie, I would recommend you to install trixbox 2.3.0.4 following closely step by step this tutorial: http://www.celliax.org/node/412

Installation is mostly automated, so you would have some more success probability, so you can make some practice on a working system.


thx

Oh, thanks for the quick response!:)
In the meanwhile, i downloaded asterisk 1.4.14 untared, maked (not makeinstalled), made the changes in the Makefile set the path to include directory (/tmp/asterisk-1.4.14/include) , tried "make" and still some error messages. So i made an another virtual machine, installed trixbox 2.3.0.4, installed the celliax with the .../node/412 tutorial, and now the asterisk doesnt start:) So now i'm installing the alsa-lib-devel and xorg-x11-devel things, but still doesnt start...its hard to be a newbie:)


hard way but rewarding ;-)

"it's hard to be a newbie" ;-)))!
but it seems you have the will and the perseverance!

for the trixbox installation, maybe asterisk do not start because celliax is not configured correctly. If you have no cellphone connected, please choose "NO_SERIAL" during configuration.

For the other installation (the one from sources) let us know if you encounter problems. Btw, we're here just to help!

Giovanni


not connected...

All right, you got me:) I did not connect the phone, because my university didnt give one yet.. So i thought, it will work if i configure first, then connect it...i think its the bad influence of windows:) Ill try it again. Thanks a lot!!!


Trixbox 2.2.9

Hi Giovanni
I tried running this up on the latest stable Trixbox.
[root@trixbox src]# tar xzf celliax_stuff.tgz
[root@trixbox src]# cd celliax_stuff/build
[root@trixbox build]# nano Makefile
[root@trixbox build]# make
cc -c -DASTERISK_VERSION_1_2 -g -ggdb -Wall -D_GNU_SOURCE -Wno-missing-prototypes -Wno-missing-declarations -fomit-frame-pointer -D_REENTRANT -Wall -I/home/maruzz/devel/asterisk -1.4.11/include -o chan_celliax.o chan_celliax.c
cc -DASTERISK_VERSION_1_2 -g -ggdb -Wall -D_GNU_SOURCE -Wno-missing-prototypes -Wno-missing-declarations -fomit-frame-pointer -D_REENTRANT -Wall -I/home/maruzz/devel/asterisk-1. 4.11/include -c -o celliax_spandsp.o celliax_spandsp.c
cc -DASTERISK_VERSION_1_2 -g -ggdb -Wall -D_GNU_SOURCE -Wno-missing-prototypes -Wno-missing-declarations -fomit-frame-pointer -D_REENTRANT -Wall -I/home/maruzz/devel/asterisk-1. 4.11/include -c -o celliax_libcsv.o celliax_libcsv.c
cc -shared -Xlinker -x -o chan_celliax.so chan_celliax.o celliax_spandsp.o celliax_libcsv.o -lasound -lm -ldl -L/usr/X11R6/lib -lX11
[root@trixbox build]# cp chan_celliax.so /usr/lib/asterisk/modules/
[root@trixbox build]# cp ../newconfigs/celliax.conf /etc/asterisk/
[root@trixbox build]# alsamixer -V all -c 0
alsamixer: relocation error: alsamixer: symbol snd_mixer_selem_get_playback_dB, version ALSA_0.9 not defined in file libasound.so.2 with link time reference
[root@trixbox build]#
Can you advise please?


alsa new RPM's

Looking into this some more I note that the ALSA files have been updated From / to:

wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libasound2-1.0.13-32.el4.at.i386.rpm
wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/libasound2-1.0.15-33.el4.i386.rpm

wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-utils-1.0.13-22.el4.at.i386.rpm
wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-utils-1.0.13-22.el4.at.i386.rpm = No Change

wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-x86_64/atrpms/stable/alsa-lib-devel-1.0.13-32.el4.at.i386.rpm
wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-x86_64/atrpms/stable/alsa-lib-devel-1.0.15-33.el4.i386.rpm

wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-lib-1.0.13-32.el4.at.i386.rpm
wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-lib-1.0.15-33.el4.i386.rpm

I'll reinstall and test these, perhaps this is the problem?


2.2.9 Fix

Hi
Using the new RPM's as noted fixed the above problem, got cellIAX installed and asterisk running.
I hope that helps zillions of people!


super!

:-)!


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.