|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Thu Jan 23, 2025 09:43 |
Login and Post Reply
Page: 1
Author |
Post |
|
#1 Wed Mar 09, 2016 11:23, 108 months ago.
|
Member
Registered: Mar 2016
Location: Ekaterinburg, Russian Federation
|
Good day friends, tell me there is such task: There are three modem GSM1, GSM2 and GSM3. you need to accept messages using all three of the modem, and only be sent via GSM1.
How to implement it in the config?
|
|
#2 Wed Mar 09, 2016 11:25, 108 months ago.
|
Member
Registered: Mar 2016
Location: Ekaterinburg, Russian Federation
Topic owner
|
config:
root@sms#cat /etc/smsd.conf
devices = GSM1
stats = /var/log/sms/stats outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked incoming = /var/spool/sms/incoming failed = /var/spool/sms/failed sent = /var/spool/sms/sent report = /var/spool/sms/incoming
delaytime = 2 errorsleeptime = 4 blocktime = 180 autosplit = 3 national_prefixes = 7 hangup_incoming_call = yes
checkhandler = /etc/smsd/sms_to_ucs2.sh eventhandler = /etc/smsd/trsms3.sh
smart_logging = yes logfile = /var/log/smsd.log loglevel = 5
[GSM1] device = /dev/E150-1 baudrate = 115200 incoming = yes rtscts = no hangup_incoming_call = yes report = yes init = AT+CPMS="ME","ME","ME" check_memory_method = 2
[GSM2] device = /dev/E1550-1 baudrate = 115200 report = yes rtscts = no init = AT+CPMS="SM","SM","SM" check_memory_method = 31 signal_quality_ber_ignore = yes incoming = yes incoming = high hangup_incoming_call = yes
[GSM3] device = /dev/E1550-2-1 baudrate = 115200 report = yes rtscts = no init = AT+CPMS="SM","SM","SM" check_memory_method = 31 signal_quality_ber_ignore = yes incoming = yes incoming = high hangup_incoming_call = yes
|
|
#3 Fri Mar 11, 2016 22:38, 107 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
This can be done with the following configuration: [queues] GSM1 = /var/spool/sms/GSM1 GSM2 = /var/spool/sms/GSM2 GSM3 = /var/spool/sms/GSM3
[providers] GSM1 = 0,1,2,3,4,5,6,7,8,9,s GSM2 = 0 GSM3 = 0
[default] queues = modemname 'smsdconf' Syntax Highlight powered by GeSHi Put this just before [GSM1] section. Create those directories and make them writable for smsd. With the providers definition, all messages are sorted to the GSM1 queue by default, and only GSM1 modem serves that queue. If you want to send with other modem than GSM1, use a header Queue: GSM2 in the message file.
|
|
#4 Mon Mar 14, 2016 03:47, 107 months ago.
|
Member
Registered: Mar 2016
Location: Ekaterinburg, Russian Federation
Topic owner
|
i am write this config Quote !!!# cat /etc/smsd.conf devices = GSM1,GSM2-7430,GSM3-4707 #devices = GSM1
stats = /var/log/sms/stats outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked incoming = /var/spool/sms/incoming failed = /var/spool/sms/failed sent = /var/spool/sms/sent report = /var/spool/sms/incoming
delaytime = 20 errorsleeptime = 4 blocktime = 180 autosplit = 3 national_prefixes = 7 hangup_incoming_call = yes
checkhandler = /etc/smsd/sms_to_ucs2.sh eventhandler = /etc/smsd/trsms3.sh
smart_logging = yes smart_logging = no logfile = /var/log/smsd.log loglevel = 5
[queues] GSM1 = /var/spool/sms/outgoing GSM2 = /var/spool/sms/out_mega GSM3 = /var/spool/sms/out_mega2
[providers] GSM1 = 0,1,2,3,4,5,6,7,8,9,s GSM2 = 0 GSM3 = 0
[default] queues = GSM1
[GSM1] queues = GSM1 device = /dev/E150-1 baudrate = 115200 incoming = yes rtscts = no hangup_incoming_call = yes report = yes init = AT+CPMS="ME","ME","ME" check_memory_method = 2
[GSM2-7430] queues = GSM2 device = /dev/E1550-7430-1 baudrate = 115200 report = yes rtscts = no init = AT+CPMS="SM","SM","SM" #check_memory_method = 31 check_memory_method = 2 signal_quality_ber_ignore = yes incoming = yes hangup_incoming_call = yes
[GSM3-4707] queues = GSM3 device = /dev/E1550-4707-1 baudrate = 115200 report = yes rtscts = no init = AT+CPMS="SM","SM","SM" check_memory_method = 31 signal_quality_ber_ignore = yes incoming = yes hangup_incoming_call = yes
SMS is copied to the correct folder Quote 2016-03-14 08:44:36,5, smsd: Moved file /var/spool/sms/outgoing/out.20160314014435.0.1.446 to /var/spool/sms/outgoing
but the message never sent
|
|
#5 Mon Mar 14, 2016 13:49, 107 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Do not use outgoing directory as queue.
|
|
#6 Tue Mar 15, 2016 11:58, 107 months ago.
|
Member
Registered: Mar 2016
Location: Ekaterinburg, Russian Federation
Topic owner
|
I rewrote the config to your likeness now, I do not yhodyat SMS, and logs don't see sending. cat smsd.conf Quote devices = GSM1,GSM2-7430,GSM3-4707 #devices = GSM1
stats = /var/log/sms/stats outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked incoming = /var/spool/sms/incoming failed = /var/spool/sms/failed sent = /var/spool/sms/sent report = /var/spool/sms/incoming
delaytime = 20 errorsleeptime = 4 blocktime = 180 autosplit = 3 national_prefixes = 7 hangup_incoming_call = yes
checkhandler = /etc/smsd/sms_to_ucs2.sh eventhandler = /etc/smsd/trsms3.sh
smart_logging = yes smart_logging = no logfile = /var/log/smsd.log loglevel = 5
[queues] GSM1 = /var/spool/sms/out_gms1 GSM2 = /var/spool/sms/out_mega GSM3 = /var/spool/sms/out_mega2
[providers] GSM1 = 0,1,2,3,4,5,6,7,8,9,s GSM2 = 0 GSM3 = 0
[default] queues = GSM1
[GSM1] queues = GSM1 device = /dev/E150-1 baudrate = 115200 incoming = yes rtscts = no hangup_incoming_call = yes report = yes init = AT+CPMS="ME","ME","ME" check_memory_method = 2
[GSM2-7430] queues = GSM2 device = /dev/E1550-7430-1 baudrate = 115200 report = yes rtscts = no init = AT+CPMS="SM","SM","SM" #check_memory_method = 31 check_memory_method = 2 signal_quality_ber_ignore = yes incoming = yes hangup_incoming_call = yes
[GSM3-4707] queues = GSM3 device = /dev/E1550-4707-1 baudrate = 115200 report = yes rtscts = no init = AT+CPMS="SM","SM","SM" check_memory_method = 31 signal_quality_ber_ignore = yes incoming = yes hangup_incoming_call = yes
this all log after restart
|
|
#7 Tue Mar 15, 2016 14:26, 107 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
There is a problem with check_memory_method 31. Can you use the loglevel 7, and run GSM3-4707 only? Show the log here, you can protect it using Private tags if necessary.
|
|
#8 Wed Mar 16, 2016 02:52, 107 months ago.
|
Member
Registered: Mar 2016
Location: Ekaterinburg, Russian Federation
Topic owner
|
Here is a log received, about the SMS. It is not important, the question is, why is the configuration with the queue, not sent SMS?
|
|
#9 Wed Mar 16, 2016 22:35, 107 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
In your system there is a file /var/spool/sms/incoming/GSM3-4707-concatenated, right? I think that this file is broken, perhaps edited or something. You could just delete that file when smsd is not running.
When your current setup defines queues for each modem, there is no need for [default] section which defined queues using modemname. You could remove that section.
With a quick view I do not see the error in the current configuration. You could just enable GSM1 again, start smsd and copy a message file to the outgoing directory. With a loglevel 7 we can get the information how message is spooled and handled.
|
Login and Post Reply
Page: 1
Time in this board is UTC.
|
|
|
|
|
|
|