使用 GSM 调制解调器接收短信
我读到 GSM 调制解调器每分钟最多只能接收 30 条短信。如果您需要收到更多,您会怎么做?还有其他技术吗?
I read that a GSM modem can only receive up to 30 SMS per minute. What would you do if you need to receive more than that? Is there another technology?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可能想要与 中列出的答案不同的东西构建 SMS 服务器的最佳实践是什么
如果您只有一项正在运行的服务,您想要接收许多 SMS,那么避免与移动网络运营商集成将是最具成本效益(也是最简单的)的做法,并且而是使用短信聚合器。这些通常称自己为短信网关,但它们是独立公司,而不是移动网络运营商的网关。
SMS 聚合器充当您和网络之间的中间人 - 他们与许多网络运营商签订了协议,这种互连意味着您可以与一个聚合器链接并访问世界上几乎每个网络。
聚合器通常会宣传出站 SMS(您从应用程序向用户发送 SMS),但它们也都提供入站 SMS。根据您所在的国家/地区,您可以选择付费号码或免费接收号码。付费号码意味着发送短信的人需要支付额外的费用才能向您发送消息 - 您可能希望将其用于商业服务,以便向用户收费。付费号码还意味着您会收到用户为向您发送短信而支付的费用的一部分。免费接收号码的费用不会比发送短信的人通常花费的费用高。几乎所有聚合商都会向您收取月租费,以免费接收入站电话号码,但每条收到的消息不收取额外费用。
您可以期望使用 HTTP 或 SMPP 与聚合器集成。 HTTP 通常是最简单的,当您的电话号码收到消息时,聚合器会想知道将 HTTP post 发送到哪里。因此,您将需要某种正在运行的服务来接收来自聚合器的 HTTP 帖子,并且可能需要一种通过将另一个 HTTP 帖子发送回聚合器来回复用户的方法,要求他们将消息转发给用户以确认收到入站 SMS 消息。
SMPP 是一种更强大的协议,通常用于大容量 SMS 应用程序 - 除非您已经有 SMPP 经验或正在发送数十万条消息,否则您可能希望避免 SMPP,因为在您拥有大量经验之前很难实施与短信。
一些聚合商将提供自己的平台,您无需在其中运行自己的服务。例如,您可以在聚合网站上设置一个简单的“自动回复器”,这将接收来自用户的入站消息,然后自动回复“感谢消息”。所有交互均由聚合器完成,您可以定期登录以下载统计数据或查看人们发送的消息。
流行的聚合器有:
如果您没有自己的平台来管理 SMS 交互,则可以使用聚合商自己的平台或安装您自己的 SMSC 网关。一些 SMSC 是:
I think you might want something different to those answers listed at What are the best practices for building an SMS server
If you just have one service that is running where you want to receive many SMS then it would be most cost effective (and simplest) to avoid integrating with a mobile network operator and instead use a SMS aggregator. These often call themselves SMS gateways, but they are independent companies and not a mobile network operator's gateway.
An SMS aggregator acts as a middle man between you and the networks - they have agreements with many network operators and this interconnection means you can link with one aggregator and get access to almost every network in the world.
Aggregator's usually advertise for outbound SMS (where you are sending an SMS from your application to a user), but they all offer inbound SMS as well. Depending on your country you could opt for a premium number or free to receive number. A premium number would mean that the person sending the text message would pay extra money to send you a message - you may want this for a commercial service in order to bill the user. A premium number would also mean you receive a share of the money the user paid to send you the text message. A free to receive number would not cost the person sending the text message anything more than it would normally cost for them to send an SMS. Almost all aggregators will charge you a monthly rental for a free to receive inbound telephone number, but no additional charge per message received.
You can expect to integrate with an aggregator using HTTP or SMPP. HTTP is usually the easiest and the aggregator will want to know where to send the HTTP post when a message is received on your telephone number. Therefore you will need some sort of service that is running to receive the HTTP post from the aggregator, and possibly a way to reply to the user by sending another HTTP post back to the aggregator asking them to forward a message to the user confirming receipt of the inbound SMS message.
SMPP is a more robust protocol and is often used for high volume SMS applications - unless you already have SMPP experience or are sending many hundreds of thousands of messages you may want to avoid SMPP as it is difficult to implement until you have a lot of experience with SMS.
Some aggregators will provide their own platform where you don't need to have your own service running. For example you could setup a simple "autoresponder" on an aggregators website, this would receive the inbound message from the user, then autopmatically respond with a "thank you message". All interaction is done by the aggregator and you can log on periodically to download statistics or look at the messages people have sent.
Popular aggregators are:
If you do not have your own platform for managing the SMS interaction then either use the aggregator's own platform of install your own SMSC gateway. Some SMSC's are: