youngj / envayasms Goto Github PK
View Code? Open in Web Editor NEWThis project forked from niryariv/kalsms
Simple SMS and MMS gateway running on Android
Home Page: http://sms.envaya.org
License: Other
This project forked from niryariv/kalsms
Simple SMS and MMS gateway running on Android
Home Page: http://sms.envaya.org
License: Other
EnvayaSMS is an Android app that acts as a SMS and MMS gateway. For more information and installation instructions, see http://sms.envaya.org/ This project uses ant (or NetBeans) as the build tool. Before building, first create a local.properties file in the project root directory, and set sdk.dir to the path of your android sdk, e.g.: sdk.dir=C:\\android-sdk The code is released under the MIT license; see LICENSE
First of all, THANKS fro the nice app, and the everything we need to use this nice app..
Well, when I send a MMS to my PHP server, I cant get pass the security check.
It looks like it puts all the mms_part stuff, in the security calculater.
And when I run a Test Connection, it sents a incomming action...
Keep it up, and let me know if I can do anything..
Cheers...
Bjørn
It is kind of ironic that we can get dual SIM's android phones cheaper than the single SIM at this part of the planet.
I hope this is not too much to ask.
Forget about it if you have to move the mountain and the sea to achieve it...
Would be useful to have something that's the opposite of the test mode phone numbers, where SMS from particular numbers (e.g. notifications from the mobile network) is delivered into the normal Messaging inbox and not forwarded to the server. Currently KalSMS is hardcoded to do this for all senders with less than 7 digits in their number.
Anybody else get an error from Proguard about Library Classes extending Program Classes?
proguard.sourceforge.net/index.html#/manual/troubleshooting.html#dependency
when new messages are received the app is regularly crashes in infinite loop .
For testing KalSMS, it would be useful to have a setting that allows users to forward only messages from particular sender numbers, and allow other messages to go into the normal messaging inbox.
At the moment, EnvayaSMS will send ANY SMS grabbed from the server, even if it is duplicated (with the same ID seeded before).
Might need a short term tracking on these IDs (say for 10 minutes) and ignore SMS with the same ID.
This is to prevent the server reseeding the same ID due to network interruption or any transmission issue.
For remote debugging, it would be helpful for the app to have a way to send its logs to the server either manually or automatically. Or perhaps send to an email address.
I have these error on application log when it checking messages.
I also use only these code as server URL/sms.php only outgoing sms
require_once "config.php";
require_once "EnvayaSMS.php";
//$request = EnvayaSMS::get_request();
header("Content-Type: text/xml");
$porr = new EnvayaSMS_OutgoingMessage();
$porr->id = $idall;
$porr->to = $_POST['mobile'];
$porr->message = $_POST['message'];
$porr->type= 'sms';
it says that httpserver.php file not found
Anyone experiencing ANR?
When sending hundreds of SMS, sometimes, and only sometimes, the app crashes and stays not responsive ... even clicking in wait button in ANR dialog, the app is still not responsive, and i can't even disable the service... can't go the menu to disable envaya sms. So, when this happens, the only solution is to go to the android applications list in the system configuration and stop the app...
Any idea why is this happening... it seems that there's something that is blocking the UI Thread... but by design it shouldn't...
Thanks!
Im sorry for this question, but Im a bit rusty on the PHP..
But how or can I get "approved" when I call the page from a normal browser to read out the messages i stored in a mySQL base?
// Cheers
MMS message is not forwarded,
logs indicate:
Failed to authenticate to server
(Phone number and password may be incorect)
Forwarding SMS messages however works fine.
Forwarding retries are also unsuccessful from the "Pending Messages" selection of the app.
Wondering if the incoming call and phone number is available at the Android API? It would be pretty useful for EnavaSMS to report back those events as the phone is usually running unattended.
The timestamp of incoming messages should be sent to the server.
I'm getting an issue where my hosting provider is blocking the IP the phone running envayasms on saying that it is sending blank post requests, anyone have any ideas why?
Hey can you please help me to configure this app with server??
On the following page:
http://sms.envaya.org/serverapi/
"X-Request-Signature" ::=
A signature of the request to verify the phone and the server share the same password. (This doesn't protect against MITM snooping or replay attacks, so it is recommended to use the https:// protocol.)
The signature is calculated by the following algorithm:
Sort all POST parameters, not including file uploads, by the name of the field (in the usual ASCII order).
Generate an input string by concatenating:
the server URL,
each of the sorted POST parameters with their corresponding values, and
the password,
with a comma in between each element, like so:
",,,<...>,,,"
Generate the SHA-1 hash of the input string in UTF-8
According to the Javascript in EnvayaSMS request simulator:
https://raw.github.com/youngj/EnvayaSMS/master/server/php/example/www/test.html
The name/value pair is actually done in the following format instead, which is contradicting with the document:
=
(using = instead of ,)
So the whole line should be written as:
",=,<...>,=,"
We have managed to code the server to authenticate with the simulator generated signature, but unfortunately not with the actual EnvayaSMS client running at the phone.
Not even if we changed the server to construct the signature based on , pair also.
Add the possibility to have the server address defined with the domain name instead of the ip address
(www.example.com instead of xxx.xxx.xxx.xxx).
Thanks
Currently the Fwd Inbox button only works for SMS messages.
Can you have a sample codes for developer(beginner) from below functionalit(ies):
C# or VB.Net
We've been trying to use Envaya to post MMS files onto a server but all image file sizes are zero. SMIL files appear ok. Below is a print out of the $_FILES array we're receiving from the App.
Android 5.1
HTC Desire 626
`
(
[part0] => Array
(
[name] => smil.xml
[type] => application/smil
[tmp_name] => /tmp/phph7vfqn
[error] => 0
[size] => 259
)
[part1] => Array
(
[name] => image000000.jpg
[type] => image/jpeg
[tmp_name] => /tmp/phpq3EhVv
[error] => 0
[size] => 0
)
)
`
Would really appreciate any help.
Hi again..
Just had a new error... I cant get pass the security check, when I get a message with danish chars in it.. (ISO 8859-10)
Getting some weird symbols, and access denied...
Cheers..
// Bjørn
Hi there,
I am looking to a solution to be able to get SMS messages using API, once i got SMS to my android phone i could be easily get it in my php app or phyton app,
i though how we can send SMSs received to phone using EnvayaSMS and cloudamqp.com which have free plan to test,
anybody can help me find a solution?
hello
i try envayaSMS with double sim card phone (samsung duos) it work fine but how to add 2 different numbers in the settings ?
Currently if an outgoing SMS is held because it would cause the Android SMS sending limit to be exceeded, it stays held until the user presses Retry Now.
I would like to suggest a method that we are using at http level to achieve "near instant" of message delivery between server and client where the client can only pull the server for incoming message -- browser based chat system for example -- which is very similar to what EnvayaSMS doing now to get message from server.
When the client (the browser or EnvayaSMS) connect to the server via http, instead of giving it a short timeout of couple seconds, it should wait for a pre-defined period of time before dropping off the socket (40 seconds seems a magic number, the desktop browser would wait like forever).
The server holds the connection and continue to lookup up for new message for the client during the "hold-on" time - for a pre-defined period of time as well (again, 40 seconds is the magic number).
The server will return empty and end the http session if there isn't any new outgoing SMS (just like a usual outgoing call).
However, if these IS new outgoing SMS incur during the hold-on period, the server will immediately respond with proper XML and end the http session (again, just like a usual outgoing call).
By doing so, we believed message can be relayed more efficiently without tapping more on the service/client resources.
What EnvayaSMS needs:
I can see some troubles implement this if the "incoming" or "send_status" query are running in serial with the "outgoing" instead of independent thread.
I'm using samsung tablet and i have installd envayaSMS apk.Its showing unfortunate stop while im running the apk and going to seetings.Please suggest me solutions for this ASAP....
How to install extension pack?
When i install apk extension pack it Saïd it's done but i still can't send more than 100 SMS/hour...
Anybody knows how WE should install it ?
i had this matter :
[19-Apr-2012 10:19:11] message 31111_0026_906231946 status: failed
[19-Apr-2012 10:21:05] message 31111_0026_906231946 status: sent
[19-Apr-2012 10:21:05] PHP Warning: unlink(EnvayaSMS3/server/php/example/outgoing_sms/31111/31111_0026_906231946.json): No such file or directory in EnvayaSMS3/server/php/example/www/index.php on line 378
now i reduced the number of sms sent to 10 by minute that solved this matter,
if you had same matter can you share your experience.
Android Cloud to Device Messaging Framework seems complicated and too integrated with google, but perhaps MQTT or Deacon would work
e.g. if the EnvayaSMS app has this Server URL:
the PHP server library will compute a different signature because it sees this URL:
I have EnvayaSMS 3.0.1 and the latest EnvayaSMS.php from Github. I have it sending all incoming sms to gateway.php
I have gateway.php working fine - it sends a response SMS back to me saying what I initially texted.
When I send an MMS though - in the EnvayaSMS app it says:
New MMS id=xx in inbox
Reveived MMS
Real-time connection disabled
Invalid password
1st failure; Retry in 20 seconds
Tried putting some debug logs in the gateway.php script - but it just shows that it doesn't even get that far.
I'm hitting the expansion pack limits. Any chance you can post additional expansion packs, or maybe instructions on how to create them?
Or point me to where they are in case I'm missing something. Thanks!
It would be nice, if it has a TAG or "campaign" function if you will.
So it takes out the first word before the first "space" and adds it to the POST string..
Like this:
Vote Lady Gaga
or
MSG bla bla bla...
Hope you can see the idear..
Cheers...
it should be possible by handling WAP push notifications...
What is AMQP and how to configure it for drupal?
EnvayaSMS force quits after phone receives an MMS message. Envaya restarts and logs do not indicate receiving an MMS.
Android does not currently have an API for retreiving USSD replies but perhaps it would be possible to receive USSD replies by calling internal functions via reflection. Would be useful for mobile banking as well as checking/refilling mobile account balance.
Hi, expansion packs project code is also available... where can i find it?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.