为电话或短信创建服务器
这是我最新的项目,其中包括为电话和短信制作服务器。我想做一些像 google talk 这样的事情,人们可以通过互联网拨打电话和接听电话,甚至发短信。
我将能够连接固定电话,甚至只是麦克风,然后拨打我的手机并通话。否则,只需通过互联网向我的手机发送短信也很棒。
任何参考或指南将不胜感激。
注意:
是的,我知道有些网站可以做这些事情。不是我要问的。 我在家安装了 Windows Server 2008 r2。 我认为我是一个不错的程序员,如果我知道我应该寻找什么,就足以能够编写这个程序。 不要告诉我这是不可能的,因为不久前我看到了允许通过互联网拨打电话的USB硬件(我知道它比这更复杂,但我想了解这些知识)
This is my newest project which consists of making a Server for phone and sms. I would like to do something like google talk where one would be able to make calls and receive calls or even text through the internet.
I would than be able to connect a land line phone or even just a microphone and call my cellular and talk. Otherwise just sending a sms message through the internet to my cell would be awesome as well.
Any Reference or guides would be much appreciated.
Notes:
Yes I know there are websites that do these things. Not what I am asking.
I got a Windows Server 2008 r2 setup at home.
I think I am a decent programmer, enough to be able to program this if I have some clue what I should be searching for.
Do not tell me it is impossible, as not too long ago I saw usb hardware that allowed to make calls over the internet (I know it's more complicated than that but I want to have this knowledge)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的,正如其他人已经建议的那样,Asterisk 是最明显的方法之一。不久前,我们创建了一个在线解决方案,它允许您描述的大部分功能,VoIP 呼叫、拨号计划生成、PBX、固定电话连接、短信发送、付款。
使用的工具:
- LAMP(linux、apache、mysql、php)
- 星号
- OpenSer (http://en.wikipedia.org/wiki/OpenSER)
- 短信发送的第 3 方
- 第 3 方进行计费。
Okay, as others have already suggested, Asterisk is one the most obvious ways to go. Some time ago we created an online solution which allows most of the things that you have described, voip calling, dial plan generation, pbx, connection with landlines, sms sending, payments.
Tools used:
- LAMP (linux, apache, mysql, php)
- Asterisk
- OpenSer (http://en.wikipedia.org/wiki/OpenSER)
- 3rd party for SMS sending
- 3rd party for billing.
对于电话,您有两种选择:
也许最有趣的部分是编写 webgui,因为编写 PBX 部分可能有点棘手。您应该考虑使用 Asterisk(免费、开源)- Linux 或 3CX(非免费)- Windows。
关于短信:
For phone you have two options:
Probably the funniest part would be writing webgui since writing PBX part could be little tricky. You should consider using Asterisk (free, Open Source) - Linux or 3CX (non-free) - Windows.
Regarding sms:
对于 SMS 部分,有 SMSLib (http://smslib.org/),您可以在其中使用连接的电话发送和接收 SMS。
您可以提供一个网络界面来编写和读取短信,当然,这将是更容易的部分。
对于调用我不知道,但应该也是可能的。我知道有用于 arduino 等的 GSM 芯片,但我想很难将它们重新路由到服务器上的应用程序。不过,可能只需短暂的延迟即可实现。
另一种选择是查看VOIP 库,例如Asterisk (http://www.asterisk.org)。
For the SMS part there is the SMSLib (http://smslib.org/), where you can use an attached phone to send and receive SMS.
You could provide a webinterface to write and read the SMS then of course, that would be the easier part.
For the calling I don't know, but it should be possible too. I know there are GSM chips for e.g. arduino but I guess it is very hard to reroute them to the application on the server. It could be possible with a short delay though.
Another option is to look into a VOIP library, e.g. Asterisk (http://www.asterisk.org).