SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Mon Jul 15, 2024 02:57
SMSTools3 Community » Help and support Bottom

[answered] Receive Reports via SMS

  This topic is locked

Page:  1

Author Post
Member
Registered:
Mar 2011
Location: Austria
Operating system name and version: Linux ubuntu01 2.6.35-27-generic-pae #48-Ubuntu SMP Tue Feb 22 21:46:58 UTC 2011 i686 GNU/Linux
Version of smsd: 3.1.14
Smsd installed from: package repository
Name and model of a modem / phone: Huawei E270
Interface: USB

Hello there!

First of all, I have a setup with smsd and playsms as GUI. Sending and Receiving is working perfect. But everytime when I send a SMS out my provider sends me a Receive Status (in German it's labeled with Empfangsbestätigung). I don't need this Report SMS because it only coasts money and don't have any effect or usefull function for me.

I hope you can help me with deactivating this not very usefull "feature".. btw. here is the Log from my modem sending out a sms



and here is my smsd.conf

# Global configuration

devices = GSM1

loglevel = 5

logfile = /var/log/sms/smstools.log
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

delaytime = 6
errorsleeptime = 10
blocktime = 180

autosplit = 3
receive_before_send = yes
store_received_pdu = 3


# Modem configuration

# Huawei E270 USB
[GSM1]
init = AT+CPMS="ME","ME","ME"
device = /dev/ttyUSB0
incoming = yes
baudrate = 115200
memory_start = 0
# Deutsche Umlaute
cs_convert = yes
smsc = 436640501
pin = 3490
check_memory_method = 3
report_device_details = yes
report = no
 
 
'smsdconf' Syntax Highlight powered by GeSHi



Thanks and best Regards
Chris

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
If we are talking about "status report", smsd does not ask for it by default. If there was not "Report: yes" in the message file, smsd should not ask it. I cannot verify this because the PDU is not shown. You could add a global setting store_sent_pdu = 3, restart smsd and after some message is sent, show the PDU here. You can use Private tag to protect the content, if necessary.

If this "Empfangsbestätigung" is not a "status report", but an ordinary received SMS, I do not know how to disable it. You could also show a received SMS file which contains this kind of a message.

Member
Registered:
Mar 2011
Location: Austria
Topic owner
I now recognized that the information of my college was false. I habe this dilvery SMS on the invoice, but I don't get this reports als regular SMS.

Any Ideas why my system requests this reports?

btw. I sorry for the false information in my first post. My College gaves me this info, and I only checked the log and configs

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Check the file /var/spool/sms/sent/out.0.1.1001, is there a header "Report: yes"? If there is, it's the reason. But usually status reports are free of charge.

Member
Registered:
Mar 2011
Location: Austria
Topic owner
Okay you are right.. there is report = yes

But I have report = no in my /etc/smsd.conf (see in my first post). I will now recheck the config of smsd and the config of playsms, as I done several times bevor.

btw. I have a special account where status reports are not free of charge.

thx for you help

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
screamy wrote
But I have report = no in my /etc/smsd.conf (see in my first post). I will now recheck the config of smsd and the config of playsms, as I done several times bevor.

It's a default value, and header in SMS file will override it.

If you want to completely disable reporting, meaning that no any user can request reports, you need to create a checkhandler which checks that header and removes it. Or changes it always to "no", like:

#!/bin/bash

set_header()
{
  # $1 = filename
  # $2 = header

  local tmp=`mktemp /tmp/smsd_XXXXXX`
  cp "$1" $tmp
  formail -f -I "$2" < $tmp > "$1"
  unlink $tmp
}

set_header "$1" "Report: no"

exit 0
 
'bash' Syntax Highlight powered by GeSHi


  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.