Celliax doesn´t load in Asterisk

Hi, I installed celliax module for asterisk but when I try to load de module from Asterisk CLI (load celliax_module.so) I get these Errors:

== Registered channel type 'Celliax' (Celliax, Audio-Serial Driver)
== Parsing '/etc/asterisk/celliax.conf': Found
[Jul 19 09:05:11] NOTICE[7146]: chan_celliax.c:1771 celliax_mkif: rev exported[(nil)|b7804b90][NOTICE 1771 ][line0 ][-1, 0, 0] DEBUG_AT activated.
[Jul 19 09:05:11] NOTICE[7146]: chan_celliax.c:1793 celliax_mkif: rev exported[(nil)|b7804b90][NOTICE 1793 ][line0 ][-1, 0, 0] DEBUG_SERIAL activated.
[Jul 19 09:05:11] NOTICE[7146]: chan_celliax.c:1804 celliax_mkif: rev exported[(nil)|b7804b90][NOTICE 1804 ][line0 ][-1, 0, 0] DEBUG_SOUND activated.
[Jul 19 09:05:11] NOTICE[7146]: chan_celliax.c:1815 celliax_mkif: rev exported[(nil)|b7804b90][NOTICE 1815 ][line0 ][-1, 0, 0] DEBUG_PBX activated.
[Jul 19 09:05:11] NOTICE[7146]: chan_celliax.c:1826 celliax_mkif: rev exported[(nil)|b7804b90][NOTICE 1826 ][line0 ][-1, 0, 0] DEBUG_CALL activated.
[Jul 19 09:05:23] ERROR[7146]: celliax_additional.c:2792 celliax_serial_config_AT: rev exported[(nil)|b7804b90][ERROR 2792 ][line0 ][-1, 0, 0] Error setting SMS sending mode to TEXT on the cellphone
[Jul 19 09:05:23] ERROR[7146]: chan_celliax.c:2011 celliax_mkif: rev exported[(nil)|b7804b90][ERROR 2011 ][line0 ][-1, 0, 0] celliax_serial_config failed
[Jul 19 09:05:23] ERROR[7146]: chan_celliax.c:1359 load_module: rev exported[(nil)|b7804b90][ERROR 1359 ][none ][-1,-1,-1] Unable to create channel Celliax from celliax.conf category '[line0]'
== Unregistered channel type 'Celliax'

This is my celliax.conf:

;---------------------------------------------------celliax.conf--------------------------------------------------------
;;
;;
; Celliax Asterisk Driver
;
; Configuration file
; lines beginning with semicolon (" are ignored (commented out)
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; The first interface (named line0)
[line0]
;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; general settings, valid on all platforms
;
;
; Default language
;
language=en
;
; Default context (is overridden with @context syntax)
;
context=sms
;
; Default extension (in extensions.conf) where incoming calls land
;
extension=556
;
;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; Debugging settings, valid globally for all interfaces on all platforms
;
; the debug values are global for all the interfaces.
;
; default is no celliax debugging output, you **have** to activate debugging here to obtain debugging from celliax
;
; To see the debugging output you have to "set debug 100" from the Asterisk CLI or launch
; Asterisk with -ddddddddddd option, and have the logger.conf file activating debug info for console and messages
;
; You can activate each of the following separately, but you can't disactivate. Eg: debug_at=no does not subtract debug_at from debug_all
; debug_all activate all possible debugging info
;
;debug_all=yes
debug_at=yes
;debug_fbus2=yes
debug_serial=yes
debug_pbx=yes
debug_sound=yes
;debug_locks=yes
debug_call=yes
;debug_monitorlocks=yes
;debug_cvm=yes

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; This is the program that will receive in stdin the incoming SMSs
sms_receiving_program=/usr/local/asterisk/usr/sbin/ciapalo

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; serial settings, valid for all platforms
;
;control_device_protocol can be AT or FBUS2 or NO_SERIAL (with NO_SERIAL the speed and name of the port are ignored)
control_device_protocol=AT

;speed of the serial port
control_device_speed=19200

;name of the serial port device
control_device_name=/dev/ttyACM0 ; this is a Celliax Official Device, recognized as a modem by Linux
;control_device_name=/dev/ttyUSB0 ; this is an alternative form of a Celliax Official Device, recognized as a modem by Linux

;watch the soundcard for noise (ring), because the serial port do not tell us about incoming calls (eg 3310nokia), NO_SERIAL protocol watch for acoustic ring in any case
need_acoustic_ring=0

;audio noise threshold beyond which we declare there is a ring (512 is default, put it to 1024 or 2048 if you have false positive), ignored if not watching for ring
dsp_silence_threshold=1024

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; audio boost settings, valid for all platforms, to compensate for different soundcard/phone input/output signal levels
; tweak it if you get horrible (or not hearable) sound
;
;boost can be positive or negative (-40 to +40) in db
;experiment to find which values are best for your soundcard
playback_boost=0 ;
capture_boost=0 ;

;;;;;;;;;;;;;;;;;;;;;;;;;;;
; which audio device to use
;;;;;;;;;;;;;;;;;;;;;;;;;;;

;names of the sound devices in linux
;if you don't use skype on this interface (eg don't need to share the audio device with other applications while celliax is running), use the plughw:n devices (plughw:0 is the first, plughw:1 is the second soundcard, etc). They have the best latency
;if you use skype on this interface use the default:n devices (default:0 is the first, default:1 is the second soundcard, etc). They have worst latency, but you can share them

alsa_capture_device_name=plughw:0
alsa_playback_device_name=plughw:1

alsa_period_size=160
alsa_periods_in_buffer=4

;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
; at "modem" commands settings for this interface (if controldevice_protocol is not AT they are ignored)
;
;what the modem is expecting in the part of the dial command before the number to be dialed (eg: ATD)
;at_dial_pre_number=AT+CKPD="EEE
at_dial_pre_number=ATD
;what the modem is expecting in the part of the dial command after the number to be dialed. If you want it to wait for a semicolon (;), just comment out the followin line. Wait for semicolon is the default
;at_dial_post_number=S"
;what the modem will answer after succesful execution of the dial command
at_dial_expect=OK

;command to hangup the current call
;at_hangup=AT+CKPD="EEE"
at_hangup=ATH
;what the modem will answer after succesful execution of the hangup command
at_hangup_expect=OK

;command to answer an incoming call
at_answer=ATA
;what the modem will answer after succesful execution of the answer command
at_answer_expect=OK

;pause right after serial port opening, before any command is sent, in usecs (1million usec= 1sec)
at_initial_pause=500000
;custom commands to be sent after the initial pause and before the "built in" initialization commands, and what the modem is expected to send as reply
;the first empty string stop the preinit sending
at_preinit_1=atciapa ; nonsense entry, just to show the preinit
at_preinit_1_expect=OK
at_preinit_2=
at_preinit_2_expect=
at_preinit_3=
at_preinit_3_expect=
at_preinit_4=
at_preinit_4_expect=
at_preinit_5=
at_preinit_5_expect=
;pause right after the custom preinit commands, before any "built in" command is sent, in usecs (1million usec= 1sec)
at_after_preinit_pause=500000
;custom commands to be sent after the "built in" initialization commands, and what the modem is expected to send as reply
;the first empty string stop the postinit sending
;at_postinit_1=atcucu ; nonsense entry, just to show the postinit
at_postinit_1=at+cmic=0,9 ; modem's microphone sensitivity (our spk)
at_postinit_1_expect=OK
at_postinit_2=AT+CKPD="EEE" ;send three "end" buttonpress, to have the phone in a sane state, ready to dialing with furter CKPDs ***THIS IS IMPORTANT, needed on c650***
at_postinit_2_expect=OK
at_postinit_3=AT+CSSN=1,0
at_postinit_3_expect=OK
at_postinit_4=at+sidet=0 ; no sidetone in modem, please
at_postinit_4_expect=OK
at_postinit_5=at+clvl=99 ; modem's speaker level, out mic
at_postinit_5_expect=OK

;what command to query the battery status, and what the modem is expected to send as reply
at_query_battchg=AT+CBC
at_query_battchg_expect=OK
;what command to query the signal status, and what the modem is expected to send as reply
at_query_signal=AT+CSQ
at_query_signal_expect=OK

;what command to send a DTMF
at_send_dtmf=AT+VTS

;the modem will send us the following messages to signal that the visual indicators on the phone has changed because of events (without us to ask for them), loosely based on ETSI standard (see CIND/CIEV/CMER in ETSI). Variable by manufacturer and phone model
; no service
at_indicator_noservice_string=+CIEV: 2,0
; no signal
at_indicator_nosignal_string=+CIEV: 5,0
; low signal
at_indicator_lowsignal_string=+CIEV: 5,1
; low battery
at_indicator_lowbattchg_string=+CIEV: 0,1
; no battery battery
at_indicator_nobattchg_string=+CIEV: 0,0
; call is up
at_indicator_callactive_string=+CIEV: 3,1
; call is down
at_indicator_nocallactive_string=+CIEV: 3,0
; call is no more in process
at_indicator_nocallsetup_string=+CIEV: 6,0
; call incoming is in process
at_indicator_callsetupincoming_string=+CIEV: 6,1
; call outgoing is in process
at_indicator_callsetupoutgoing_string=+CIEV: 6,2
; remote party is ringing because of our call outgoing
at_indicator_callsetupremoteringing_string=+CIEV: 6,3

;call processing unsolicited messages, proprietary for each phone manufacturer
;the modem will send us the following mesage to signal that the line is idle (eg. after an outgoing call has failed, or after hangup)
at_call_idle=+MCST: 1
;the modem will send us the following mesage to signal that there is an incoming voice call
at_call_incoming=+MCST: 2
;the modem will send us the following mesage to signal that there is an active call (eg. the remote party has answered us, or we answered them)
;at_call_active=+MCST: 3
at_call_active=+CSSI: 7
;the modem will send us the following mesage to signal that our outgoing call has failed
at_call_failed=+MCST: 65
;the modem will send us the following mesage to signal that our outgoing call is in the calling phase
;at_call_calling=+MCST: 64
at_call_calling=+CSSI: 1

;-------------------------------------------------------------------------------------------------------------------------------------

The Asterisk version is a 1.4.24.1, running on CentOS 5.

Can somebody help to resolve this error??

Thanks.

Comment viewing options

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

no load because error

You have not activated debug output in the console, please refer to http://www.gsmopen.org/howtobug for how to report a problem

your problem is that your modem does not accept the command for interacting with SMSs in text mode.

what device are you using?

debug activated

Hi, I have debug activated (set debug 10).
I'm using a Sony Ericsson W610i in /dev/ttyACM0, to install the module I followed these instructions http://www.gsmopen.org/celliax_for_asterisk
thanks.

debug not activated :)

If you want to be right at all costs, think what you want. I'm telling you do not have debug activated in console, and I know what I'm telling you. Please refer to that page I gave you in the previous post, and read it all carefully, and you'll find how to activate debug in the console log (what you have cutted and pasted is a non-debug log).

Anyway, your device seems not to accept the standard AT commands for TEXT mode SMSs, you'll have to find them out from the device documentation :(

Comment viewing options

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