New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.39.0 - onincomingcall not working as expected #390

Open
leonardpitzu opened this Issue Feb 14, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@leonardpitzu

leonardpitzu commented Feb 14, 2018

runonincomingcall triggers correctly - it correctly launches a test script which appends a timestamp to a file. The expected behaviour is for the script to be executed only once (write 1 timestamp to the test file). Instead every few seconds a timestamp is being written to the file.
Call is being correctly hang up very fast.
This has been so since the first release containing runonincomingcall.

short excerpt from log:
Wed 2018/02/14 21:42:06 gammu-smsd[4705]: Incoming call! # avail? 1 <phone_number>

Wed 2018/02/14 21:42:06 gammu-smsd[4705]: Incoming call! # hanging up @1518637326 0.

Wed 2018/02/14 21:42:06 gammu-smsd[4705]: Incoming call! # avail? 1 <phone_number>

Wed 2018/02/14 21:43:24 gammu-smsd[4705]: Call ended(6).

Wed 2018/02/14 21:43:24 gammu-smsd[6378]: Starting run on incoming call: /root/on_call.sh <phone_number>
Wed 2018/02/14 21:43:24 gammu-smsd[4705]: Process finished successfully
Wed 2018/02/14 21:43:24 gammu-smsd[4705]: Incoming call! # avail? 1 <phone_number>

Wed 2018/02/14 21:43:24 gammu-smsd[4705]: Incoming call! # hanging up @1518637404 0.

Wed 2018/02/14 21:43:24 gammu-smsd[4705]: Incoming call! # avail? 1 <phone_number>

Wed 2018/02/14 21:44:03 gammu-smsd[4705]: Call ended(6).

Wed 2018/02/14 21:44:03 gammu-smsd[4705]: Call ended(6).

Wed 2018/02/14 21:44:03 gammu-smsd[6461]: Starting run on incoming call: /root/on_call.sh <phone_number>
Wed 2018/02/14 21:44:03 gammu-smsd[4705]: Process finished successfully
Wed 2018/02/14 21:44:03 gammu-smsd[4705]: Incoming call! # avail? 1 <phone_number>

Wed 2018/02/14 21:44:03 gammu-smsd[4705]: Incoming call! # hanging up @1518637443 0.

Wed 2018/02/14 21:44:03 gammu-smsd[4705]: Incoming call! # avail? 1 <phone_number>

@leonardpitzu

This comment has been minimized.

leonardpitzu commented Feb 15, 2018

similar to #376

@toushin-taishi

This comment has been minimized.

toushin-taishi commented Mar 15, 2018

I would like to report that this is happening to me as well using Gammu version 1.39.0, but unlike leonardpitzu, not in endless loop. The number of script execution triggered by the RunOnIncomingCall parameter varies from one call to another. Sometimes 1, but most of the times 3, the maximum that I experience so far is 5 script executions.

I'm using a multi-modem configuration (5 modems).
Modem information:
Manufacturer : Wavecom
Model : MULTIBAND 900E 1800 (MULTIBAND 900E 1800)
Firmware : 641b09gg.Q2403A 1320676 061804 14:38

This is my gammu-smsd config:

[gammu]
device = /dev/ttyxxxx
connection= at115200
[smsd]
Service = sql
Driver = native_mysql
LogFile = /var/log/smsd/xxxx.log
User = xxxx
Password = xxxx
PC = localhost
Database = smsd
MaxRetries = 10
CheckBattery = 0
CheckSecurity = 0
DebugLevel = 1
HangupCalls = 1
DeliveryReport = log
PhoneID = xxxx
RunOnReceive = /usr/local/bin/runonreceive_per_msg.sh
RunOnIncomingCall = /usr/local/bin/runonreceive_per_call.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment