some problem with chan_celliax

I use Asterisk 1.6.0.15 built by root @ time-ip-pbx on a i686 running Linux on 2009-10-20 00:49:11 UTC and mobigater PRO.

I run asterisk ... all work fine .... but after 1 hour or sometimes several calls on mobigater channel line0 (chan_celliax) is owned by someone else.
Core show channels -> 0 active channels

Maybe it's problem with port monitoring (celliax_do_monitoring) or somewhere else....

Comment viewing options

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

Where link to download celliax_stuff

1.Mobigater & Asterisk version
detail:
Trixbox 2.4
CentOS release 5.4(Final)
kernel 2.6.18-128.1.10.el5 on an i686
asterisk 1.4.22-4

1.1 The Mobigater is installed in the system right now.
[trixbox1.localdomain ~]# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 003 Device 003: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 003 Device 004: ID 058f:9720 Alcor Micro Corp. USB-Serial Adapter
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

2.Installation Procedure
[root@asterisk1 ~]# yum -y update
[root@asterisk1 ~]# yum -y install kernel-devel gcc gcc-c++
[root@asterisk1 ~]# yum -y install alsa-lib-devel xorg-x11-devel
[root@asterisk1 ~]# ldconfig
[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-...
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-utils-...
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-x86_64/atrpms/stable/alsa-lib-...
[root@asterisk1 alsarpm]# wget -c ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/alsa-lib-1....
[root@asterisk1 alsarpm]# rpm -U --nosignature *
[root@asterisk1 alsarpm]# reboot

[root@asterisk1 ~]# cd /usr/src
[root@asterisk1 src]# wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.18.1.tar.gz
[root@asterisk1 src]# tar zxf asterisk*
[root@asterisk1 asterisk]# cd asterisk*
[root@asterisk1 asterisk]# ./configure
[root@asterisk1 asterisk]# make
[root@asterisk1 asterisk]# cd ..

[root@asterisk1 src]# wget http://www.mobigater.com/downloads/asterisk/Astersk_and_MobiGater_EN.zip
[root@asterisk1 src]# wget http://www.mobigater.com/downloads/asterisk/celliax_stuff.tgz
[root@asterisk1 src]# tar xzf celliax_stuff.tgz
[root@asterisk1 src]# yum install unzip
[root@asterisk1 src]# unzip Astersk_and_MobiGater_EN.zip

[root@asterisk1 src]# cp ./Astersk_and_MobiGater_EN/Makefile ./celliax_stuff/build/Makefile
[root@asterisk1 src]# cd ./celliax_stuff/build

2.1 We used Asterisk version 1.4.22-4 RPM. We’ve already revise Makefile.

**notes**

[trixbox1.localdomain build]# vi Makefile
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for channel drivers
#
# Copyright (C) 1999-2005, Mark Spencer
#
# Mark Spencer
#
# Edited By Belgarath <> Aug 28 2004
# Added bare bones ultrasparc-linux support.
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

#ASTERISK INCLUDE FILES
#The directory containing the Asterisk include files (eg: /usr/include or /usr/include/asterisk or /usr/src/asterisk/include or ...)
#AST_INCLUDE_DIR=/home/maruzz/devel/asterisk-1.4.11/include
#AST_INCLUDE_DIR=/usr/src/asterisk-1.4.18.1/include

#ASTERISK VERSION 1.4.XX
"Makefile" 65L, 1920C
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for channel drivers
#
# Copyright (C) 1999-2005, Mark Spencer
#
# Mark Spencer
#
# Edited By Belgarath <> Aug 28 2004
# Added bare bones ultrasparc-linux support.
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

#ASTERISK INCLUDE FILES
#The directory containing the Asterisk include files (eg: /usr/include or /usr/include/asterisk or /usr/src/asterisk/include or ...)
#AST_INCLUDE_DIR=/home/maruzz/devel/asterisk-1.4.11/include
AST_INCLUDE_DIR=/usr/src/asterisk-1.4.18.1/include

#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

#SKYPE SUPPORT
#Uncomment the following two lines if you DO NOT WANT SKYPE SUPPORT in Linux (so, no libX11 needed)
CFLAGS+=-DNO_SKYPE
SKYPE_LIB=
#Comment out the following line if you DO NOT WANT SKYPE SUPPORT in Linux (so, no libX11 needed)
#SKYPE_LIB=-L/usr/X11R6/lib -lX11

CFLAGS+=-g -ggdb -Wall -D_GNU_SOURCE
CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
CFLAGS+=-fomit-frame-pointer -D_REENTRANT
CFLAGS+=-Wall
CFLAGS+=-I$(AST_INCLUDE_DIR)
ifeq ($(shell uname -m),x86_64)
CFLAGS+=-fPIC
endif

CHANNEL_LIBS=chan_celliax.so

SUBDIRS=

all: $(CHANNEL_LIBS)

clean:
rm -f *.so *.o

#chan_celliax section begins
chan_celliax.o: chan_celliax.c
$(CC) -c $(CFLAGS) -o chan_celliax.o chan_celliax.c
chan_celliax.so: chan_celliax.o celliax_spandsp.o celliax_libcsv.o
$(CC) -shared -Xlinker -x -o $@ chan_celliax.o celliax_spandsp.o celliax_libcsv.o -lasound -lm -ldl $(SKYPE_LIB)
#chan_celliax section ends

[root@asterisk1 build]# sed 's/.at_dial_post_number = \"S\\\"\",/.at_dial_post_number = \";\",/' < /usr/src/celliax_stuff/build/chan_celliax.c > /usr/src/celliax_stuff/build/chan_celliax.c.tmp

[root@asterisk1 build]# mv -f /usr/src/celliax_stuff/build/chan_celliax.c.tmp /usr/src/celliax_stuff/build/chan_celliax.c

[root@asterisk1 build]# make clean
[root@asterisk1 build]# make
[root@asterisk1 build]# cp chan_celliax.so /usr/lib/asterisk/modules/
[root@asterisk1 build]# chown root:asterisk /usr/lib/asterisk/modules/chan_celliax.so
[root@asterisk1 build]# chmod 640 /usr/lib/asterisk/modules/chan_celliax.so
[root@asterisk1 build]# reboot

Which path do we need to fill in this line between Asterisks, which come with Trixbox or Asterisk path download

Please use the updated celliax version

Download the updated version of celliax that you can find in the "download" section of this site, and follow the README inside the package.

If you'll find problems, please post here again.

Thanks for the detailed bug report.

Comment viewing options

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