如何设计短信服务?
我想设计一个可以发送和接收短信的网站。
- 我应该如何处理这个问题?
- 有哪些可用资源?
- 我知道 php、python 我还需要什么或者有更好的选择吗?
- 如何仅使用我的电脑进行实验?[像本地主机之类的东西]
- 有哪些好的托管服务? [编辑]
- [添加更多你能想到的问题?]
I want to design a website that can send and receive sms.
- How should I approach the problem ?
- What are the resources available ?
- I know php,python what else do I need or are the better options available?
- How can experiment using my pc only?[somthing like localhost]
- What are some good hosting services for this? [edit this]
- [Add more questions you can think of?]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以查看Kannel。 使用它创建短信服务非常简单。 只需定义一个关键字,然后输入传入 SMS 请求将路由到的 URL(您将在查询字符串参数中获得手机号码和 SMS 文本等信息),然后您的 Web 脚本生成任何输出(您可以使用任何网络脚本/语言/平台)都将被发送回发件人。
测试起来很简单。 您可以使用自己的 PC,只需使用 fakesmsc“短信中心”,然后向其发送 HTTP 请求即可。 如果您有 GSM 调制解调器,您也可以使用调制解调器的 AT 命令集。
You can take a look at Kannel. It's so simple to create SMS services using it. Just define a keyword, then put in the URL to which the incoming SMS request will be routed (you'll get the info such as mobile number and SMS text in query string parameters), then whatever output your web script generates (you can use any web scripting/language/platform) will be sent back to the sender.
It's simple to test. You can use your own PC and just use the fakesmsc "SMS center" and just send it HTTP requests. If you have a GSM modem you can use that too, utilising the modem's AT command set.
首先,您需要注册一个帐户(短信网关),其中大多数还为您提供了如何使用其 API 发送和接收短信的示例代码。 然后,您将围绕您的站点逻辑包装短信功能。
例如 http://www.clickatell.com/developers/php.php
First thing, You need to sign up for an account (SMS gateway), most of them also give you example code how to send and receive sms using their API. Then you will wrap the the sms functionality around your sites logic.
e.g http://www.clickatell.com/developers/php.php
我从我给出的与相关的答案复制了此内容="https://stackoverflow.com/questions/432944/sms-from-web-application/">这个问题。 不过,除了下面的文字外,您还可以查看 Wadja 的短信网关 优惠 (API 链接)...它们目前看来是一个非常好的选择,尽管我个人还没有使用过它们。
希望能帮助到你!
I've copied this from an answer I gave in relation to this question. However, in addition to the text below, take a look at Wadja's SMS Gateway deals (API link)... they appear to be a really good option at the moment, though I've not used them, personally.
Hope it helps!
您需要一个短信服务器。 这应该可以帮助您入门。
You need a SMS server. This should get you started.
由于我的公司有时会这样做(文字促销等,尽管我们的主要重点是低得多的水平),我认为我应该参与其中。
到目前为止,最简单的方法是使用诸如 Clickatell,提供 HTTP API、FTP 和 SMPP 等。 不过,我不知道 Clickatell 如何处理接收消息,因为我们为此使用直接 SMPP 绑定到本地移动运营商。
如果您愿意付费,您应该能够将 SMPP 绑定到当地的移动运营商,但通常价格昂贵。 这还允许您购买自己的短代码。
您可能还想提供 mBlox 或 Nextcell 一看。 快速 Google 搜索将会发现更多内容。
您还可以购买 GSM 调制解调器,它可以让您像平常使用手机一样发送和接收消息,但通过 PC 除外。 这通常意味着您将用手机支付任何费用。 (无论如何在爱尔兰)
Since my company does this sometimes (text promotions etc, though our main focus is much much lower level stuff), I figured I should pitch in.
By far the simplest way is to use a service such as Clickatell, which provides a HTTP API, as well as FTP and SMPP amongst others. I don't know how Clickatell deals with receiving messages, however, as we use direct SMPP binds to our local mobile operators for this.
If you are willing to pay for it, you should be able to get an SMPP bind to your local mobile operator, but its often expensive. This would also allow you to purchase your own shortcode.
You may also want to give mBlox or Nextcell a look. A quick Google search will turn up more.
you could also buy a GSM modem, which would allow you to send and receive messages as you normally would with a phone, except through a PC. This usually means you will pay whatever you would with a phone. (In Ireland anyway)