Re: Large delay between receiving and transmitting SMS with run on receive
IT Manager <[email protected]> Tue, 14 Feb 2017 07:30:46 +0100
| Newsgroups | gmane.linux.drivers.gammu |
|---|---|
| Message-ID | <[email protected]> |
Hi Gilberto,
I am not sure I understand what you mean.
Which code should I give for the USSD command? Is requesting a status
update enough for this? I.e. gammu --getussd *#21# (the status of call
forwarding here in The Netherlands)
I have found the gateway number from our telecom provider (Vodafone),
do I need to put it in the configuration file or is there an option in
gammu-smsd to specify it together with the message?
I noticed in the log file that the location gives an error:
- LOGFILE snippet:
2 "+CME ERROR: 21"
Checking line: +CME ERROR: 21
AT reply state: 6
RECEIVED frame type 0x00/length 0x1D/29
45E|20 |45E|52R|52R|4FO|52R|3A:|20 |322|311|0D |0A E ERROR: 21..
CME Error 21: "invalid index"
GSM_GetNetworkInfo failed with error INVALIDLOCATION[24]: Invalid
location. Maybe too high?
The strange thing is, I specify the location as being "1" in the script.
- SCRIPT snippet:
# Translating the code to text and creating the message
message = {'Text': smstext, 'SMSC': {'Location': 1}, 'Number': number}
# Sending the actual messages
smsd = gammu.SMSD('/etc/gammu-smsdrc')
smsd.InjectSMS([message])
Might this introduce a problem in sending the messages?
Thanks in advance.
Regards,
Gertjan
Citeren gilberto dos santos alves <[email protected]>:
> hi. this smell like your telecom company.
> insert ussd command before any sms for make shure that line is
ready for
> send .
> see what is your "gateway" number insideĀ telecom forĀ send sms.
> i keep looking for details inside your log.
>
> Em 08/02/2017 07:12, "IT Manager" <[email protected]> escreveu:
>
> L.S.,
>
> I have a script which is run on receive that checks the contents of
the
> text message (or actually the "IN" text file) and subsequently
sends
> messages to several other mobile numbers.
> However in the gammu.log I see that there is a very large delay
between
> receiving the message/calling the script and actually sending the
new
> messages.
>
> I can see in the log that Gammu is ready to send the new message 1
second
> after receiving the message but it does not send it until about 45
seconds
> later. This is for the first number, the message to the second
number takes
> about 5 minutes after the first message (so almost 6 minutes after
the
> message is received) until it is send.
>
> I have attached a snippet of the log with the times highlighted.
>
> Can you see what is going on?
> Please let me know if you require additional information.
>
> Thanks in advance.
>
> Regards,
> Gertjan
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot[1]
> _______________________________________________
> Gammu-users mailing list - https://lists.sourceforge.net/[2]
> lists/listinfo/gammu-users
>
IT Manager
Global Technics BV
Bargelaan 6
2333 CT Leiden
The Netherlands
Tel: +31 (0)71 71 00 224
E-mail: [email protected]
Links:
------
[1] http://sdm.link/slashdot
[2] https://lists.sourceforge.net/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users