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. Wed Oct 21, 2020 06:42
SMSTools3 Community » Help and support Bottom

duplicate incoming sms when using ppp0 interface

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Mar 2011
Location: Brescia, Italy
Operating system name and version: debian wheezy (arm - raspberry)
Version of smsd: 3.1.15 - self compiled
Smsd installed from: sources
Name and model of a modem / phone: huawei e162
Interface: USB

I have this problem, when i receive a special sms, i bring up ppp0 (umts key)
and resend me an sms with ppp0 ip for remote connection.
i use wvdial and it work.

when i try tu use with eventhandler script, work but dublicate the procedure
of ppp, eventhandler try two time to connect and send sms
in the log i show two incoming receive duplicated sms and i receive duplicated ip message.

if i remove wvdial / ppp0 connection string script work correctly.

my config:
devices = USBKEY1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
loglevel = 5
receive_before_send = yes
autosplit = 3
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist

eventhandler = /usr/local/bin/smsinevent2_debug.sh

[USBKEY1]
device = /dev/ttyUSB2
init = AT^CURC=0
init2 = AT+CPMS="ME","ME","ME"
incoming = yes
baudrate = 115200
#phonecalls = yes
#pin = 1234
pin = ignore
memory_start = 0
check_memory_method = 2
signal_quality_ber_ignore = yes

this is only a simple test script for see the problem
# script smsinevent2_debug.sh
pon.wvdial #i try ifup ppp0
sleep 5
/usr/local/bin/sendsms 00391234567890 "$(ifconfig ppp0 | grep addr | awk '{print $2}' | sed 's/addr://')"
echo "aaaaaaaaa" >> /tmp/kkk

log(level 10)


_______________
----
Blog and support - http://www.opensupport.it
Wifi project - http://www.riferimento.org

Member
Registered:
Mar 2011
Location: Brescia, Italy
Topic owner
and in some situation i receive
"Modem is not ready to answer commands (Timeouts: 0)"

and i reboot raspberry pi

_______________
----
Blog and support - http://www.opensupport.it
Wifi project - http://www.riferimento.org

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.