Re: GSM Modem is not sending SMS or even not putting into queue

virendra bhati <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <CANNhuhf4_us6RmUKWUjR8a+PYjWmhViPuAWpLR_tL6+8wvQcYQ@mail.gmail.com>
Andreas,

I have attached my configuration file for more details..

*BearBox Log:-*

2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: gwlist_len = 14
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x855e568 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x8578d30 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x85605c0 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x8560040 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0xb56011c0 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x857ae78 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x8568730 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x8568a00 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x857b0f8 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x855cc80 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x857ed08 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x85694d0 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x8569790 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x85602f8 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: handling message
(0x855e568 vs 0x855e568)
2012-10-10 15:00:12 [3099] [7] DEBUG: Routing failed, re-queued.
2012-10-10 15:00:12 [3099] [7] DEBUG: sms_router: time to sleep 30.00 secs.

*SMSBox:-*

2012-10-10 14:55:00 [3108] [0] DEBUG:     <password> = <bhati>
2012-10-10 14:55:00 [3108] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2012-10-10 14:55:00 [3108] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2012-10-10 14:55:00 [3108] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2012-10-10 14:55:00 [3108] [0] INFO: Connected to bearerbox at localhost
port 13001.
2012-10-10 14:55:00 [3108] [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
2012-10-10 14:55:00 [3108] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) maps to pid 3108.
2012-10-10 14:55:00 [3108] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) maps to pid 3108.
2012-10-10 14:55:00 [3108] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) maps to pid 3108.
2012-10-10 14:55:00 [3108] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 3108.
2012-10-10 14:55:00 [3108] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) maps to pid 3108.
2012-10-10 14:55:13 [3108] [2] DEBUG: HTTP: Creating HTTPClient for
`115.115.95.162'.
2012-10-10 14:55:13 [3108] [2] DEBUG: HTTP: Created HTTPClient area
0xb53005c8.
2012-10-10 14:55:13 [3108] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <115.115.95.162>
2012-10-10 14:55:13 [3108] [3] INFO: sendsms used by <virendra>
2012-10-10 14:55:13 [3108] [3] INFO: sendsms sender:<virendra:9718500594>
(115.115.95.162) to:<00919718500594> msg:<"Hi Virendra Bhati, SMS gateway
is working now">
2012-10-10 14:55:13 [3108] [3] DEBUG: Stored UUID
f70cb417-6ba2-4217-a489-19547ebe68f2
2012-10-10 14:55:13 [3108] [3] DEBUG: message length 47, sending 1 messages
2012-10-10 14:55:13 [3108] [3] DEBUG: Status: 202 Answer: <Sent.>
2012-10-10 14:55:13 [3108] [3] DEBUG: Delayed reply - wait for bearerbox
2012-10-10 14:55:13 [3108] [0] DEBUG: Got ACK (3) of
f70cb417-6ba2-4217-a489-19547ebe68f2
2012-10-10 14:55:13 [3108] [0] DEBUG: HTTP: Resetting HTTPClient for
`115.115.95.162'.
2012-10-10 14:55:13 [3108] [3] INFO: smsbox: Got HTTP request
</favicon.ico> from <115.115.95.162>
2012-10-10 14:55:13 [3108] [3] DEBUG: Status: 404 Answer: <Unknown request.>
2012-10-10 14:55:13 [3108] [3] DEBUG: HTTP: Resetting HTTPClient for
`115.115.95.162'.
2012-10-10 14:55:31 [3108] [3] INFO: smsbox: Got HTTP request
</cgi-bin/status> from <115.115.95.162>
2012-10-10 14:55:31 [3108] [3] DEBUG: Status: 404 Answer: <Unknown request.>
2012-10-10 14:55:31 [3108] [3] DEBUG: HTTP: Resetting HTTPClient for
`115.115.95.162'.
2012-10-10 14:56:04 [3108] [3] INFO: smsbox: Got HTTP request
</cgi-bin/status=hariom> from <115.115.95.162>
2012-10-10 14:56:04 [3108] [3] DEBUG: Status: 404 Answer: <Unknown request.>
2012-10-10 14:56:04 [3108] [3] DEBUG: HTTP: Resetting HTTPClient for
`115.115.95.162'.
2012-10-10 14:57:04 [3108] [1] DEBUG: Timeout for fd:24 appeares.
2012-10-10 14:57:04 [3108] [1] DEBUG: HTTP: Destroying HTTPClient area
0xb53005c8.
2012-10-10 14:57:04 [3108] [1] DEBUG: HTTP: Destroying HTTPClient for
`115.115.95.162'.


If anything is required from my side then let me know..


On Tue, Oct 9, 2012 at 9:42 AM, Andreas Fink <[email protected]> wrote:

> you have
>
> modemtype = Bluocean
>
> but no modem definition with that name in the config file.
> Try adding this:
>
> group = modems
> id = Bluocean
> name = Bluocean
> speed = 115200
> detect-string = "Bluocean"
> detect-string2 = ""
> init-string = "AT+CNMI=2,2,2,1,0"
> enable-hwhs = ""
> need-sleep = true
> no-pin = true
> no-smsc = false
> sendline-sleep = 100
> keepalive-cmd = "AT"
> broken = false
> message-storage = "SM"
> hardware-flow-control = false
> reset-string = "AT+CFUN=1"
>
>
> You might have to play with the init string, hardware handshake, speed
>  etc.
> Above settings is what I use with my wavecom modems which are pretty much
> following the GSM standards.
>
> Trial and error helps there. Just set it up and watch the bearerbox
> logfile to see what kannel does do when talking to the modem and how the
> modem reacts. Especially in cases where you have lots of incoming SMS or
> delivery reports.
>
> On 09.10.2012, at 06:04, virendra bhati <[email protected]> wrote:
>
> *1) do you have a manual for it?*
>
> http://www.bluocean.biz/gsm_modem.html#usb_gprs
> model 2 is the GSM modem..
>
> *2) what kind of GSM modem options have you configured?*
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = hariom
> status-password = foo
> admin-deny-ip = ""
> admin-allow-ip = ""
> log-level = 0
> log-file = "/var/log/kannel/kannel.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> access-log = "/var/log/kannel/access.log"
> store-location= "/var/log/kannel/a-z.log"
> smsbox-max-pending = 10
> unified-prefix = "91,0091,+91,091"
>
> group = smsc
> smsc = at
> smsc-id = Bluocean
> modemtype = Bluocean
> device = /dev/ttyUSB0
>  my-number = "+6583640330"
> speed = 115200
> log-level = 0
> log-file = "/var/log/kannel/smsc.log"
>
> group = wapbox
> bearerbox-host = localhost
> log-file = "/var/log/kannel/wapbox.log"
> log-level = 0
>
> # MODEM DEFINITIONS
> group = modems
> id = wavecom
> name = "wavecom"
> detect-string = "wavecom"
> init-string = "ATZ"
> reset-string = "ATZ"
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13003
> global-sender = 9718500594
> #sendsms-url = "http://localhost:13003/cgi-bin/sendsms"
> access-log = /var/log/kannel/smsaccess.log
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
>
>
> # SEND-SMS USERS
>
> group = sendsms-user
> username = virendra
> password = bhati
>
> #---------------------------------------------
> # SERVICES
>
> group = sms-service
> keyword = default
> text = "This facility is down for maintenance."
> accept-x-kannel-headers = true
> max-messages = 1
> concatenation = true
> get-url = "
> http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a"
>
> group = mysql-connection
> id = mydlr
> host = localhost
> username = root
> password =
> database = playsms
> max-connections = 1
>
> group = dlr-db
> id = mydlr
> table = dlr
> field-smsc = smsc
> field-timestamp = ts
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc3)what does the bearerbox.log say if you enable
> log-level = 0 ?
>
> *what does the bearerbox.log say if you enable log-level = 0 ?*
> Right now dedicated server center is down when come up then I will provide
> that details as well.
> On Mon, Oct 8, 2012 at 11:12 PM, Andreas Fink <[email protected]> wrote:
>
>>
>> On 08.10.2012, at 19:39, virendra bhati <[email protected]> wrote:
>>
>> Hi Team,
>>
>> I have installed Kannel and working perfectly with *Ubuntu 12.04.1 LTS*.
>> But I am not able to installed *BluOcean™ USB GSM / GPRS Modem*. Could
>> you please help me so that I will configure and used my GSM modem for
>> sending SMS from Kannel.
>>
>>
>> do you have a manual for it?
>> what kind of GSM modem options have you configured?
>> what does the bearerbox.log say if you enable log-level = 0 ?
>>
>> Usually its only a question of finding the right init strings...(which
>> can be tricky at times...)
>>
>>
>>
>>
>> --
>>
>> Thanks and regards
>>
>>  Virendra Bhati
>> +91-9718500594
>> Asterisk Developer
>> E-mail-: [email protected]
>> Skype id:- virbhati2
>> New Delhi(India)
>> [image: View my profile on LinkedIn]<http://in.linkedin.com/pub/virendra-bhati/6/a30/755>
>>
>>
>>
>
>
> --
>
> Thanks and regards
>
>  Virendra Bhati
> +91-9718500594
> Asterisk Developer
> E-mail-: [email protected]
> Skype id:- virbhati2
> New Delhi(India)
> [image: View my profile on LinkedIn]<http://in.linkedin.com/pub/virendra-bhati/6/a30/755>
>
>
>


-- 

Thanks and regards

 Virendra Bhati
+91-9718500594
Asterisk Developer
E-mail-: [email protected]
Skype id:- virbhati2
New Delhi(India)
[image: View my profile on
LinkedIn]<http://in.linkedin.com/pub/virendra-bhati/6/a30/755>
b.conf (application/octet-stream, 3.1 KB)
group = core
admin-port = 13000
smsbox-port = 13001
#wapbox-port= 13002
admin-password = hariom
status-password = foo
admin-deny-ip = ""
admin-allow-ip = ""
log-level = 0
log-file = "/var/log/kannel/kannel.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/var/log/kannel/access.log"
store-location= "/var/log/kannel/a-z.log"
smsbox-max-pending = 10
unified-prefix = "91,0091,+91,091" 
#dlr-storage = mysql

group = smsc
smsc = at 
smsc-id = Bluocean
#modemtype = Bluocean
modemtype = auro
device = /dev/usb/hiddev0
#device = /dev/ttyUSB0
#device = /dev/ttyS0
my-number = "+6583640330"
# my-number = "+919757408157"
# sms-center = "+919810051873"
# sms-center = "+919869099994"
# sms-center = "+919892051914"
# Airtel :+919892051914"
speed = 9600                      
pin = 2345    
sim-buffering = true      
log-level = 0  
log-file = "/var/log/kannel/smsc.log"            

#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
#log-level = 0

# MODEM DEFINITIONS
#group = modems
#id = Bluocean
#name = "Bluocean"
#detect-string = "Bluocean"
#init-string = "AT+CNMI=1,2,0,1,0"
#http://sivren.hopto.org:13003/cgi-bin/sendsms?username= init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
# init-string = "AT+CNMI=1,2,0,1,0;+CMEE=1"
# init-string = "AT+CNMI=2,1,2,0,0;+CMEE=1"
#reset-string = "ATZ" 
#message-storage = "ME"
#message-start = 1
 
group = modems
id = Bluocean
name = Bluocean
speed = 115200
detect-string = "Bluocean"
detect-string2 = ""
init-string = "AT+CNMI=2,2,2,1,0"
enable-hwhs = ""
need-sleep = true
no-pin = true
no-smsc = false
sendline-sleep = 100
keepalive-cmd = "AT"
broken = false
message-storage = "SM"
#hardware-flow-control = false
reset-string = "AT+CFUN=1"

#group=smsc
#smsc=smpp
#host=72.167.38.22
#port=9001
#receive-port= 9002
#smsc-id=BondSMS
#smsc-username = topgopub
#smsc-password = t0g0pub
#system-type = "VMA"
##system-type = "generic"
#transceiver-mode = 1
#interface-version=34
#unified-prefix = "91,0091,+91,091" 

group = smsbox
bearerbox-host = localhost
sendsms-port = 13003
global-sender = 9718500594
#sendsms-url = "http://localhost:13003/cgi-bin/sendsms"
access-log = /var/log/kannel/smsaccess.log
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
#access-log = "access.log"

# SEND-SMS USERS

group = sendsms-user
username = virendra
password = bhati
#user-deny-ip = ""
#user-allow-ip = ""

#---------------------------------------------
# SERVICES

#group = sms-service
#keyword = default
#text = "This facility is down for maintenance."
#accept-x-kannel-headers = true
#max-messages = 1
#concatenation = true
#get-url = "http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a"

#Fake SMSC
#group = smsc
#smsc = fake
#port = 10000
#connect-allow-ip = 127.0.0.1

#group = mysql-connection
#id = mydlr
#host = localhost
#username = root
#password = 
#database = playsms
#max-connections = 1

#group = dlr-db
#id = mydlr
#table = dlr
#field-smsc = smsc
#field-timestamp = ts
#field-destination = destination
#field-source = source
#field-service = service
#field-url = url
#field-mask = mask
#field-status = status
#field-boxc-id = boxc
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.