SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Fri Apr 19, 2024 22:00
SMSTools3 Community » Help and support Bottom

[answered] empty reports folder

  This topic is locked

Page:  1

Author Post
Member
Registered:
Jul 2010
Location: Brazil
Operating system name and version: Debian lenny
Version of smsd: 3.1-2 + lenny1
Smsd installed from: package repository
Name and model of a modem / phone: sony ericsson c902
Interface: USB

Hi,

First of all, my english is not very good.So i'll try to explain my problem.

I have already a sms server running and its sending and receiving SMS.I have set report = yes in smsd.conf file and also in SMS header.But the report folder remains empty even after sending SMS.When I send a SMS to a turned off phone its message go to sent folder.Is that correct?

I have a nokia n95 8gb and when i send a SMS to a phone that is turned off, on the n95 screen appears "pending".If I turn on the phone, the status change from "pending" to "sent".I want to do the same thing in smsd but I don't know how.I need to know when I send a SMS to a client and his phone is turned off and he couldnt read it.

I have already set the permissions of the report folder the same of the others folder(incoming, outgoing, failed...)

here is my config file

#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
# Last changed: Wed Jul  7 16:21:32 BRT 2010
#

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
#loglevel = 7
report = /var/spool/sms/reports
#delaytime = 10
#errorsleeptime = 10
#blocktime = 3600
#stats = /var/log/smsd_stats
#stats_interval = 3600
#stats_no_zeroes = no
#checkhandler = /usr/local/bin/smscheck
receive_before_send = no
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 3
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
#store_received_pdu = 1
#validity = 255
#decode_unicode_text = no
#internal_combine = no
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist

#[queues]
# Commented lines are examples for germany
# D1 = /var/spool/sms/D1
# D2 = /var/spool/sms/D2
# O2 = /var/spool/sms/O2
# EPLUS = /var/spool/sms/EPLUS
# QUAM = /var/sppol/sms/QUAM
# MOBILCOM = /var/spool/sms/MOBILCOM
#OTHER = /var/spool/sms/OTHER

#[provider]
# Commented lines are examples for germany
# D1 = 49160, 49170, 49171, 49175, 49151
# D2 = 491520, 49162, 49172, 49173, 49174
# O2 = 49176, 49179, 49159
# EPLUS = 49163, 49177, 49178, 49157
# QUAM = 49150
# MOBILCOM = 49156
#OTHER = 0,1,2,3,4,5,6,7,8,9

#[GSM1]
# init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
# # Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
# device = /dev/ttyS0
# incoming = yes
# queues = OTHER
# You don't need a PIN for mobile phones
# pin = 1111
# mode = new
# smsc = 491722270000
# baudrate = 19200
# rtscts = yes
# cs_convert = yes
# report = no
# memory_start = 1
# primary_memory = memory name
# secondary_memory = memory name
# secondary_memory_max = number
# pdu_from_file = /var/spool/sms/GSM1-PDU
# sending_disabled = no
# decode_unicode_text = no
# internal_combine = no
#
#[GSM2]
#init = ATE0
# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1
#device = /dev/ttyS1
#incoming = yes
#queues = OTHER
#You don't need a PIN for mobile phones
#pin = 2222
#mode = new
#smsc = 491710760000
#baudrate = 19200
#rtscts = yes
#cs_convert = yes
#report = no
#memory_start = 1
#primary_memory = memory name
#secondary_memory = memory name
#secondary_memory_max = number
#pdu_from_file = /var/spool/sms/GSM2-PDU
#sending_disabled = no
#decode_unicode_text = no
#internal_combine = no
[GSM1]
device = /dev/ttyACM1
init = AT+CPMS="ME","ME","ME"
report = yes
incoming = yes
#pin =
baudrate = 115200
mode = new
cs_convert = yes
 
'smsdconf' Syntax Highlight powered by GeSHi


thanks

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
gugudl wrote
I have already a sms server running and its sending and receiving SMS.I have set report = yes in smsd.conf file and also in SMS header.But the report folder remains empty even after sending SMS.When I send a SMS to a turned off phone its message go to sent folder.Is that correct?

It is correct, because the SMS is sent to the Service Center which will try to deliver it.

As you have not received status reports, some settings should be checked. The manual of this device gives the impression that available memories are SM and ME. You could check this:

- Stop the smsd if it's running.
- Start it in the communication mode: smsd -C GSM1
- Follow the instructions on screen.
- Type ATE1 (and Enter) to set "echo on".
- Type AT+CPMS=?
- Also type AT+CNMI=?
- and AT+CNMI?

What are the results?

Next, use loglevel = 7 and modem setting init2=AT+CNMI=2,0,0,1,0 .
Restart the smsd and send a message (to the phone which is switched on). After sending, there should be line(s) containing "+CMT" in the log. Show the part of a log here. If necessary, you can protect it by using Private tags.


gugudl wrote
I have a nokia n95 8gb and when i send a SMS to a phone that is turned off, on the n95 screen appears "pending".If I turn on the phone, the status change from "pending" to "sent".I want to do the same thing in smsd but I don't know how.I need to know when I send a SMS to a client and his phone is turned off and he couldnt read it.

As long as status report with a status "0 - Ok,short message received by the SME" is not received, N95 says "pending", and after that report is received, the status is "sent".

The smsd can do the same, but using different words. In the scripts directory of a package, there is a script eventhandler_report. When this script is used as an eventhandler, or part of it, it will store delivery timestamp to the sent message when a status report is received. The header used for this is called "Received".

There is also another example, called regular_run. The second part of it can be used to send messages to alternate numbers, if Alternate_to is defined in the message and message is not delivered within a given time.

Member
Registered:
Jul 2010
Location: Brazil
Topic owner
Quote
- Stop the smsd if it's running.
- Start it in the communication mode: smsd -C GSM1
- Follow the instructions on screen.
- Type ATE1 (and Enter) to set "echo on".
- Type AT+CPMS=?
- Also type AT+CNMI=?
- and AT+CNMI?

Here are the results:

ATE1
OK
AT+CPMS = ?
+CPMS: (“ME”,”SM”),(“ME”,”SM”),(“ME”,”SM”)
OK
AT+CNMI=?
+CNMI: (2),(0,1,3),(0,2),(0,1),(0)
OK
AT+CNMI?
+CNMI: 2,0,0,0,0
OK


Quote
Next, use loglevel = 7 and modem setting init2=AT+CNMI=2,0,0,1,0 .
Restart the smsd and send a message (to the phone which is switched on). After sending, there should be line(s) containing "+CMT" in the log. Show the part of a log here. If necessary, you can protect it by using Private tags.

i did not find lines containing "+CMT".here is the log:

Hidden private text.




« Last edit by keke on Thu Jul 15, 2010 17:28, 167 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Ok, there is no "SR" (status report) memory existing in your device.

You have stopped smsd very quickly. The message was sent 13:53:55 and smsd was terminated 13:54:04. It may be possible that status report was on it's way, and you have lost it. Perhaps you could try again, and wait several minutes if there is status report coming.

Member
Registered:
Jul 2010
Location: Brazil
Topic owner
Quote
Ok, there is no "SR" (status report) memory existing in your device.

That's mean I can't receive reports?
could this be happening because of some setting in the phone??

I sent again the SMS and after some minutes, the folder is still empty.

Any more idea?

thanks for your help!

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
gugudl wrote
Quote
Ok, there is no "SR" (status report) memory existing in your device.

That's mean I can't receive reports?

I just wanted to check if there is SR memory or not, because if status reports are stored into the different memory, different reading should be used.

gugudl wrote
could this be happening because of some setting in the phone??

Probably yes, but I do not know about settings in that phone.

gugudl wrote
I sent again the SMS and after some minutes, the folder is still empty.

It surely is empty, because 3.1 does not handle routed status reports. But was there any +CMT lines in the log?

Anyways, I think that this device does not support all features through the external interface, and therefore you should buy a real modem...

Member
Registered:
Jul 2010
Location: Brazil
Topic owner
Thank you for helping!
God bless you!

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.