I think I've narrowed down my problem a lot now, could do with some final help however.
 
I have a dual boot system, Gentoo and Windows XP with cygwin both have latest kannel development version installed.

on windows xp (cygwin) I've managed to recieve a message and send a reply with my conf file.
However using the same conf file in gentoo does not work, the only difference being the following line:
 
device = /dev/ttyS0  (cygwin)    works fine
device = /dev/tty0    (Gentoo)    does not work
 
I start kannel (bearerbox) in the same way on both systems, however I get error in gentoo and not in cygwin:
(you'll notice the .conf files are named differently but they are as I said just different as shown above)
 
cygwin:
------------------------
2003-10-18 13:01:50 [0] DEBUG: HTTP: Opening server at port 13000.
2003-10-18 13:01:50 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2003-10-18 13:01:50 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2003-10-18 13:01:50 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2003-10-18 13:01:50 [0] DEBUG: starting smsbox connection module
2003-10-18 13:01:50 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2003-10-18 13:01:50 [0] INFO: AT2[wavecom_1]: configuration shows modemtype <wavecom>
2003-10-18 13:01:50 [0] DEBUG: AT2[wavecom_1]: Reading modem definitions from <gw/kannel.conf>
2003-10-18 13:01:50 [0] DEBUG: AT2[wavecom_1]: Found <1> modems in config
2003-10-18 13:01:50 [0] INFO: AT2[wavecom_1]: read modem definition for <Wavecom>
2003-10-18 13:01:50 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread)
2003-10-18 13:01:50 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router)
2003-10-18 13:01:50 [0] INFO: ----------------------------------------
2003-10-18 13:01:50 [5] INFO: AT2[wavecom_1]: opening device
2003-10-18 13:01:50 [6] DEBUG: sms_router: time to sleep
2003-10-18 13:01:50 [0] INFO: Kannel bearerbox II version 1.3.1 starting
2003-10-18 13:01:50 [5] DEBUG: AT2[wavecom_1]: device opened
2003-10-18 13:01:50 [0] INFO: MAIN: Start-up done, entering mainloop
2003-10-18 13:01:50 [0] DEBUG: AT2[wavecom_1]: start called
2003-10-18 13:01:50 [6] DEBUG: sms_router: list_len = 0
2003-10-18 13:01:50 [5] DEBUG: AT2[wavecom_1]: device opened
2003-10-18 13:01:50 [5] INFO: AT2[wavecom_1]: init device
2003-10-18 13:01:51 [5] INFO: AT2[wavecom_1]: speed set to 9600
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: --> AT^M
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: <-- AT
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: --> AT&F^M
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: <-- AT&F
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:01:51 [5] DEBUG: AT2[wavecom_1]: --> ATE0^M
2003-10-18 13:01:52 [5] DEBUG: AT2[wavecom_1]: <-- ATE0
2003-10-18 13:01:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:01:52 [5] DEBUG: AT2[wavecom_1]: --> AT+IFC=2,2^M
2003-10-18 13:01:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:01:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CPIN?^M
2003-10-18 13:01:52 [5] DEBUG: AT2[wavecom_1]: <-- +CPIN: READY
2003-10-18 13:02:03 [5] DEBUG: AT2[wavecom_1]: --> AT+CMGF=0^M
2003-10-18 13:02:04 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:02:04 [5] DEBUG: AT2[wavecom_1]: --> AT+CSMS=?^M
2003-10-18 13:02:04 [5] DEBUG: AT2[wavecom_1]: <-- +CSMS: (0,1)
2003-10-18 13:02:04 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:02:04 [5] INFO: AT2[wavecom_1]: Phase 2+ is supported
2003-10-18 13:02:04 [5] DEBUG: AT2[wavecom_1]: --> AT+CSMS=1^M
2003-10-18 13:02:04 [5] DEBUG: AT2[wavecom_1]: <-- +CSMS: 1,1,1
2003-10-18 13:02:05 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:02:05 [5] DEBUG: AT2[wavecom_1]: --> AT+CNMI=1,2,0,1,0^M
2003-10-18 13:02:05 [5] DEBUG: AT2[wavecom_1]: <-- OK
2003-10-18 13:02:05 [5] INFO: AT2[wavecom_1]: AT SMSC successfully opened.
-------------------------------------------------
 
and in Gentoo:
---------------------
2003-10-18 12:03:51 [0] DEBUG: HTTP: Opening server at port 13000.
2003-10-18 12:03:51 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2003-10-18 12:03:51 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2003-10-18 12:03:51 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2003-10-18 12:03:51 [0] DEBUG: starting smsbox connection module
2003-10-18 12:03:51 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2003-10-18 12:03:51 [0] INFO: AT2[wavecom_1]: configuration shows modemtype <wavecom>
2003-10-18 12:03:51 [0] DEBUG: AT2[wavecom_1]: Reading modem definitions from <programs/gateway-1.3.1/gw/jarl.conf>
2003-10-18 12:03:51 [0] DEBUG: AT2[wavecom_1]: Found <1> modems in config
2003-10-18 12:03:51 [0] INFO: AT2[wavecom_1]: read modem definition for <Wavecom>
2003-10-18 12:03:51 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread)
2003-10-18 12:03:51 [5] INFO: AT2[wavecom_1]: opening device
2003-10-18 12:03:51 [5] DEBUG: AT2[wavecom_1]: device opened
2003-10-18 12:03:51 [5] DEBUG: AT2[wavecom_1]: device opened
2003-10-18 12:03:51 [5] INFO: AT2[wavecom_1]: init device
2003-10-18 12:03:51 [5] INFO: AT2[wavecom_1]: speed set to 9600
2003-10-18 12:03:51 [5] DEBUG: AT2[wavecom_1]: --> AT^M
2003-10-18 12:03:51 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router)
2003-10-18 12:03:51 [0] INFO: ----------------------------------------
2003-10-18 12:03:51 [0] INFO: Kannel bearerbox II version 1.3.1 starting
2003-10-18 12:03:51 [0] INFO: MAIN: Start-up done, entering mainloop
2003-10-18 12:03:51 [0] DEBUG: AT2[wavecom_1]: start called
2003-10-18 12:03:51 [6] DEBUG: sms_router: time to sleep
2003-10-18 12:03:51 [6] DEBUG: sms_router: list_len = 0
2003-10-18 12:03:55 [5] DEBUG: AT2[wavecom_1]: --> AT^M
2003-10-18 12:03:59 [5] ERROR: AT2[wavecom_1]: no answer from modem
2003-10-18 12:03:59 [5] ERROR: AT2[wavecom_1]: Opening failed. Terminating
2003-10-18 12:03:59 [5] INFO: AT2[wavecom_1]: closing device
2003-10-18 12:03:59 [5] DEBUG: Thread 5 (gw/smsc/smsc_at2.c:at2_device_thread) terminates.
2003-10-18 12:04:35 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
2003-10-18 12:04:35 [7] INFO: Client connected from <127.0.0.1>
2003-10-18 12:04:35 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
2003-10-18 12:04:35 [7] DEBUG: boxc_receiver: unlocking sender
2003-10-18 12:04:35 [8] DEBUG: boxc_sender: sender unlocked
----------------------------------------------------------------------------------------------
 
 
After line 11 they are different... however I can't undertand why.... to me it looks like it must be the line which is different.... however I've tries using ttyS0 for gentoo but it then it can't even get to the modem....
 
Please help if you've got any clues whatsoever on this problem, the whole conf file is attached below.
I need to be able to run kannel in linux, which is why I need to solve this problem...
 
Thank you,
Jarl
 
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
 
#include = "kannel.conf"
 
# SMSC CONNECTIONS
 
group = smsc
smsc = at2
smsc-id = wavecom_1
allowed-smsc-id = wavecom_1
modemtype = wavecom
device = /dev/tty0
speed = 9600
#pin = <your pin code>
 
group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"
 

# SMSBOX SETUP
 
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"
 

# SEND-SMS USERS
 
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
 
# SERVICES
 
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"
 
# there should be default always
 
group = sms-service
keyword = default
text = "No service specified"

Reply via email to