我刚安装了gammu,文档有40%的帮助。我想问为什么gammu无法保存发送的短信。

[gammu]
Device = /dev/ttyUSB0
Connection = at
InboxPath = /home/xxx/.config/gammu/inbox
OutboxPath = /home/xxx/.config/gammu/outbox
SentSMSPath = /home/xxx/.config/gammu/sent
ErrorSMSPath = /home/xxx/.config/gammu/error
InboxFormat = details
Service = FILES

我在/home/xxx/.config/gammu/config中创建了一个配置文件
我用这个发送一个示例命令
gammu sendsms TEXT MyPhonenumberHere -text "Hello Gammu."

这是成功的,我能够得到消息,但我找不到发送到我配置的路径短信。邮件应位于位于
/home/xxx/.config/gammu/sent

由于示例有限,文档很难理解。

最佳答案

在甘姆有两件事:
Gammu utility
Gammu SMS daemon
当您直接调用Gammu实用程序时,您提到的配置属于SMS守护程序(并且这些配置属于[smsd] section)。
因此,要么直接发送消息并自己处理日志记录,要么执行守护进程并通过gammu-smsd-inject发送消息。

10-08 14:57