java 如何通过 SMPP 协议连接到 SMSC 服务器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13519414/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to connect to SMSC server over SMPP protocol?
提问by S1LENT WARRIOR
Respected All! I'm working on a project where we are developing an SMS-based disaster management system.
we have to send a request to an SMSC server over SMPP protocol to broadcast an SMS to all of its Subscribers. The cellular company has provided us with the IP/port, username and pasword to connect to their SMSC server.
I'm a bit confused on what steps should be followed to connect to their SMSC server?
kindly someone answer my following questions:
1) How to connect to the SMSC server over SMPP protocol?
2) Do we have to create our own SMPP server to send request to the SMSC server?
3) If the answer to Question# 2 is yes, then how to send request to SMSC server from SMPP server?
Any help will be appreciated! Thanks in advance!
尊敬的所有人!我正在开发一个基于 SMS 的灾难管理系统的项目。
我们必须通过 SMPP 协议向 SMSC 服务器发送请求,以便向其所有订阅者广播 SMS。蜂窝公司为我们提供了 IP/端口、用户名和密码以连接到他们的 SMSC 服务器。
我对连接到他们的 SMSC 服务器应该遵循哪些步骤感到有些困惑?
请有人回答我的以下问题:
1)如何通过 SMPP 协议连接到 SMSC 服务器?
2) 我们是否必须创建我们自己的 SMPP 服务器才能向 SMSC 服务器发送请求?
3) 如果问题#2 的答案是肯定的,那么如何从 SMPP 服务器向 SMSC 服务器发送请求?
任何帮助将不胜感激!提前致谢!
采纳答案by Rayshawn
"If your provider uses the HTTP Protocol to have sms sent over to them then you would need to use HTTP POST/GET method. On the other hand if your provider uses the SMPP (Short Message Peer to Peer) Protocol you would have to use the same to connect to them."-Source
“如果您的提供商使用 HTTP 协议将短信发送给他们,那么您将需要使用 HTTP POST/GET 方法。另一方面,如果您的提供商使用 SMPP(Short Message Peer to Peer)协议,您将不得不使用连接到它们也是一样的。”-来源
So, it looks like the provider is using SMPP protocol. That's means you have to set up a SMSC connection. You would need to use a Java API for this, download these librariesin your project. There should be documentation on how to set things up in the Java documentation with the download. gl
因此,看起来提供商正在使用 SMPP 协议。这意味着您必须设置 SMSC 连接。您需要为此使用 Java API,在您的项目中下载这些库。在下载的 Java 文档中应该有关于如何设置的文档。高尔
回答by Ivelin Ivanov
Another option is the Open Source Mobicents SMSC server, which supports SMPP, SIP and SS7/SIGTRAN interfaces, as well as HTTP REST APIs via Restcomm.
另一种选择是开源 Mobicents SMSC 服务器,它支持 SMPP、SIP 和 SS7/SIGTRAN 接口,以及通过 Restcomm 的 HTTP REST API。
In fact you may want to consider promptly building the SMS handling logic with the Restcomm Visual Designer and use the External Service feature to integrate with the rest of your business logic.
事实上,您可能需要考虑立即使用 Restcomm Visual Designer 构建 SMS 处理逻辑,并使用外部服务功能与您的其余业务逻辑集成。
https://code.google.com/p/smscgateway/http://www.restcomm.com/
https://code.google.com/p/smscgateway/ http://www.restcomm.com/