Questions tagged [gammu]

Gammu is an abstraction layer to work with different cell phones from different vendors (including Nokia, Sony-Ericsson, Motorola, Samsung, Siemens, Huawei and others).

Wammu is built on Gammu library, which provides abstraction layer to work with different cell phones from different vendors (including Nokia, Sony-Ericsson, Motorola, Samsung, Siemens, Huawei and others).

Useful Links

134 questions
2
votes
1 answer

gammu-smsd RunOnReceive script results exit status 2

I want to forward an SMS using gammu-smsd RunOnReceive. That is the script I want to run (/var/spool/gammu/forward.sh) and it goes perfectly if I run it from a sudoer or using sudo -u gammu -g gammu…
tjomamokrenko
  • 159
  • 2
  • 12
2
votes
2 answers

Python error when tryint to access list by index - “List indices must be integers, not str”

I have this Python code: sm.GetSMSStatus() sm.GetSMSFolders() sms = sm.GetNextSMS(Start = True, Folder=0) sms = sm.GetNextSMS(Location = sms['Location'], Folder=0) sms = sm.GetSMS(Location = loc, Folder = 0) And I'm getting the error: …
VRodrigues
  • 33
  • 4
2
votes
1 answer

How to Gammu sendsms php shell_exec windows 7 and xampp?

I have already installed XAMPP latest version and installed gammu. In terminal I can send sms or identify my cellphone, but if i try the same command on php shell_exec or exec there is something wrong. The command: "C:\Program…
2
votes
2 answers

Gammu cannot detect my modem

I want to use gammu for sending sms. I have problem when want to identify the phone from gammu utility Environment used: - openSUSE 12.3 32-bit - Gammu version 1.32.0 built 09:27 on Aug 10 2012 using GCC 4.7 > gammu -f /var/log/gammulog…
Ali Irawan
  • 2,094
  • 2
  • 18
  • 23
2
votes
3 answers

Error in using gammu in php exec

I successfully installed gammu in ubuntu 11, and send text message using command line. echo "TEXTMESSAGE" | gammu sendsms TEXT mobilenumber My problem is, when I use exec function in my php script I always have the following errors: Warning: No…
iccy
  • 51
  • 2
  • 6
1
vote
0 answers

Gammu: make voice call, with custom mp3

Can I make a voice call with custom mp3 (when the person answers the phone call), with Gammu in Linux? Otherwise, are there alternatives to Gammu (in Linux), so that you can send SMS and make calls with the help of an mp3 file?
David
  • 11
  • 1
1
vote
1 answer

gammu-smsd not sending SMS's

I compiled gammu-1.42 on Ubuntu and I can succesfully send SMS's using the command: echo "test" | /opt/gammu/bin/gammu --sendsms TEXT "0740...29" But I need to use the gammu-smsd to send SMS's from a Postgresql database. The problem is I can't see…
Victorqedu
  • 484
  • 4
  • 20
1
vote
1 answer

python subprocess.run() returns AttributeError: 'module' object has no attribute 'run'

I'm trying to execute a shell command from a python script. I'm using python 3.7.3, so the run() function should work properly, but it always throws the AttributeError: 'module' object has no attribute 'run' Error. I set the default version of…
xDevkas
  • 61
  • 2
  • 12
1
vote
0 answers

Long message ends up empty at destination

Why is the following (decoded) message cut correctly at the 160th character, as…
Marki
  • 660
  • 8
  • 24
1
vote
1 answer

Gammu - Entry is empty, cannot set SMSC

Short description: when I try to send a SMS I receive the error: "Failed to get SMSC number from phone." so I try to set the SMSC number and I receive the error: "Entry is empty." Commnads are: root@mail:/home/victor# echo "Dragon Ball super is…
Victorqedu
  • 484
  • 4
  • 20
1
vote
1 answer

gammu getallsms : Can not access SIM card

Problem pi@raspberrypi:~ $ gammu getallsms Can not access SIM card. I tried to get list of sms from my sim card that is inserted into my Huawai usb dongle lsusb pi@raspberrypi:~ $ lsusb Bus 003 Device 001: ID 1d6b:0002 Linux…
H. Pardess
  • 51
  • 1
  • 12
1
vote
0 answers

gammu not sending special characters via PHP commandline

I'm trying to send and SMS string over a PHP laravel controller on a raspberry 2 (Raspian Linux) and i have the following function for that: public function processCmd($smsmodel) { $smsnumbertmp=str_replace(' ', '', $smsmodel->smsnumber); …
Andreas Zeiner
  • 537
  • 7
  • 24
1
vote
1 answer

Remove SMS from gammu outbox on send fail

I use gammu-smsd to send SMS from my rpi. Sometimes the SMSC returns an unknown error for an SMS and this SMS blocks all other SMS ... Example: my failed SMS in the outbox is OUTC20190409_165555_00_0781950085_sms0.smsbackup and all other SMS are…
ReaperSoon
  • 765
  • 7
  • 23
1
vote
0 answers

Gammu - gammu - detect under windows?

I am pretty new to gammu, my nokia which was working fine with it has died and I am getting a Huawei K4505 3g modem to replace it. I would like to try using gammu-detect, but am running under windows and it isnt included in the distribution…
1
vote
1 answer

Receiving a binary MMS

When I receive MMS via gammu it comes over with binary hex code: Location 100010, folder "Inbox", phone memory, Inbox folder SMS message SMSC number : "+12063130055" Sent : Fri 14 Dec 2018 09:43:16 AM -0600 Class …
gatorreina
  • 864
  • 5
  • 14
1
2
3
8 9