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:
发布评论
评论(9)
这样需要用RTP么?还是直接TCP/UDP?
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来跑
回复 1# wangpro
这个已经有标准,叫SIMPLE。IETF有一个工作组在做:http://datatracker.ietf.org/wg/simple/
挺高深的东西 见识了
回去自个儿看sip协议去。到sf.net上找找基于java sip协议栈做的软件应该对你有帮助。java 面向对象开发起来快而且简单嘛。
我知道
挺好的想法.