Kannel with GSM modem (N6230) on Cygwin

"Madhur Vyas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

 

I'm testing the Kannel server 1.4.1, I was able to compile & run the
server on Cygwin. I was able to run the fake smsc test.

 

When I tried to use the server with GSM modem (nokia 6230) as virtual
smsc I'm running into troubles.

The behavior of server is not consistent, most of the time I got errors
while running it but once I was able to successfully run the bearerbox
it got connected to the virtual smsc. But I was not able to receive any
messages on server.

Again when I tried to use the same config file (attached) I got
following error.

 

============================================================

$ ./bearerbox.exe smskannelat.conf

2008-07-17 14:56:17 [4048] [0] INFO: Debug_lvl = -1, log_file = <none>,
log_lvl

= 0

2008-07-17 14:56:17 [4048] [0] WARNING: DLR: using default 'internal'
for storag

e type.

2008-07-17 14:56:17 [4048] [0] INFO: DLR using storage type: internal

2008-07-17 14:56:17 [4048] [0] DEBUG: Kannel bearerbox version `1.4.1'.

Build `Jul 15 2008 10:58:23', compiler `3.4.4 (cygming special) (gdc
0.12, using

 dmd 0.125)'.

System CYGWIN_NT-5.1, release 1.5.18(0.132/4/2), version 2005-07-02
20:30, machi

ne i686.

 

Libxml version 2.6.20.

Using native malloc.

 

2008-07-17 14:56:17 [4048] [0] INFO: SSL not supported, no SSL
initialization do

ne.

2008-07-17 14:56:17 [4048] [0] INFO: HTTP: Opening server at port 13000.

2008-07-17 14:56:17 [4048] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pi

d 4048.

2008-07-17 14:56:17 [4048] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)

2008-07-17 14:56:17 [4048] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps

 to pid 4048.

2008-07-17 14:56:17 [4048] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thre

ad)

2008-07-17 14:56:17 [4048] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps

 to pid 4048.

2008-07-17 14:56:17 [4048] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_r

un)

2008-07-17 14:56:17 [4048] [0] DEBUG: starting smsbox connection module

2008-07-17 14:56:17 [4048] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using d

efault (100).

2008-07-17 14:56:17 [4048] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) ma

ps to pid 4048.

2008-07-17 14:56:17 [4048] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsb

oxes)

2008-07-17 14:56:17 [4048] [5] DEBUG: Thread 5
(gw/bb_boxc.c:smsboxc_run) maps t

o pid 4048.

2008-07-17 14:56:17 [4048] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run

)

2008-07-17 14:56:17 [4048] [0] INFO: Set SMS resend frequency to 60
seconds.

2008-07-17 14:56:17 [4048] [0] INFO: SMS resend retry set to unlimited.

2008-07-17 14:56:17 [4048] [0] INFO: DLR rerouting for smsc id <l7>
disabled.

2008-07-17 14:56:17 [4048] [0] INFO: AT2[l7]: configuration shows
modemtype <nok

ia>

2008-07-17 14:56:17 [4048] [0] DEBUG: AT2[l7]: Reading modem definitions
from <s

mskannelat.conf>

2008-07-17 14:56:17 [4048] [0] PANIC: gwlib/thread.c:139:
mutex_lock_real: Mutex

 failure! (Called from gwlib/list.c:503:lock.)

================================================================

 

Any suggestions how to resolve this issue?

Does the Kannel server works fine on Linux machine? I can switch if
there are issues in Cygwin.

 

--Thanks & Regards

    Madhur Vyas
smskannelat.conf (application/octet-stream, 4.2 KB)
#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# This basic version is used for system testing. It expects 'fakesmsc' to
# send messages which are replied with simple fixed text message.
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
# Note that you can run them in different machines but have to
# add certain command line argument and configuration variables then
#
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, see Kannel web page (http://www.kannel.org) and
# various online help and mailing list archives
#
# Notes on those who base their configuration on this:
#  1) check security issues! (allowed IPs, passwords and ports)
#  2) groups cannot have empty rows inside them!
#  3) read the user guide
#
# Kalle Marjola for Kannel project 2001, 2004

#---------------------------------------------
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'


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 = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs


# This is a fake smsc connection, _only_ used to test the system and services.
# It really cannot relay messages to actual handsets!

#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
#connect-allow-ip = 127.0.0.1


##########################
group = modems
id = nokia
name = "Nokia Phone"
detect-string = "Nokia"
detect-string2 = "7610"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
init-string = "AT+CMEE=1"
no-pin = true

group = smsc
smsc = at
smsc-id = l7
modemtype = nokia
device = /dev/com2
speed = 57600
############################


#NOKIA N70-1
#group = smsc
#smsc = at
#smsc-id = N70
#modemtype = nokiaphone
#device = /dev/com2
##my-number = 09890692053
#connect-allow-ip = 127.0.0.1
##log-level = 0
#speed = 115200
##pin = 6594

###Modem.conf
#group = modems
#id = nokiaphone
#name = "Nokia 6230"
#init-string = "AT+CMEE=1"
#detect-string = "Nokia"
#detect-string2 = "6230"
#message-storage = "SM"
#no-pin = true
#need-sleep = true
#keepalive-cmd = "AT+CBC;+CSQ"
#enable-mms = true
#####
#include = /etc/modems.conf

#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 127.0.0.1
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
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
text = "No service specified"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.