I am using NEXMO API for integrating SMS functionality for my stuff.
However I am getting the error as "Unroutable message - rejected"
I don't understand what's wrong with my source code.
Actually I want to send SMS on Indian as well as Nigerian numbers, and I would like to mention that both numbers are free of DND service.
Do you have any idea guys which the primary setting is need to do for sending SMS.
[Currently I have created a test account on NEXMO].Is their any limitations while using test account ?
This might help others if they stumble upon this problem...
If you are using a trial account, you must add test account phone numbers using the API dashboard:
API Settings -> Edit -> Add Number (bottom of page)
Cheers
Related
I have a virtual number in nexmo 447775*****, then my goal is If someone texted me on that number the message will be forwarded to my personal number 55699*****. I read the documentation on how webhook works but I didn't quite sure if that is what I'm looking for. I already search google for a day to search for a tutorial but I didn't find any. Can someone provide me some reference or provide an example? Btw I'm using php.
You could setup your Nexmo virtual to "forward" to your personal number however you need to code your backed as such. Nexmo provides an API to facilitate sending/receiving SMS but it's not a forwarding service. Google Voice would be what you are looking if you want something out of the box. A Webhook is basically a URL that Nexmo would call when you receive an incoming SMS message. Your API/service would receive the message, parse it and do something with it. Hope this helps.
I am stuck in a situation in which when a user registers, he/she get a confirmation SMS on his/her mobile number, and he/she able to confirm their application by replying to the confirmation SMS, be repling like YES/NO to that confirmation sms..
Is there any SMS gateway available which provides the suitable functionality, I mean an API which takes user input from sms reply..
thanks in advance
Twilio has the ability to receive sms messages.
https://www.twilio.com/docs/quickstart/php/sms
There is a definite solution available for this. Try exploring with FrontLine SMS that offers a similar functionality, though you will have to then use a 10 digit registered number to send your confirmation SMS.
How to use frontline sms:
Get an internet dongle from a cellular company (Idea, Airtel,etc)
connect dongle to PC
install frontline SMS
Frontline SMS detects dongle.
Frontline SMS API's available to read incoming SMS on dongle and forward to your server with POST/GET methods.
Try it out & let me know it work.
Regards,
Mihir.
PS: i use Huawei dongle + idea connection.
You can use mVaayoo (http://www.mvaayoo.com/sms-gateway-features-benefits.html)
It supports Easy 2-Way SMS Integration with Website, ERP, CRM or any application.
They will provide the rich documentation which helps you to solve your problem.
You can go to that site and register and test it..
There are so many things in the documentation like return values by getting the return values.
You can use http://routesms.com/
This is easy to use and cheap. I used it for like 3 years. They have all types of API with documentation.
The answer is Yes, try Clickatell, they also support India.
Please note that this is copied answer from another question...original This question is a duplicate.
Expensive, but it is possible.
I have a website where people will book for Site visits.The Support Executive Confirms Site visit in the previous day. Once the Site visit is confirmed on the day on which site visit should happen the customer should receive SMS in morning telling that you have site visit today as requested.
I have Third party SMS Service
Now I Should Run a Code in PHP, MySQL which sends a SMS in the morning on which the site visit should happen
How can I Do that
Cron -> starts PHP-Script , PHP Script reads records from the SQL Table and checks if an SMS has to be sent, i assume its sms over mail, so you can use the integrated php function to send out mails to the sms gateway. For the guy confirming the visits, create another site with proper authentication where he can access the table and agree with the site-visits and anotherone for the customer to register for site visits
You need a cron job set to run in morning which will call your php file have code for looking in database for customers you need to send sms to.
Yo need to register to sum sms gateway provide 2 good one i know is clickatell and eztexting.
You can get there api for sending sms in there website.
Happy Smsing :D
Set a Cron Jobs in your Control panel.Try this link
http://www.devx.com/DevX/Article/39900/1954
If you would like to try an entirely different approach, check out:
Sent.ly - http://sent.ly
I am the founder of Sent.ly and thought maybe Sent.ly could help you out...
Sent.ly allows you to use an Android phone as an SMS gateway. So... you could just purchase a cheap Android phone ($150 or so) and set up Sent.ly on it and put a SIM in the phone.
By calling the Sent.ly API, the SMS would go out through the SIM in your Android phone. Sent.ly also has the option for scheduling an SMS for sending later which is your use case.
This also allows your PHP application to RECEIVE SMS in addition to just sending it out.
You can setup rules and if an incoming message matches a rule, it would be posted to a PHP page of your choice.
Since I am a great fan of stackoverflow, I would like to invite you to try Sent.ly. We would be happy to set you up with extra credits if you like. Just mail us at support#sent.ly
Cheers,
Varun
I have developed a system like this for use with some of my clients, and you can easily use it to integrate with your website or applications, through HTTP POST or WebServices (using PHP, C# or whatever).
If you are interested just leave an email or other contact information as a reply to this answer and I will gladly send you a sample code of how to send SMS, setting the desired time for sending messages, beyond other things, through our system.
You will not need to have any kind of cron knowledge and setup, it is all handled by our system, and the code is pretty simple and straight forward. You will only need to call our services upon site visit confirmation, setting the desired message sending time, and our system will do the rest.
Best regards.
This specific example is using AT&T as the carrier of the receiver.
When sending SMS messages to clients via their carrier email address (1234567890#txt.att.net) from a static email address, the messages arrive on the phone from a number in the format of 1 (400) 000-244. Every time a new SMS message is sent, that number changes slightly. This causes phones, such as the iPhone, from properly threading the SMS messages that are coming from the same source email address.
Basic research shows that this has something to do with how AT&T's gateway handles turning emails into SMS messages. We've also looked at and decided that Common Short Codes (CSC) are not worth $1000 per month to purchase, so this is not an option for us.
Does anyone know of another way around this limitation in which it would be possible to force all SMS messages from the same source email to appear that way on the phone so that they are threaded correctly?
In our configuration, the emails are going out via SMTP using the PHP PEAR Mail_Mime package. We're really looking for a way we can do it on our end without the purchase of a shared or dedicated CSC.
Use:
<10 digit phone number>#mms.att.net
Instead of 'txt.att.net'
This will solve the short code dilemma.
For your AT&T issue they use a cluster model to send out SMS using the email gateway. To over come your problem there might be a couple of solutions but it all depends on what your needs are looks like they increment the phone number by one for each new message. Not sure how you could thread these.
Zeep Mobile lets you send SMS with a shared Short Code but they tag the end of your SMS message with ads, but the service is free (limited text per month I think)
Twilio might be a good cheap alternative as they offer such services. No short code but I believe they use the same From number for your threading issue.
Using your own GSM Modem could be an option but there is some work on getting this to work properly. Also it uses a Long Code (Think telephone number) instead of a Short Code.
There are a couple of other solutions so I will update my answer soon.
UPDATE:
Tropo
Google Voice
I've been searching for a few hours on the best way to add sms notifications and reception to my PHP website. It seems that it's easy to send texts (to an email forward to a phone), but hard to receive them without an SMS gateway. Clickatell was recommended a lot.
But: I stumbled across a few article recommending Google Voice as a channel to send and receive SMS. (Here's one post: http://sudocode.net/article/190/receiving-incoming-smstext-messages-from-google-voice-in-php/)
Is there any reason I shouldn't/can't use a Google Voice number (and PHP) to handle my sms outbound and inbound messages?
I would check the Google Voice terms of service. If this is a commercial venture, I believe that's prohibited. Also since there is no official API, things could change at any time and break your app.
If you need reliable incoming or outgoing SMS there is no substitute for a gateway. I would recommend one, but I am not an impartial observer (see profile).
There is no official PHP API for Google Voice, however I used GVmax along with this PHP-SDK to create a website called Memebro.