我刚刚安装了 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 中有两件事:
您提到的配置属于 SMS 守护程序(并且配置属于 [smsd] section ),而您直接调用 Gammu 实用程序。
因此,要么直接发送消息并自己处理日志记录,要么执行守护进程并通过 gammu-smsd-inject 发送消息。 .
关于linux - gammu 不保存已发送的消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45494387/