From few months ago when i was using twitter, i was able to send twitter a SMS and when i go home and check my twitter page, i see the SMS i sent is on the website as a tweet. "That was great"
从几个月前,当我使用Twitter时,我能够发送一条短信,当我回家检查我的推特页面时,我看到我发送的短信在网站上作为推文。 “那很棒”
Now, i want to make the same in my website, so someone will send my website SMS as a command and my website will save this command in the db for future processing.
现在,我想在我的网站上做同样的事情,所以有人会发送我的网站短信作为命令,我的网站将把这个命令保存在数据库中以备将来处理。
My problem that i don't know where to begin.
我的问题,我不知道从哪里开始。
1- How users will send from around the world while there are different mobile companies in each country, or thats not a problem?
1-当每个国家/地区有不同的移动公司时,用户将如何从世界各地发送,或者这不是问题?
2- How my website will receive and read these SMS? there is a service for that?
2-我的网站将如何接收和阅读这些短信?那有一项服务吗?
3- Do you know any articles which simplify these tasks for me?
3-您是否知道任何简化这些任务的文章?
If someone worked on something like that before, please advice, any info will be helpful.
如果有人之前曾做过类似的事情,请提供建议,任何信息都会有所帮助。
4 个解决方案
#1
Contact your messaging provider, they will have solutions for each country they support.
联系您的消息提供商,他们将为他们支持的每个国家提供解决方案。
In practice these things need to be agreed on a per-country bases (e.g. shortcodes etc), but the providers will do a lot to help.
在实践中,这些事情需要在每个国家的基础上达成一致(例如,短代码等),但提供商将做很多事情来帮助。
Depending on what countries you want to cover, a single provider will probably do it - if you need absolutely every country with a mobile network, then you might need several, in which case integration is more complicated.
根据您想要覆盖的国家/地区,单个提供商可能会这样做 - 如果您绝对需要每个拥有移动网络的国家/地区,那么您可能需要多个,在这种情况下,集成会更复杂。
Typically they send either a HTTP POST, or a SMTP email to your server when they receive a message to your company's shortcode or shortcode prefix. But the integration options that exist are agreed per provider; there is no real standard or de-facto standard.
通常,当他们收到您公司的短代码或短代码前缀的消息时,他们会向您的服务器发送HTTP POST或SMTP电子邮件。但是,每个提供商都同意存在的集成选项;没有真正的标准或事实上的标准。
#2
Well, first of all you need a sms-gateway. This is a service which you can buy a lot of places with varying prices. Your site can communicate with this gateway in different ways depending on the gateway-host.
好吧,首先你需要一个短信网关。这是一项服务,你可以购买很多价格不一的地方。您的站点可以根据网关主机以不同方式与此网关通信。
Now, you can send messages to the number you bought on the sms-server and poll them (or push, again depending on your sms-provider) to your site. Just as with any other sms "IRL", you can use country codes to send a very costly SMS from around the globe. If you wish to keep this price lower, you need to rent a SMS-gateway which is internationalized or you need to rent one in each country...
现在,您可以向您在短信服务器上购买的号码发送消息,并将其轮询(或再次根据您的短信提供商推送)到您的站点。与任何其他短信“IRL”一样,您可以使用国家/地区代码从全球发送非常昂贵的短信。如果你想保持这个价格较低,你需要租一个国际化的短信网关,或者你需要在每个国家租一个...
.. In conclusion, doing this is not really a feasable option for your small "hobby-type" project :) Renting a SMS-gateway is rather cheap though, so the problem is really in your "multiple countries" request ..
..总之,对于你的小型“业余爱好型”项目来说,这并不是一个可行的选择:)虽然租用短信网关相当便宜,但问题实际上是在你的“多个国家”的请求中。
#3
I have created a web service for sending and receiving SMS messages. We are connecting through VPN to the SMS gateway of the local GSM operator: they have assigned us an public number as well as the option to send messages worldwide.
我已经创建了一个用于发送和接收SMS消息的Web服务。我们通过VPN连接到本地GSM运营商的SMS网关:他们为我们分配了一个公共号码以及在全球范围内发送消息的选项。
It doesn't matter if we send sms worldwide or receive from anyone - it just work :) International sms might be a bit more expensive to send.
如果我们在世界范围内发送短信或从任何人那里收到短信都没关系 - 它只是工作:)国际短信发送可能要贵一些。
Edit: theoretically there is a possibility to send sms thgrough an sip provider (like betamax /voipdiscount.com/) but this is not so fast and reliable comparing to traditional service.
编辑:从理论上讲,有可能通过sip提供商发送短信(如betamax /voipdiscount.com/),但与传统服务相比,这并不是那么快速和可靠。
#4
I've had some success in the past with http://www.aspsms.com/
我过去在http://www.aspsms.com/取得了一些成功
This is a paid service (per SMS) and be aware that you need to pay and FAX (yes, FAX...) your identity information to the before you get an API key.
这是一项付费服务(根据短信),请注意您需要在获得API密钥之前支付和传真(是,传真......)您的身份信息。
#1
Contact your messaging provider, they will have solutions for each country they support.
联系您的消息提供商,他们将为他们支持的每个国家提供解决方案。
In practice these things need to be agreed on a per-country bases (e.g. shortcodes etc), but the providers will do a lot to help.
在实践中,这些事情需要在每个国家的基础上达成一致(例如,短代码等),但提供商将做很多事情来帮助。
Depending on what countries you want to cover, a single provider will probably do it - if you need absolutely every country with a mobile network, then you might need several, in which case integration is more complicated.
根据您想要覆盖的国家/地区,单个提供商可能会这样做 - 如果您绝对需要每个拥有移动网络的国家/地区,那么您可能需要多个,在这种情况下,集成会更复杂。
Typically they send either a HTTP POST, or a SMTP email to your server when they receive a message to your company's shortcode or shortcode prefix. But the integration options that exist are agreed per provider; there is no real standard or de-facto standard.
通常,当他们收到您公司的短代码或短代码前缀的消息时,他们会向您的服务器发送HTTP POST或SMTP电子邮件。但是,每个提供商都同意存在的集成选项;没有真正的标准或事实上的标准。
#2
Well, first of all you need a sms-gateway. This is a service which you can buy a lot of places with varying prices. Your site can communicate with this gateway in different ways depending on the gateway-host.
好吧,首先你需要一个短信网关。这是一项服务,你可以购买很多价格不一的地方。您的站点可以根据网关主机以不同方式与此网关通信。
Now, you can send messages to the number you bought on the sms-server and poll them (or push, again depending on your sms-provider) to your site. Just as with any other sms "IRL", you can use country codes to send a very costly SMS from around the globe. If you wish to keep this price lower, you need to rent a SMS-gateway which is internationalized or you need to rent one in each country...
现在,您可以向您在短信服务器上购买的号码发送消息,并将其轮询(或再次根据您的短信提供商推送)到您的站点。与任何其他短信“IRL”一样,您可以使用国家/地区代码从全球发送非常昂贵的短信。如果你想保持这个价格较低,你需要租一个国际化的短信网关,或者你需要在每个国家租一个...
.. In conclusion, doing this is not really a feasable option for your small "hobby-type" project :) Renting a SMS-gateway is rather cheap though, so the problem is really in your "multiple countries" request ..
..总之,对于你的小型“业余爱好型”项目来说,这并不是一个可行的选择:)虽然租用短信网关相当便宜,但问题实际上是在你的“多个国家”的请求中。
#3
I have created a web service for sending and receiving SMS messages. We are connecting through VPN to the SMS gateway of the local GSM operator: they have assigned us an public number as well as the option to send messages worldwide.
我已经创建了一个用于发送和接收SMS消息的Web服务。我们通过VPN连接到本地GSM运营商的SMS网关:他们为我们分配了一个公共号码以及在全球范围内发送消息的选项。
It doesn't matter if we send sms worldwide or receive from anyone - it just work :) International sms might be a bit more expensive to send.
如果我们在世界范围内发送短信或从任何人那里收到短信都没关系 - 它只是工作:)国际短信发送可能要贵一些。
Edit: theoretically there is a possibility to send sms thgrough an sip provider (like betamax /voipdiscount.com/) but this is not so fast and reliable comparing to traditional service.
编辑:从理论上讲,有可能通过sip提供商发送短信(如betamax /voipdiscount.com/),但与传统服务相比,这并不是那么快速和可靠。
#4
I've had some success in the past with http://www.aspsms.com/
我过去在http://www.aspsms.com/取得了一些成功
This is a paid service (per SMS) and be aware that you need to pay and FAX (yes, FAX...) your identity information to the before you get an API key.
这是一项付费服务(根据短信),请注意您需要在获得API密钥之前支付和传真(是,传真......)您的身份信息。