I am using laravel package SimpleSMS to send sms from application. Is is working ok, I am using twilio provider.
I see that there is possibility to recove response from user into application...
Is there a way:
send sms from app to each user
every user recives sms
sms content is: "Are you fine? If yes, reply with YES, if no reply with NO".
- if user replies, that reply is stored in my database - I NEED THIS PART :)
This is not something that you set up on your app. Configure this on sms provider, provider will push back the response to your server(s) ... just make an url for then to push/post the response, read it from there and store it in your db...
@lukavic First of all I don't know how Twilio does this. But in Finland we have a sms gateway provider which allows me to send requests for querying whether SMS receiver (=end-user) has answered to his SMS or not.
With that in mind, I would have a scheduled task running every one minute. The task sends a query request to SMS gateway for each SMS that was sent from the app.
SMS gateway probably provides you with some tracking id when you sent the SMS so you can use that id to query. So when you originally sent the SMS to the customer, you saved this tracking id to some "pending_sms_messages"-table.
This way our scheduled task can later retrieve all pending messages and ask SMS gateway provider if there is a response from the end-user. If there is a response for the given tracking id, you save the response to database and delete corresponding row from the pending_sms_messages-table.
I have a number in twillio, I have created new TwiML App, Assigned web hook for that number to created TwiML app. But when I reply to sms from twilio in debuger I get Internal server error
Can you post the error log? What kind of work do you do with the data from Twilio when it hits your server? The status code you refer to might be from a long running job, as Twilio only waits 15 seconds before throwing the error.
Are you receiving the the response with SimpleSMS?
I am running my app with https and everything is working fine.
Hi, can you send me an example of handling request in post route with SMS::recive?
Also I get error class Input not found in container, when runing SMS::recive..