Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gammu can send SMS, but can't configure diverts #779

Open
matejzero opened this issue Feb 16, 2023 · 2 comments
Open

Gammu can send SMS, but can't configure diverts #779

matejzero opened this issue Feb 16, 2023 · 2 comments

Comments

@matejzero
Copy link

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?

@pjarmuzek
Copy link

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

@matejzero
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants