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
Blog and support - http://www.opensupport.it
Wifi project - http://www.riferimento.org