could not fetch content

2011-07-11 Thread parimal naigaonkar
Hi,
I have made my kannel to process the message and call a servlet url, but
when i send bulk sms to this modem i get 10 prompt replies , but after that
i get could not fetch content and that too after 5 or 10 minutes.
I am calling netbeans servlet.

#include = /home/parimal/Documents/modems.conf

group = core
admin-port = 13000
admin-password = admin
status-password = status
smsbox-port = 13001
box-deny-ip = *.*.*.*
log-file = /var/log/kannel/bearerbox.log
access-log = /var/log/kannel/access-log.log
box-allow-ip = 127.0.0.1,192.168.60.213,192.168.60.242,192.168.60.211
log-level = 0

#-
# 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
group = smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB0
sms-center = +91944207
my-number = 09440375777
connect-allow-ip = 127.0.0.1,192.168.60.213,192.168.60.242,192.168.60.211
log-file = /var/log/kannel/modem.log
log-level = 0
max-error-count = 5
#sim-buffering = true

#--
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 09440375777
immediate-sendsms-reply=1
log-file = /var/log/kannel/smsbox.log
log-level = 0

#-
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
group = sendsms-user
username = cdacbang
password = root123
#user-allow-ip = 

#-
# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.
group = sms-service
keyword = default
text=the default format is:submit/status usr pwd jobid 
catch-all=true
#-

group=sms-service
keyword=submit
get-url=
http://localhost:8084/kannel-server/JobResubmitServlet?sender=%pkey=%kusr=%spwd=%sjobid=%s


group=sms-service
keyword=status
get-url=
http://localhost:8084/kannel-server/StatusServlet?sender=%pkey=%kusr=%spwd=%sjobid=%s



group = modems
id = WAVECOM MODEM
name = WAVECOM MODEM
detect-string = WAVECOM MODEM
init-string=ATZ
init-string=ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0
init-string=AT+CNMI=2,2,0,1,1
#init-string=AT+CNMI=1,2,2,2,1
speed = 115200
need-sleep=true
#AT+CMEE=2


Re: receive multiple sms at one particular time

2011-07-05 Thread parimal naigaonkar
hi
actually i dont see any message received in the log files.
Suppose i send messages i see only 3-4 of them in log files.
i have attached conf file
Also bearerbox takes 100 % cpu after some time.

On Thu, Jun 30, 2011 at 7:40 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi

 As you said nothing about MO being received by kannel it seems more a
 problem with your provider.

 MO has about the same rate as MT. In modems it is about 6 to 10 secs
 per sms. If your modem receives more that that, you SMSC provider
 (telco) is responsible to queue them and deliver it once your modem is
 free. You might need to contact your telco to see how they handle MO
 queues in their side.

 In any case, check your CNMI setup to be sure is the right one. Also
 check that you are not storing messages on the device/sim card.

 Regards

 Alvaro


 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.NET www.smsglobal.com.mx y
 www.pravcom.com



 On Thu, Jun 30, 2011 at 5:19 AM, parimal naigaonkar
 parimal...@gmail.com wrote:
  thanks for reply Jovan,
  actually issue is we are trying to test our system to receive messages in
  bulk, there is a website on which we can schedule  future sms, here we
 send
  sms to modem's number at a particular time but our modem receives only 1
 or
  2 of them.
 
  On Thu, Jun 30, 2011 at 3:06 PM, Jovan Kostovski chomb...@gmail.com
 wrote:
 
  On Thu, Jun 30, 2011 at 8:19 AM, parimal naigaonkar
  parimal...@gmail.com wrote:
   Hi,
   My gateway works fine when we send sms one by one, but when we send 10
   sms
   simultaneously from different sources it is able to receive only 2 or
 3,
   how
   can i improve this ?
 
  Do you really need to access kannel's cgi-bin/sendsms at once?
  If you don't, you can create a queue. All sources will send their
  messages in a database queue.
  You can call some http listener script which will save the messages
  toa database, or the programs which need to send sms will
  write their messages directly to the database. Then you will have
  another scipt/program which will read the data from the database
  and send http requests to kannel's cgi-bin/sendsms one by one.
 
 
  BR, Jovan
 
 



kannel.conf
Description: Binary data


receive multiple sms at one particular time

2011-06-30 Thread parimal naigaonkar
Hi,
My gateway works fine when we send sms one by one, but when we send 10 sms
simultaneously from different sources it is able to receive only 2 or 3, how
can i improve this ?

thanks  regards
parimal naigaonkar


Re: receive multiple sms at one particular time

2011-06-30 Thread parimal naigaonkar
thanks for reply Jovan,
actually issue is we are trying to test our system to receive messages in
bulk, there is a website on which we can schedule  future sms, here we send
sms to modem's number at a particular time but our modem receives only 1 or
2 of them.

On Thu, Jun 30, 2011 at 3:06 PM, Jovan Kostovski chomb...@gmail.com wrote:

 On Thu, Jun 30, 2011 at 8:19 AM, parimal naigaonkar
 parimal...@gmail.com wrote:
  Hi,
  My gateway works fine when we send sms one by one, but when we send 10
 sms
  simultaneously from different sources it is able to receive only 2 or 3,
 how
  can i improve this ?

 Do you really need to access kannel's cgi-bin/sendsms at once?
 If you don't, you can create a queue. All sources will send their
 messages in a database queue.
 You can call some http listener script which will save the messages
 toa database, or the programs which need to send sms will
 write their messages directly to the database. Then you will have
 another scipt/program which will read the data from the database
 and send http requests to kannel's cgi-bin/sendsms one by one.


 BR, Jovan



modem not getting initialized

2011-01-10 Thread parimal naigaonkar
Hi
I am trying  to configure kannel but i get this output;


2011-01-10 18:55:24 [4121] [0] INFO: SMS resend retry set to 3.
2011-01-10 18:55:24 [4121] [0] DEBUG: smsbox MO concatenated message
handling enabled
2011-01-10 18:55:24 [4121] [0] INFO: DLR rerouting for smsc id (null)
disabled.
2011-01-10 18:55:24 [4121] [0] INFO: Added logfile
`/var/log/kannel/modem.log' with level `0'.
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows
modemtype wavecom
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
definitions from kannel.conf
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Found 1 modems in
config
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: read modem
definition for Wavecom
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2011-01-10 18:55:24 [4121] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4121.
2011-01-10 18:55:24 [4121] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/modem.log' with level `0'.
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2011-01-10 18:55:24 [4121] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
maps to pid 4121.
2011-01-10 18:55:24 [4121] [0] INFO:

2011-01-10 18:55:24 [4121] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2011-01-10 18:55:24 [4121] [0] INFO: MAIN: Start-up done, entering mainloop
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: start called


and when i send any sms it shows like this;
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows
modemtype wavecom
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
definitions from kannel.conf
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Found 1 modems in
config
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: read modem
definition for Wavecom
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2011-01-10 18:55:24 [4121] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4121.
2011-01-10 18:55:24 [4121] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/modem.log' with level `0'.
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2011-01-10 18:55:24 [4121] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
maps to pid 4121.
2011-01-10 18:55:24 [4121] [0] INFO:

2011-01-10 18:55:24 [4121] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2011-01-10 18:55:24 [4121] [0] INFO: MAIN: Start-up done, entering mainloop
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
2011-01-10 18:57:38 [4121] [5] INFO: Client connected from 127.0.0.1
2011-01-10 18:57:38 [4121] [5] DEBUG: Started thread 8
(gw/bb_boxc.c:function)
2011-01-10 18:57:38 [4121] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps
to pid 4121.
2011-01-10 18:57:38 [4121] [8] DEBUG: Started thread 9
(gw/bb_boxc.c:boxc_sender)
2011-01-10 18:57:38 [4121] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender)
maps to pid 4121.
2011-01-10 18:57:42 [4121] [8] DEBUG: boxc_receiver: sms received
2011-01-10 18:57:42 [4121] [8] DEBUG: send_msg: sending msg to box:
127.0.0.1
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: gwlist_len = 1
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: time to sleep 30.00 secs.




now my configuration file is;

#include = /etc/kannel/modems.conf
group = core
admin-port = 13000
admin-password = admin
status-password = status
smsbox-port = 13001
box-deny-ip = *.*.*.*
log-file = /var/log/kannel/bearerbox.log
access-log = /var/log/kannel/access-log.log
box-allow-ip = 127.0.0.1,192.168.60.213,192.168.60.242,192.168.60.211
log-level = 0
sms-incoming-queue-limit = -1
smsbox-max-pending = 5
sms-resend-freq = 60
sms-resend-retry = 3

#-
# 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
group = smsc
smsc = at
modemtype = wavecom
device = /dev/ttyUSB0
sms-center = +91944207
my-number = 

3g data card not able to receive messages

2010-12-21 Thread parimal naigaonkar
hi,
i have a 3g data card, it is detected on ttyACM0 only when i run the package
given in it for linux.
i am able to configure and use it to send messages but kannel is not able to
receive messages instead the package itself receives messages and shows pop
up.
--
output of dmesg:
[ 3199.311902] sr 4:0:0:0: [sr1] Unhandled sense code
[ 3199.311904] sr 4:0:0:0: [sr1] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE
[ 3199.311907] sr 4:0:0:0: [sr1] Sense Key : Medium Error [current]
[ 3199.311910] sr 4:0:0:0: [sr1] Add. Sense: Unrecovered read error
[ 3199.311913] sr 4:0:0:0: [sr1] CDB: Read(10): 28 00 00 00 20 ca 00 00 02
00
[ 3199.311920] end_request: I/O error, dev sr1, sector 33576
[ 3442.367533] usb 2-6: USB disconnect, address 7
[ 3442.367961] ehci_hcd :00:1d.7: dma_pool_free buffer-2048,
ed830080/2d830080 (bad dma)
[ 3442.401478] scsi 4:0:0:0: rejecting I/O to dead device
[ 3460.816207] usb 2-6: new high speed USB device using ehci_hcd and address
8


kannel.conf
Description: Binary data