gammu icon indicating copy to clipboard operation
gammu copied to clipboard

Gammu can send SMS, but can't configure diverts

Open matejzero opened this issue 3 years ago • 2 comments

Hello,

I upgraded my OS from CentOS 6 to AlmaLinux 8 and since then, I'm unable to configure diverts with gammu.

I have a RS232 modem (do not know the model) and at the moment, a Huawei e3372. With both, I'm able to send SMS, get network info, but can't do diverts.

[root@server ~]#  /usr/bin/gammu -c /etc/gammu-smsdrc canceldiverts
Unknown error.

I compiled the same gammu version as it was on the CentOS 6:

gammu-libs-1.42.0-1.el8.x86_64
gammu-1.42.0-1.el8.x86_64

Looking at the debug log, this is a part of it:

...
SENDING frame type 0x00/length 0x0D/13
41A|54T|5E^|50P|4FO|52R|54T|53S|45E|4CL|3D=|311|0D              AT^PORTSEL=1.
1 "AT^PORTSEL=1"
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frame type 0x00/length 0x13/19
41A|54T|5E^|50P|4FO|52R|54T|53S|45E|4CL|3D=|311|0D |0D |0A |4FO AT^PORTSEL=1...O
4BK|0D |0A                                                      K..
[Connected]

Entering GSM_CancelAllDiverts
SENDING frame type 0x00/length 0x0C/12
41A|54T|2B+|43C|43C|46F|43C|3D=|344|2C,|344|0D                  AT+CCFC=4,4.
1 "AT+CCFC=4,4"
2 "+CME ERROR: 171"
Checking line: +CME ERROR: 171
AT reply state: 6
RECEIVED frame type 0x00/length 0x1F/31
41A|54T|2B+|43C|43C|46F|43C|3D=|344|2C,|344|0D |0D |0A |2B+|43C AT+CCFC=4,4...+C
4DM|45E|20 |45E|52R|52R|4FO|52R|3A:|20 |311|377|311|0D |0A      ME ERROR: 171..
CME Error 171, no description available
GSM_CancelAllDiverts failed with error UNKNOWN[27]: Unknown error.
Leaving GSM_CancelAllDiverts
[Terminating]
[Closing]

Gammu is sending AT+CCFC=4,4 which is a command to cancel all diverts, but it gets +CME ERROR: 171 back for which I can't find a usable description.

Anyone had similar problems and got a solution?

matejzero avatar Feb 16 '23 09:02 matejzero

Hi, I'd suggest checking documentation of your modem, what's the CME 171 error, and the SIMcard itself, if it allows to cancel diverts (some SIMplans does not allow that).

pjarmuzek avatar May 26 '23 10:05 pjarmuzek

This is interesting as the exact same modem and same sim card that is working on CentOS 6. The only difference is that I'm not using centos provided package but custom compiled as there is no pkg available for AL8.

I'm wondering if it can be kernel issue or some library. Will try to test on centos 7 just to see if it works there.

matejzero avatar May 29 '23 06:05 matejzero