对话框和会话之间究竟有什么区别?对话是否意味着信号意义上的“已经设置了呼叫”,而会话意味着媒体意义上的“媒体已被设置”?
此外,“对话的一部分”是什么意思?是“邀请”,“确认”和 回答被认为是“对话的一部分”?
答案 0 :(得分:1)
来自RFC 3261
Dialog: A dialog is a peer-to-peer SIP relationship between two UAs that persists for some time. A dialog is established by SIP messages, such as a 2xx response to an INVITE request. A dialog is identified by a call identifier, local tag, and a remote tag. A dialog was formerly known as a call leg in RFC 2543.
,而
Session: From the SDP specification: "A multimedia session is a set of multimedia senders and receivers and the data streams flowing from senders to receivers. A multimedia conference is an example of a multimedia session." (RFC 2327 [1]) (A session as defined for SDP can comprise one or more RTP sessions.) As defined, a callee can be invited several times, by different calls, to the same session. If SDP is used, a session is defined by the concatenation of the SDP user name, session id, network type, address type, and address elements in the origin field.
用我自己的话说:SIP对话框指的是两个对等体之间的信令关系。 SIP对话框可用于建立呼叫(INVITE),但还有其他SIP方法可以建立对话(例如SUBSCRIBE)
通过INVITE方法发起的SIP对话交换(多媒体)会话,使用SDP提供/回答(参见RFC 3264)