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. Mon Jun 24, 2024 14:19
SMSTools3 Community » Help and support Bottom

The result of the pdu-converter

Login and Post Reply

Page:  1

Author Post
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.

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.

Member
Registered:
Oct 2017
Location: Russian Federation
Topic owner
many thanks
I'll try

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?

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/sent
store_sent_pdu = 3

When 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.

Member
Registered:
Oct 2017
Location: Russian Federation
Topic owner
Did 1). 2). Everything worked out. Many thanks.

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.