Author |
Post |
|
#1 Wed Oct 25, 2017 13:51, 86 months ago.
|
Member
Registered: Oct 2017
Location: Russian Federation
|
Hello. Is it possible in SMSTools3 before sending SMS to see how the SMS looks in pdu format? For example, in the log file. In other words, see the output of the pdu-converter.
|
|
#2 Wed Oct 25, 2017 14:05, 86 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
With loglevel = 7 you can see what kind of PDU is sent to the modem. If you want to test some things without actually sending SMS, use a modem setting sending_disabled = yes. Testing can also be done without a real modem connected, in this case use a modem setting modem_disabled = yes.
|
|
#3 Wed Oct 25, 2017 14:39, 86 months ago.
|
Member
Registered: Oct 2017
Location: Russian Federation
Topic owner
|
many thanks I'll try
|
|
#4 Thu Oct 26, 2017 10:09, 86 months ago.
|
Member
Registered: Oct 2017
Location: Russian Federation
Topic owner
|
Thank you. Indeed, with loglevel = 7, the sms in pdu format is visible in the log file.
2 questions.
1) The modem_disabled = yes setting is enabled. device = / tmp / modemfile A long SMS is used. In pdu it is divided into several parts. For example, in 2 parts. Why after the formation of the first part of the message in pdu there is a delay of 5 to 15 seconds? For example, 2017-10-25 21: 52: 17.7, GSM1: PDU to ...: AT + CMGS = 154 0051 .... 2017-10-25 21: 52: 29,5, GSM1: SMS sent, Message_id: 1, To: ..., sending time 12 sec. After this interval, (in the example 12 seconds), the second part of the pdu message is generated. Why is there such a long delay (sending time 12 sec.)? modem_disabled = yes. device = / tmp / modemfile The modem does not really exist. Can this delay be removed to 0-1 seconds? Long studied the configure SMSTools3, but did not find such a setting.
2) Is it possible to send a long message directly to the pdu converter and quickly get a response from it to some other file or to the terminal or somehow else?
|
|
#5 Thu Oct 26, 2017 12:27, 86 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
1) As these settings (modem_disabled, sending_disabled) are made for testing purposes, smsd simulates the sending time. Current version does not have a setting to avoid this delay. To get rid of this, sources should be modified: In the src/smsd.c search for t_sleep(4 + getrand(10));Comment that line out: //t_sleep(4 + getrand(10));Or change it to t_sleep(1); if one second is reasonable delay. Save and recompile. 2) Use these global settings: sent = /var/spool/sms/sentstore_sent_pdu = 3When a message is "sent", original message file is moved to this directory. It contains one or more header lines beginning with "PDU: ". The header part ends when first empty line is reached.
|
|
#6 Thu Oct 26, 2017 15:42, 86 months ago.
|
Member
Registered: Oct 2017
Location: Russian Federation
Topic owner
|
Did 1). 2). Everything worked out. Many thanks.
|