免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 11541 | 回复: 11
打印 上一主题 下一主题

用SIP实现IM [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-18 12:56 |只看该作者 |倒序浏览
我想用SIP实现IM,请问各位有什么建议,如果边打电话边聊天又该如何呢?

论坛徽章:
0
2 [报告]
发表于 2009-05-18 22:30 |只看该作者
挺好的想法.

论坛徽章:
0
3 [报告]
发表于 2009-05-24 09:26 |只看该作者
我知道

论坛徽章:
0
4 [报告]
发表于 2009-05-24 12:12 |只看该作者
回去自个儿看sip协议去。到sf.net上找找基于java sip协议栈做的软件应该对你有帮助。java 面向对象开发起来快而且简单嘛。

论坛徽章:
0
5 [报告]
发表于 2010-03-21 19:37 |只看该作者
挺高深的东西 见识了

论坛徽章:
0
6 [报告]
发表于 2010-03-22 10:38 |只看该作者
回复 1# wangpro

这个已经有标准,叫SIMPLE。IETF有一个工作组在做:http://datatracker.ietf.org/wg/simple/

论坛徽章:
0
7 [报告]
发表于 2010-05-31 13:38 |只看该作者

论坛徽章:
0
8 [报告]
发表于 2010-07-08 14:35 |只看该作者

论坛徽章:
0
9 [报告]
发表于 2010-07-14 18:18 |只看该作者
SIP的SUBSCRIBE消息可以用来实现im的好友状态订阅
SIP的NOTIFY消息可以用来通知好友状态


SIP的MESSAGE消息可以用来传送短信息
MESSAGE sip:user2@domain.com SIP/2.0
   Via: SIP/2.0/TCP user1pc.domain.com;branch=z9hG4bK776sgdkse
   Max-Forwards: 70
   From: sip:user1@domain.com;tag=49583
   To: sip:user2@domain.com
   Call-ID: asd88asd77a@1.2.3.4
   CSeq: 1 MESSAGE
   Content-Type: text/plain
   Content-Length: 18

   Watson, come here.

   User1 forwards this message to the server for domain.com.  The proxy
   receives this request, and recognizes that it is the server for
   domain.com.  It looks up user2 in its database (built up through
   registrations), and finds a binding from sip:user2@domain.com to
   sip:user2@user2pc.domain.com.  It forwards the request to user2.  The
   resulting message, F2, looks like:


MESSAGE也可以和SIP呼叫一样把短信息放到SDP, 作为Session Mode来跑

论坛徽章:
0
10 [报告]
发表于 2010-07-16 12:45 |只看该作者
SIP的SUBSCRIBE消息可以用来实现im的好友状态订阅
SIP的NOTIFY消息可以用来通知好友状态


SIP的MESSAG ...
crazy_pipi_lu 发表于 2010-07-14 18:18



    这样需要用RTP么?还是直接TCP/UDP?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP