Hai folks,
We sent 2way sms to our employees from the head office.
ex:
what car you like? Reply
1 for Honda
2 for Hyundai
3 for Toyota
4 for Skoda
Now when employee replies, our sms gateway provider is telling , they will get us the response via a callback url.
Our sms gateway provider manual says :
Callback URLs will be used to send messages back to applications via a standard HTTP GET or POST.
The reply-path URL is set by you within Central.
Example: If you provide this URL http://www.yourdomain.com/sms/sms.php then we will do a POST
or GET as follows:
https://www.yourdomain.com/sms/sms.php?api_id=12345&from=279991235642&to=27123456789&ti
mestamp=2008-08-0609:43:50&text=Hereisthe%20messagetext&charset=ISO-8859-1&udh=&moMsgId=b2aee337abd962489b123fda9c3480fa
What happens when we are unable to connect to your server?
we provide retries of MO callbacks. We follow retry as follows:
- 2 minutes after the original attempt
- 4 minutes after last retry
- 8 minutes after last retry
- 16 minutes after last retry
- 32 minutes after last retry
- 64 minutes after last retry
- 128 minutes after last retry (max retries reached)
After this, we do not retry again.
my question is : to receive values using $_GET Method from above url. when i want to run my script sms.php? coz employee may reply after 5 min or 1 hour or even after 1 day. so do i need to keep refresh my php page every second?