gammu | Gammu SMS notifications channel for Laravel | SMS library
kandi X-RAY | gammu Summary
kandi X-RAY | gammu Summary
~This package makes it easy to send SMS notifications using Gammu SMSD with Laravel 5.3.~.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse long message
- Send a notification .
- Generate a UUID
- Set the user agent
- Get the default url
- Get method .
- Convert to array .
- Set the callback
- Set content .
- Set the channel .
gammu Key Features
gammu Examples and Code Snippets
Community Discussions
Trending Discussions on gammu
QUESTION
I compiled gammu-1.42 on Ubuntu and I can succesfully send SMS's using the command:
...ANSWER
Answered 2021-Apr-29 at 13:34I solved this problem, the issue was not gammu-ssmd related but postgresql related.
The timezone was wrong in the postgresql.conf, it was different by the server's timezone.
If I runned "SELECT NOW();" in a postgres client on a distant computer the time was wrong but if I runned "SELECT NOW();" on the server than the time was fine. I'm not sure why this happened, I was hoping posgres NOW() will always give the same timezone.
Anyway, this resulted in weird behaviour from gammu-ssmd as wrong dates were inserted in the columns SendingDateTime, SendingTimeOut... from outbox table of gammu.
So I corrected the timezone, restarted postgresql and now everything is fine.
QUESTION
I am using raspberry Pi 3 for sending SMS using SIM900A. I configured Gammu to send SMS via SIM900A and it worked fine. But I was able to send only 156 characters(Max). I need to send more than 200 characters.
Command I used : " echo 'MESSAGE' | sudo gammu sendsms TEXT +91XXXXXXXXXX"
Is there any way to do that? I am open for both AT commands and Gammu way.
Thanks in advance...
P.S : I would prefer TEXT format than PDU
...ANSWER
Answered 2020-Feb-18 at 12:51This works for me.
Please try this.
QUESTION
Problem
...ANSWER
Answered 2020-Jan-11 at 16:34This error happens when device cannot communicate with a SIM card.
Perform the following steps to resolve the issue:
- Make sure your SIM card is properly inserted into SIM tray.
- Make sure the SIM card is activated. Test if you can send and receive messages in normal phone.
- Powercycle your device. Please remember that you must insert a SIM card when the device is SWITCHED OFF.
For me the 3rd step worked. I removed the dongle and reconnected and it worked
QUESTION
I'm trying to read property from error object whilst I catch the exception. Error comes from Celery worker.
Below I show the console with error from Celery:
...ANSWER
Answered 2019-Dec-16 at 05:20Try the following:
QUESTION
Just after installing the gammu and configuring the .gammrc in my home directory (/home/rafael/.gammurc), I get this error and I do not know what file I have to give "sufficient permissions.
...ANSWER
Answered 2019-May-18 at 00:59You have to give goods permissions to gammu:
QUESTION
When I receive MMS via gammu it comes over with binary hex code:
...ANSWER
Answered 2018-Dec-14 at 17:08The response from the resulting URL returns a Response Code 308 Unknown
, which redirects to the secure https
version of the url; upon getting redirected I received a 400 Bad Request
:
QUESTION
I'm trying to start the gammu sms service, when I run it with simple archives, it runs fine, but when I try to run it with the mysql database, it shows this error:
Error code: 2002, Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)The restart gammu-sms, show this message:
...ANSWER
Answered 2018-Oct-11 at 07:44Your user has no permission, you started as user2@Lubuntu18
.
Try to start gammu-smsd as root, or add permission dialout
to user2.
QUESTION
I'm trying to have my own SMS gateway on my server using PHP. I have installed Gammu and I configured the permissions and settings well. Now it send SMS fine using the following prototype script:
...ANSWER
Answered 2018-Jun-28 at 09:01Finally after many reading of this section of documentation and many tries, I have found the correct command's options to be like the following:
QUESTION
I work on Ubuntu Xenial (16.04) with python3
, I also installed anaconda.
I installed python3-gammu
(with apt install python3-gammu or/and pip install python3-gammu) to test send SMS.
Just run python3 console and
...ANSWER
Answered 2018-Mar-22 at 09:26When you are trying to import any package it will check sys.path, which contains all paths of packages. If it find the package you want to import it will import it.
sorry for bad english...
Why use sys.path.append(path) instead of sys.path.insert(1, path)?
You may get clarity after seeing this ?
QUESTION
Gammu documentation related to gammu-smsdrc
config says
RunOnFailure New in version 1.28.93.
Executes a program on failure.
This can be used to proactively react on some failures or to interactively detect failure of sending message.
The program will receive optional parameter, which can currently be either INIT (meaning failure during phone initialization)
I have added the following to my /etc/gammu-smsdrc
config file:
RunOnFailure = /home/pi/fail.sh
How do I access and use the parameter INIT
? I want to setup SMS notificaion on failure of phone initialization.
ANSWER
Answered 2018-Feb-01 at 19:53I figured it out. There are two scenarios of failure.
Problem with sending a message. In which case
$1
(bash) will be an integer which is the row id of message in MySql database. I am not sure what its going to be if you have configured Gammu in file backend mode.Gammu cant access or connect to the phone or GSM modem. In this case
$1 = INIT
.
I am using a PHP script to RunOnFailure
so it is going to be $argv[1]
for me.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gammu
There are two methods to send SMS using Gammu. First method is using native Gammu SMSD method, by inserting data directly to Gammu SMSD database. The second method is using Gammu Api. Make sure your Gammu SMSD has properly configured and able to send SMS by inserting data to outbox table. The Gammu SMSD and database can be installed in the same machine or in different machine. Add this settings in config/services.php to send SMS using native Gammu method.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page